alex4cip Claude commited on
Commit
a54252d
·
1 Parent(s): 674aa56

fix: Downgrade PyTorch to 2.2.0 for ZeroGPU compatibility

Browse files

Issue:
- HF Spaces ZeroGPU error: "No candidate PyTorch version found"
- PyTorch 2.9.0 not supported by ZeroGPU infrastructure

Fix:
- Downgrade torch from 2.9.0 to 2.2.0
- ZeroGPU supports PyTorch versions 2.0.0-2.2.0

Technical Details:
- ZeroGPU uses shared NVIDIA H200 GPU infrastructure
- Only supports PyTorch 2.0.0, 2.1.0, and 2.2.0
- Local environments can still use any PyTorch version
- Comment added to clarify version constraint

Compatibility:
- ✅ ZeroGPU Spaces: torch 2.2.0 (compatible)
- ✅ CPU Upgrade Spaces: torch 2.2.0 (compatible)
- ✅ Local development: torch 2.2.0 (stable release)

References:
- https://huggingface.co/docs/hub/spaces-zerogpu
- ZeroGPU supported versions: PyTorch 2.0.0-2.2.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. requirements.txt +1 -1
requirements.txt CHANGED
@@ -3,7 +3,7 @@ gradio==5.49.1
3
 
4
  # ML Core Libraries
5
  transformers==4.57.1
6
- torch==2.9.0
7
  safetensors==0.6.2
8
  accelerate==0.26.1
9
 
 
3
 
4
  # ML Core Libraries
5
  transformers==4.57.1
6
+ torch==2.2.0 # ZeroGPU compatible (supports 2.0.0-2.2.0)
7
  safetensors==0.6.2
8
  accelerate==0.26.1
9