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
+13
View File
@@ -0,0 +1,13 @@
# Orpheus TTS 3B (plugin-tts-orpheus-3b) — GPU-heavy dependencies
# Install only if you enable the Orpheus TTS plugin:
# pip install -r requirements-optional.txt
#
# NOTE: torch and bitsandbytes pull in CUDA libraries (~GB). On a headless
# server (no NVIDIA GPU) these are completely unnecessary, so they are kept
# in a separate file.
torch
transformers
snac
bitsandbytes
huggingface_hub