akshan-main commited on
Commit
4786ca9
·
verified ·
1 Parent(s): 3993ce8

org: drop torchcodec pins (bypassed via soundfile patch)

Browse files
Files changed (1) hide show
  1. requirements.txt +4 -6
requirements.txt CHANGED
@@ -1,11 +1,9 @@
1
- # ZeroGPU accepts plain torch==2.9.1 (it rejects +cu128 suffixes). torch 2.9.1 from PyPI
2
- # ships CUDA 12.8 (libnvrtc.so.12). torchaudio 2.9 hard-requires torchcodec for load();
3
- # the default PyPI torchcodec is a CUDA-13 build and crashes. Pin ONLY torchcodec to the
4
- # explicit +cu128 build (CUDA 12.8 -> libnvrtc.so.12), matching torch's bundled CUDA.
5
- --extra-index-url https://download.pytorch.org/whl/cu128
6
  torch==2.9.1
7
  torchaudio==2.9.1
8
- torchcodec==0.9.1+cu128
9
  spaces
10
  f5-tts==1.1.20
11
  peft==0.18.1
 
1
+ # ZeroGPU (torch 2.9.1, the version ZeroGPU requires). We do NOT use torchcodec: the
2
+ # patches package replaces torchaudio.load with a soundfile (libsndfile) reader before
3
+ # f5_tts imports, so torchaudio's torchcodec path is never touched. torchcodec still gets
4
+ # pulled in as an f5-tts dependency but stays dormant. `spaces` provides @spaces.GPU.
 
5
  torch==2.9.1
6
  torchaudio==2.9.1
 
7
  spaces
8
  f5-tts==1.1.20
9
  peft==0.18.1