Skip to content

Commit

Permalink
fix pr requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlsondre committed Sep 18, 2024
1 parent 9651e1f commit d961502
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
6 changes: 3 additions & 3 deletions env-files/torch/generic_torch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ if [ -f "${cDir}/$ENV_NAME/bin/torchrun" ]; then
else
if [ -z "$NO_CUDA" ] ; then
pip install --no-cache-dir \
'torch==2.4.0' torchvision torchaudio --index-url "$PIP_INDEX_TORCH_CUDA" || exit 1
'torch==2.4.*' torchvision torchaudio --index-url "$PIP_INDEX_TORCH_CUDA" || exit 1
else
# CPU only installation for MacOS
if [[ "$OSTYPE" =~ ^darwin ]] ; then
pip install --no-cache-dir \
'torch==2.4.0' torchvision torchaudio || exit 1
'torch==2.4.*' torchvision torchaudio || exit 1
else
# CPU only installation for other OSs
pip install --no-cache-dir \
'torch==2.4.0' torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu || exit 1
'torch==2.4.*' torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu || exit 1
fi
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies = [

# Torch should be already installed, but it is specified here to
# prevent itwinai dependencies from cheing its version.
# torch = ["torch==2.1.*", "lightning==2.*", "torchmetrics"]
torch = ["lightning==2.*", "torchmetrics"]
# torch-cpu = [
# "torch==2.1.*",
# "torchvision",
Expand Down
9 changes: 0 additions & 9 deletions tests/use-cases/test_3dgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,3 @@ def test_3dgan_inference(

# Running the inference
subprocess.run(run_inference_cmd.split(), check=True, cwd=temp_dir)









0 comments on commit d961502

Please sign in to comment.