Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: CUDA_HOME wasn't being assigned. #224

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions run_modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@
"huggingface_hub",
"peft"
)
.run_commands([
"apt update",
"apt install git -y",
"apt install git-lfs wget unzip -y",
])
.run_commands([
"apt-get install wget",
"wget https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda-repo-debian11-12-4-local_12.4.1-550.54.15-1_amd64.deb",
"dpkg -i cuda-repo-debian11-12-4-local_12.4.1-550.54.15-1_amd64.deb",
"cp /var/cuda-repo-debian11-12-4-local/cuda-*-keyring.gpg /usr/share/keyrings/",
"apt-get -y install software-properties-common",
"add-apt-repository contrib",
"apt-get update",
"apt-get -y install cuda-toolkit-12-4"
])
.env({"CUDA_HOME": "/usr/local/cuda-12"})
)

# mount for the entire ai-toolkit directory
Expand Down