Skip to content

Commit 2a5c018

Browse files
committed
update modules
1 parent 26f8e1e commit 2a5c018

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

deps/tokenizers-cpp

docker/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ get_cuda_docker_image() {
1818
ubuntu_version="22.04"
1919
fi
2020

21+
# Downgrade to 22.04 for now
22+
if [[ "$ubuntu_version" == "24.04" ]]; then
23+
ubuntu_version="22.04"
24+
fi
25+
2126
# Determine CUDA version.
2227
# If the environment variable 'cuda_version' is set (in "<major>.<minor>" format), use that.
2328
# Otherwise, use nvidia-smi to extract the CUDA version.

docker/flexflow-environment/install_pytorch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ install_pytorch() {
1919
echo "Attempting to install PyTorch with CUDA ${major}.${minor} support..."
2020

2121
# Run dry-run first
22-
if pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu"${major}${minor}" --dry-run; then
22+
if pip3 install "torch<=2.7.1" torchvision torchaudio --index-url https://download.pytorch.org/whl/cu"${major}${minor}" --dry-run; then
2323
echo "Dry-run succeeded, proceeding with actual installation..."
24-
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu"${major}${minor}"
24+
pip3 install "torch<=2.7.1" torchvision torchaudio --index-url https://download.pytorch.org/whl/cu"${major}${minor}"
2525
return 0
2626
else
2727
echo "Dry-run failed for CUDA ${major}.${minor}."

0 commit comments

Comments
 (0)