bin/setup
conda activate lab
failsPATH
:CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. If your shell is Bash or a Bourne variant, enable conda for the current user with$ echo ". /home/ubuntu/miniconda3/etc/profile.d/conda.sh" >> ~/.bashrcor, for all users, enable conda with$ sudo ln -s /home/ubuntu/miniconda3/etc/profile.d/conda.sh /etc/profile.d/conda.shThe options above will permanently enable the 'conda' command, but they do NOT put conda's base (root) environment on PATH. To do so, run$ conda activatein your terminal, or to put the base environment on PATH permanently, run$ echo "conda activate" >> ~/.bashrcPrevious to conda 4.4, the recommended way to activate conda was to modify PATH in your ~/.bashrc file. You should manually remove the line that looks likeexport PATH="/home/ubuntu/miniconda3/bin:$PATH"^^^ The above line should NO LONGER be in your ~/.bashrc file! ^^^
lab
as the kernel setup by SLM Lab installation. SLM Lab setup installs Conda into the home directory ~/miniconda3
. Note that in each notebook cell a bash command is a entirely new session. We have to expose the lab
Conda environment directly and run the Python command. Furthermore, note that notebooks have no GUI thus have to be run headless. The following is an example for running the quickstart:GLIBCXX_3.4.21
version errors due to gcc, g++, libstdc++
ImportError: /home/deploy/miniconda3/envs/lab/lib/python3.6/site-packages/torch/../../.././libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/deploy/miniconda3/envs/lab/lib/python3.6/site-packages/ray/pyarrow_files/pyarrow/lib.cpython-36m-x86_64-linux-gnu.so)
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver
OMP_NUM_THREADS=1
to the run command. For example:sudo
.NoSuchDisplayException: Cannot connect to "None"
. Or your graphs may not be generated. This is because servers are typically headless, i.e. without a display. This error occurs when you're trying to render without a headless display.RENDER=false
before the lab command, for example:xvfb-run -a
. For example:ssh
and want GUI forwarding from a server, do:ssh
with a -X
flag, e.g. ssh -X [email protected]
.