Move heavy GPU deps (torch, bitsandbytes) to requirements-optional.txt
Nightly Build / build (push) Successful in 6m30s

torch and bitsandbytes pull in hundreds of MB of CUDA libraries
(nvidia_cublas ~423 MB) which are useless on headless servers
without an NVIDIA GPU like the NiPoGi.

- requirements.txt: keep only lightweight essential dependencies
- requirements-optional.txt (new): Orpheus TTS deps (torch, transformers,
  bitsandbytes, snac, huggingface_hub)
- Installers and update.sh: show hint about optional deps after install
- ci/package.sh: include requirements-optional.txt in tarball
This commit is contained in:
2026-07-21 00:26:34 +01:00
parent b627db761b
commit 0ee5fb2c25
6 changed files with 45 additions and 7 deletions
+2 -6
View File
@@ -16,12 +16,8 @@ trendspyg>=0.7.0
kokoro-onnx
soundfile
# Orpheus TTS 3B (plugin-tts-orpheus-3b) — heavy deps, only needed when plugin is enabled
torch
transformers
snac
bitsandbytes
huggingface_hub
# Orpheus TTS 3B (plugin-tts-orpheus-3b) — heavy deps moved to requirements-optional.txt
# See requirements-optional.txt if you need the Orpheus TTS plugin.
fastapi
uvicorn
scipy