You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make install_audio_deps.sh robust to torch version upgrades #3254
tools/install_audio_deps.sh currently hardcodes torchaudio==2.11.0. This was flagged in PR #3107 by @terrykong — if torch is upgraded in pyproject.toml, the script needs a manual matching update.
Problem
The torchaudio version does not always exactly match the torch version (e.g. torchaudio 2.0.0 requires torch 2.0.1). Deriving the version dynamically from the installed torch at runtime is therefore unreliable.
Options to explore
Add torchaudio/torchcodec as an audio optional extra in pyproject.toml so uv lock resolves and pins the version, and the install script reads it from pyproject.toml via tomllib. The Dockerfile only syncs named extras (vllm, sglang, mcore, etc.) so the audio extra would not be baked into the container.
Hardcode with a prominent comment cross-referencing the torch pin in pyproject.toml and the torchaudio compatibility table.
Option 1 gives a single source of truth; option 2 is simpler with a clear maintenance signal.
Acceptance criteria
Bumping torch in pyproject.toml either automatically installs the correct torchaudio, or there is an obvious, hard-to-miss signal that the install script also needs updating.
Activity