mirror of
https://github.com/mudler/LocalAI.git
synced 2026-08-02 11:30:44 -04:00
fix(chatterbox): pin cublas12 torch/transformers and setuptools so the backend loads
The cuda12-chatterbox gallery backend fails to load on a fresh install
because several deps in requirements-cublas12.txt are unpinned:
- torch/torchaudio: unlike requirements-cublas13.txt and
requirements-cpu.txt, this file has no --extra-index-url, so pip pulls
a wheel whose CUDA runtime (cu130) is newer than the host driver
supports ("NVIDIA driver on your system is too old"). Add the cu124
index and pin torch/torchaudio 2.6.0+cu124.
- transformers: resolves to 5.x, which dropped LlamaConfig.rope_theta
that chatterbox-tts 0.3.1's T3 config still reads. Cap to <5.
- setuptools: 81+ dropped pkg_resources, which perth imports under a
bare try/except and silently sets PerthImplicitWatermarker=None,
making ChatterboxTTS.__init__ raise 'NoneType' object is not callable.
Cap to <81 in requirements.txt.
Fixes #11070
Signed-off-by: Tai An <antai12232931@anaiguo.com>
Co-authored-by: Tai An <antai12232931@anaiguo.com>
Co-authored-by: localai-org-maint-bot <bot-opensource@localaisrl.com>
19 lines
491 B
Plaintext
19 lines
491 B
Plaintext
--extra-index-url https://download.pytorch.org/whl/cu124
|
|
torch==2.6.0+cu124
|
|
torchaudio==2.6.0+cu124
|
|
transformers<5
|
|
numpy>=1.24.0,<1.26.0
|
|
# chatterbox-tts itself is installed with --no-deps in install.sh.
|
|
# These are its real runtime deps, mirroring upstream's pyproject.toml
|
|
# minus russian-text-stresser (whose ancient pins break the resolver).
|
|
omegaconf==2.3.0
|
|
resampy==0.4.3
|
|
librosa
|
|
s3tokenizer
|
|
diffusers
|
|
resemble-perth==1.0.1
|
|
conformer
|
|
safetensors
|
|
spacy-pkuseg
|
|
pykakasi==2.3.0
|
|
accelerate |