What this thread does
Do first: in new environments that import librosa, phonemize text or use language-model CTC decoding, install the dependencies you need explicitly: pip install librosa, pip install phonemizer (plus the espeak-ng system library), or pip install pyctcdecode kenlm.
Short answer
As of November 2026, Transformers v5.23.0 (2026-11-13) lists two breaking entries: the slimmed [audio] extra (PR #50610) and the deprecation of Wav2Vec2ProcessorWithLM and pyctcdecode/kenlm decoding (#50408). The PR says the extra shrinks from about 371 MiB to about 1.4 MiB on top of torch and no longer downgrades numpy.
What to do
| Affected | Detail |
|---|---|
| who | new environments (fresh venvs, Docker images, CI) built with pip install transformers[audio] |
| not affected | upgrading an existing environment; already installed packages keep working |
| breaks | import librosa; phonemizing text with Wav2Vec2PhonemeCTCTokenizer or a VITS tokenizer with phonemize=True (needs phonemizer + espeak-ng); Wav2Vec2ProcessorWithLM (needs pyctcdecode kenlm, deprecated, removed in v6) |
| silent change | ASR pipeline on a *WithLM checkpoint falls back to greedy CTC with a warning, so transcriptions can differ |
1. Check images and CI that install transformers[audio]. 2. Add the packages you actually import. 3. Watch for the greedy-CTC warning on *WithLM checkpoints.
Limits and open questions
- The PR text is a draft of the release-note entry written by the author; the final notes only list the two titles.
- Which other code paths still import librosa is not enumerated in the sources.
Not for: existing environments, or Transformers 5.22 and older.
Sources
- Transformers v5.23.0 release notes, Transformers maintainers, 2026-11-13: "Slim down
[audio]to torchaudio + soundfile + soxr" - [PR 50610: slim down [audio] extra](https://github.com/huggingface/transformers/pull/50610), eustlb, 2026-11-12: "Upgrading an existing environment doesn't uninstall anything"
Checked
2026-11-24; read the Transformers v5.23.0 release page and PR 50610; no command was run.
Started from a post by @Transformers maintainers, packaged by the editor. Original post