This document outlines the steps to set up and troubleshoot OpenAI Jukebox on an Ubuntu 22.04 server with NVIDIA GPU.
- System: Ubuntu 22.04 LTS
- Steps Taken:
- Confirmed OS compatibility for NVIDIA drivers and CUDA using:
lsb_release -a
- No changes needed.
- Confirmed OS compatibility for NVIDIA drivers and CUDA using:
- Installed Driver:
535.183.01 - Steps Taken:
- Verified the driver compatibility with
nvidia-smi. Output confirmed CUDA runtime version compatibility (12.2supported, fine for CUDA 11.1):nvidia-smi
- Skipped driver installation during CUDA Toolkit setup as the current driver was newer and compatible.
- Verified the driver compatibility with
- Installed Version: CUDA 11.1
- Steps Taken:
- Downloaded and installed CUDA 11.1 (Ubuntu 20.04 version) because Ubuntu 22.04 is not officially supported for this version:
wget https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda_11.1.1_455.32.00_linux.run sudo sh cuda_11.1.1_455.32.00_linux.run
- Selected "Install Toolkit Only" and skipped driver installation.
- Added CUDA paths to
.bashrc:echo 'export PATH=/usr/local/cuda-11.1/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-11.1/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc source ~/.bashrc
- Verified the installation:
nvcc --version
- Downloaded and installed CUDA 11.1 (Ubuntu 20.04 version) because Ubuntu 22.04 is not officially supported for this version:
- Python Version: 3.8
- Steps Taken:
- Created and activated a new Conda environment:
conda create --name jukebox_env python=3.8 -y conda activate jukebox_env
- Installed PyTorch with CUDA 11.1:
pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 torchaudio==0.8.0 -f https://download.pytorch.org/whl/torch_stable.html
- Created and activated a new Conda environment:
- Steps Taken:
- Set up the local repository:
- Avoided recloning since the repository was already configured.
- Verified the directory structure and existing files.
- Installed
jukeboxas an editable module:pip install -e .
- Set up the local repository:
-
CUDA Compatibility:
- Installed CUDA 11.1 for compatibility with PyTorch 1.8.0.
- Skipped unnecessary driver installation to avoid conflicts with the already installed NVIDIA driver.
-
NumPy and Numba Conflict:
- Error:
AttributeError: module 'numpy' has no attribute 'long'. - Resolution: Downgraded NumPy to version
1.19.5for compatibility with Numba:pip install numpy==1.19.5
- Error:
-
Module Import Error:
- Error:
ModuleNotFoundError: No module named 'jukebox'. - Resolution: Installed
jukeboxas an editable package withpip install -e ..
- Error:
- Confirmed GPU and CUDA availability in PyTorch:
python -c "import torch; print(torch.cuda.is_available()); print(torch.cuda.get_device_name(0))"