Skip to content

Commit

Permalink
Updated Colab Script to install CUDA 12.6 and CUDNN
Browse files Browse the repository at this point in the history
  • Loading branch information
C0untFloyd committed Jan 1, 2025
1 parent 35db339 commit 1b311e8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions roop-unleashed.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"id": "CanIXgLJgaOj"
},
"source": [
"Install CUDA 12.6 on Google Cloud Compute\n",
"(currently unnecessary because the latest 12.x should be already installed)"
"Install CUDA 12.6 & CUDNN on Google Cloud Compute"
]
},
{
Expand All @@ -28,12 +27,15 @@
},
"outputs": [],
"source": [
"# don't run this cell if you know that there is at least Cuda 12.4 installed\n",
"!apt-get -y update\n",
"!apt-get -y install cuda-toolkit-12-6\n",
"!apt-get -y install cudnn9-cuda-12\n",
"\n",
"import os\n",
"os.environ[\"LD_LIBRARY_PATH\"] += \":\" + \"/usr/local/cuda-12/lib64\"\n",
"os.environ[\"LD_LIBRARY_PATH\"] += \":\" + \"/usr/local/cuda-12.6/lib64\""
"os.environ[\"LD_LIBRARY_PATH\"] += \":\" + \"/usr/local/cuda-12.6/lib64\"\n",
"\n",
"!nvcc --version"
]
},
{
Expand Down Expand Up @@ -76,6 +78,10 @@
},
"outputs": [],
"source": [
"import torch\n",
"print(f\"PyTorch version: {torch.__version__}\")\n",
"print(f\"CUDA device is available: {torch.cuda.is_available()}\")\n",
"\n",
"!python run.py"
]
},
Expand Down

0 comments on commit 1b311e8

Please sign in to comment.