Skip to content

Upstream workaround tracking: WhisperX token patch, torchcodec/soundfile fallback, weights_only #2

Backlog

Description

@bobsummerwill

Three installer patches are still load-bearing. Everything else that used to be listed here was resolved upstream and is now just a version pin — see WORKAROUNDS.md (rewritten, 2026-11-28).

Re-checked live today: whisperx main (v3.8.6, 2026-05-25) still carries both use_auth_token call sites, and whisperx 3.7.6 defaults vad_method="pyannote", so the token patch is exercised on every whisperx run, not just diarization.

Still patched

  • WhisperX use_auth_token — install_venv.sh step 5.
    Upstream: m-bain/whisperX#1407 (closed unmerged).
    Exit: released wheel with zero use_auth_token in asr.py / vads/pyannote.py.
    Fragility: the asr.py edit uses a hardcoded line number (412) and is never verified after patching.

  • torch.load weights_only — install_venv.sh step 8 + _apply_pyannote_torch_compat().
    Upstream: pyannote#1908.
    Exit: pyannote passes weights_only explicitly, or Lightning defaults local loads to False.

  • pyannote / torchcodec ABI — install_venv.sh step 9 (SoundfileFallbackDecoder, then pip uninstall torchcodec).
    Upstream: torchcodec#995 (open; UX only).
    Exit: torchcodec release ABI-compatible with torch 2.9+.

Dropped from tracking (resolved, kept as version pins)

Item Why no longer tracked
SpeechBrain torchaudio 2.9 Fixed in speechbrain==1.1.0 (#2988 merged)
pyannote exact torch==2.8.0 pin pyannote.audio==4.0.1 already ships ranges; main too
pyannote#1952 / #1320 / #1825, WhisperX#1304 Closed upstream, superseded by the code we install

Quarterly check

pip show whisperx pyannote.audio torch torchcodec speechbrain | grep -E "^(Name|Version)"

Then test each exit criterion above; drop patches that pass and update WORKAROUNDS.md.

Activity

  1. bobsummerwill commented on Nov 29, 2026

    @bobsummerwill
    OwnerAuthor

    WhisperX patch fragility fixed (9f8d38c): asr.py no longer uses a hardcoded line number, and both files are count-verified after patching (install exits 1 if a call site survives). Tested against v3.7.6 and upstream main — both patch to zero occurrences and still parse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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