devYoda commited on
Commit
d248ba2
·
verified ·
1 Parent(s): 6942820

Space requirements: torch 2.9.1 only

Browse files
Files changed (1) hide show
  1. requirements.txt +5 -5
requirements.txt CHANGED
@@ -1,8 +1,8 @@
1
- # Intel Macs: PyTorch stopped shipping x86_64 macOS wheels after 2.2.2, which also needs numpy<2.
2
- torch==2.2.2; sys_platform == "darwin" and platform_machine == "x86_64"
3
- numpy<2; sys_platform == "darwin" and platform_machine == "x86_64"
4
- # Everywhere else, including the Hugging Face Space: ZeroGPU supports torch 2.8 and later.
5
- torch==2.9.1; sys_platform != "darwin" or platform_machine != "x86_64"
6
  # Last 4.x. Transformers 5 needs Python 3.11+ and torch 2.6+, so it can't run on Intel Macs,
7
  # and one version everywhere means the Space runs what was tested locally.
8
  transformers==4.57.6
 
1
+ # Linux (including the Hugging Face Space), Apple Silicon Macs and Windows. Intel Macs use
2
+ # requirements-intel-mac.txt instead: ZeroGPU rejects any torch below 2.8 in this file, even behind a
3
+ # platform marker, so the Intel Mac pins can't live here.
4
+ # ZeroGPU supports torch 2.8 and later.
5
+ torch==2.9.1
6
  # Last 4.x. Transformers 5 needs Python 3.11+ and torch 2.6+, so it can't run on Intel Macs,
7
  # and one version everywhere means the Space runs what was tested locally.
8
  transformers==4.57.6