From 2209d2d522e7a0acb83fb0183fedaf664272401d Mon Sep 17 00:00:00 2001 From: Michel Jung Date: Wed, 15 Apr 2026 21:50:36 +0200 Subject: [PATCH] fix: add missing runtime dependencies for torch-runtime install Add accelerate to torch-runtime extras (required for device_map="auto" inference, not just finetuning) and document the FFmpeg system dependency in the README (required by torchcodec for audio I/O). Co-Authored-By: Claude Sonnet 4.6 --- README.md | 11 ++++++++++- pyproject.toml | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c24aab3..bb95e32 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,16 @@ conda create -n moss-tts python=3.12 -y conda activate moss-tts ``` -Install all required dependencies: +Install the FFmpeg system dependency (required by `torchcodec` for audio I/O): + +```bash +# Debian/Ubuntu +sudo apt-get install -y ffmpeg +# macOS +brew install ffmpeg +``` + +Install all required Python dependencies: ```bash git clone https://github.com/OpenMOSS/MOSS-TTS.git diff --git a/pyproject.toml b/pyproject.toml index d5791c2..3b15f70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,7 @@ torch-runtime = [ "torchaudio==2.9.1+cu128", "torchcodec===0.8.1", "transformers==5.0.0", + "accelerate>=1.10.1", ] # llama.cpp backend — torch-free core