Matthew Ford commited on
Commit ·
9a4131d
1
Parent(s): e6d699c
fix: GPU job install step — don't shadow PyPI with torch index-url
Browse filespytorch CUDA image already ships torch; adding scipy/rdkit/tensorboard/numpy
via a torch --index-url hides them (PyPI replaced). Install the four extras
from PyPI only.
Former-commit-id: f91c41966f49d31da142e652eaaa39c40a56b799
Former-commit-id: 100914ff5f61f9ef4eb81646200b03a14ace2504
- scripts/hf_gpu_ab_job.py +3 -2
scripts/hf_gpu_ab_job.py
CHANGED
|
@@ -49,9 +49,10 @@ def run(cmd: list[str]) -> None:
|
|
| 49 |
|
| 50 |
|
| 51 |
def main() -> int:
|
|
|
|
|
|
|
| 52 |
run([sys.executable, "-m", "pip", "install", "--quiet",
|
| 53 |
-
"huggingface-hub", "scipy", "tensorboard", "rdkit", "numpy"
|
| 54 |
-
"torch", "--index-url", "https://download.pytorch.org/whl/cu121"])
|
| 55 |
|
| 56 |
from huggingface_hub import snapshot_download
|
| 57 |
SOURCE_DIR.mkdir(parents=True, exist_ok=True)
|
|
|
|
| 49 |
|
| 50 |
|
| 51 |
def main() -> int:
|
| 52 |
+
# PyTorch CUDA image already ships torch; add the rest from PyPI (do NOT pass
|
| 53 |
+
# a torch --index-url, which would shadow PyPI and hide scipy/rdkit).
|
| 54 |
run([sys.executable, "-m", "pip", "install", "--quiet",
|
| 55 |
+
"huggingface-hub", "scipy", "tensorboard", "rdkit", "numpy"])
|
|
|
|
| 56 |
|
| 57 |
from huggingface_hub import snapshot_download
|
| 58 |
SOURCE_DIR.mkdir(parents=True, exist_ok=True)
|