Spaces:
Running on Zero
Running on Zero
Tianshuo-Xu commited on
Commit ·
9299898
1
Parent(s): 1ef6281
Move PyTorch nightly installation from runtime to build requirements.txt
Browse files- app.py +0 -5
- requirements.txt +6 -4
app.py
CHANGED
|
@@ -11,11 +11,6 @@ print("=" * 50, flush=True)
|
|
| 11 |
print("APP.PY STARTING - DEBUG VERSION", flush=True)
|
| 12 |
print("=" * 50, flush=True)
|
| 13 |
|
| 14 |
-
# Install nightly versions for FA3 + FP8 support
|
| 15 |
-
print("Installing PyTorch nightly...", flush=True)
|
| 16 |
-
exit_code = os.system('pip install --upgrade --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu126 torch torchvision torchao spaces')
|
| 17 |
-
print(f"pip install exit code: {exit_code}", flush=True)
|
| 18 |
-
|
| 19 |
import logging
|
| 20 |
from datetime import datetime
|
| 21 |
|
|
|
|
| 11 |
print("APP.PY STARTING - DEBUG VERSION", flush=True)
|
| 12 |
print("=" * 50, flush=True)
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
import logging
|
| 15 |
from datetime import datetime
|
| 16 |
|
requirements.txt
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
#
|
| 4 |
-
|
|
|
|
|
|
|
| 5 |
|
| 6 |
# HuggingFace ecosystem (pinned versions for compatibility)
|
| 7 |
transformers>=4.40,<5.0
|
|
|
|
| 1 |
+
--extra-index-url https://download.pytorch.org/whl/nightly/cu126
|
| 2 |
+
|
| 3 |
+
# Core PyTorch dependencies (installed during build)
|
| 4 |
+
torch --pre
|
| 5 |
+
torchvision --pre
|
| 6 |
+
torchao --pre
|
| 7 |
|
| 8 |
# HuggingFace ecosystem (pinned versions for compatibility)
|
| 9 |
transformers>=4.40,<5.0
|