Spaces:
Running on Zero
fix: Unpin the Space's torch -- and undo a mis-targeted revert
Browse filesTwo things, because the first attempt at this got it wrong.
The intended change: torch goes back to unconstrained. Pinning <2.9 to force
CUDA 12 wheels did not fix "No CUDA GPUs are available" and was strictly worse.
Unpinned, the log reaches "Waiting for a GPU to become available" then
"Successfully acquired a GPU" before the worker dies, in 14.2s; pinned, neither
line appears and it fails in 1.8s, never reaching GPU acquisition. The CUDA 13
theory was wrong, and the comment now says so, so it is not retried blind.
The correction: 6d404fb claimed to do that but was `git revert HEAD~1`, which on
main was the threading fix, not the pin. It removed USE_INFERENCE_THREAD, the
sync_relay branch and the CLAUDE.md note pointing at 4de16e3 -- re-breaking the
CUDA/thread-context bug this repo has now fixed twice -- while leaving the pin
in place, and it was pushed. Reverted in turn, and the pin removed by editing
the file rather than trusting a commit offset.
Verified after the fact that both survive: on torch neither endpoint touches a
controlai-prefixed thread, on MLX both still run on controlai_0.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
- requirements-space.txt +7 -7
|
@@ -9,13 +9,13 @@
|
|
| 9 |
# upper bound here can make the resolve impossible -- pinning transformers <4.56
|
| 10 |
# did exactly that, because gradio 6.x needs huggingface-hub >=1.16 and every
|
| 11 |
# transformers <4.56 needs <1.0.
|
| 12 |
-
#
|
| 13 |
-
#
|
| 14 |
-
#
|
| 15 |
-
#
|
| 16 |
-
#
|
| 17 |
-
#
|
| 18 |
-
torch>=2.4.0
|
| 19 |
transformers>=4.51.0
|
| 20 |
accelerate>=0.30.0
|
| 21 |
bitsandbytes>=0.43.0 # 4-bit NF4; CUDA-only
|
|
|
|
| 9 |
# upper bound here can make the resolve impossible -- pinning transformers <4.56
|
| 10 |
# did exactly that, because gradio 6.x needs huggingface-hub >=1.16 and every
|
| 11 |
# transformers <4.56 needs <1.0.
|
| 12 |
+
# Left unconstrained deliberately. Pinning <2.9 to force CUDA 12 wheels was
|
| 13 |
+
# tried, on the theory that torch 2.11's CUDA 13 wheels were behind ZeroGPU's
|
| 14 |
+
# "No CUDA GPUs are available". It was not, and the pin was strictly worse:
|
| 15 |
+
# unpinned, the log reaches "Waiting for a GPU" then "Successfully acquired a
|
| 16 |
+
# GPU" before the worker dies (14.2s); pinned, neither line appears at all and
|
| 17 |
+
# it fails in 1.8s, never reaching GPU acquisition. Do not retry that bound.
|
| 18 |
+
torch>=2.4.0
|
| 19 |
transformers>=4.51.0
|
| 20 |
accelerate>=0.30.0
|
| 21 |
bitsandbytes>=0.43.0 # 4-bit NF4; CUDA-only
|