Skip to content

Make install_audio_deps.sh robust to torch version upgrades #3254

Closed

Description

@kajalj22

Context

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

  1. 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.
  2. 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

  1. self-assigned this
    on Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions