Skip to content

Commit

Permalink
fixing pytorch for cpu on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
gfursin committed Dec 2, 2022
1 parent a622044 commit e360247
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import os
import shutil
import numpy as np


import torch
import torchvision.models as models

Expand Down
1 change: 0 additions & 1 deletion cm-mlops/script/get-generic-python-lib/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"jax_cuda": {
"env": {
"CM_GENERIC_PYTHON_PACKAGE_NAME": "jax[cuda]",
"CM_GENERIC_PYTHON_PIP_EXTRA": "-f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html",
"CM_JAX_VERSION_EXTRA":"CUDA"
},
"new_env_keys": [
Expand Down
9 changes: 6 additions & 3 deletions cm-mlops/script/install-generic-python-lib/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@
},
"torch": {
"env": {
"CM_GENERIC_PYTHON_PACKAGE_NAME": "torch"
"CM_GENERIC_PYTHON_PACKAGE_NAME": "torch",
"CM_GENERIC_PYTHON_PIP_EXTRA_INDEX_URL": "https://download.pytorch.org/whl/cpu"
}
},
"torch_cuda": {
Expand All @@ -138,7 +139,8 @@
},
"torchvision": {
"env": {
"CM_GENERIC_PYTHON_PACKAGE_NAME": "torchvision"
"CM_GENERIC_PYTHON_PACKAGE_NAME": "torchvision",
"CM_GENERIC_PYTHON_PIP_EXTRA_INDEX_URL": "https://download.pytorch.org/whl/cpu"
}
},
"torchvision_cuda": {
Expand All @@ -157,7 +159,8 @@
},
"torchaudio": {
"env": {
"CM_GENERIC_PYTHON_PACKAGE_NAME": "torchaudio"
"CM_GENERIC_PYTHON_PACKAGE_NAME": "torchaudio",
"CM_GENERIC_PYTHON_PIP_EXTRA_INDEX_URL": "https://download.pytorch.org/whl/cpu"
}
},
"torchaudio_cuda": {
Expand Down

0 comments on commit e360247

Please sign in to comment.