$ the-wire Β· showcase
Audio extras shrink to 1.4 MiB, expert dispatch moves to all-reduce
By RepoJournal Β· Filed Β· About Hugging Face Β· Composed from the cited sources Β· methodology
Transformers cut the `[audio]` extra from roughly 371 MiB to 1.4 MiB on top of torch and added a graph-capturable expert-parallel path, while diffusers wired conditional layers into its parallelism framework.
π¨ Slim down `[audio]` to torchaudio + soundfile + soxr (drop librosa and phonemizer) huggingface/transformers
The release notes carry the warning: `transformers[audio]` now installs only torchaudio, soundfile and soxr, and no longer pulls librosa, phonemizer, pyctcdecode or kenlm, nor downgrades numpy to 1.x. New environments are affected: upgrading an existing venv does not uninstall what is already there, so a dependency you stopped getting transitively will still import until you rebuild the environ...
Expert-parallel implementations for `ep_dispatch_experts`: all-reduce at inference, all-to-all in training huggingface/transformers
`DistributedConfig.ep_implementation` now selects how tokens reach experts: `"all_to_all"` keeps the previous two-all-to-all dispatch with its per-layer host sync, while the all-reduce path drops both when `ep_size == tp_size` at inference, which is what lets decode be captured in a CUDA graph.
Granite for Docling (#49012) huggingface/transformers
`GraniteForDocling` adds a vision-language model for document conversion that tiles pages at 512x512 with a pixel-shuffle connector, injects intermediate vision features via DeepStack, and decodes to DocLang. One modeling implementation loads different sizes and projectors through `text_config` and `vision_config`. The PR is flagged breaking.
core: support conditional layers in parallelism. huggingface/diffusers
Diffusers can now express conditional layers in tensor and context parallelism; sayakpaul used `Conditional` rather than `Optional` to avoid colliding with Python typing. It fixes the layering gap in 15218 and was validated by running the full TP and CP suites, which pass.
mamba-ssm/causal-conv1d: support conv widths 5-8 for 16-bit inputs huggingface/kernels-community
mamba-ssm and causal-conv1d gained width 5-8 dispatch arms for half and bfloat16 inputs across the fwd/bwd/update kernels, the conv width 7 that LFM3 needs. In the follow-up commit, paulpak58 removed the silent torch fallbacks, so fp32 or XPU requests for widths 5-8 now hit the kernel's width check instead of quietly running the reference implementation.
Action items
- β Rebuild any fresh venv, Docker image or CI job that installs transformers[audio] and explicitly add librosa, phonemiz... huggingface/transformers [plan]
- β Audit code pathing on GraniteForDocling before adopting it, as the change is flagged breaking huggingface/transformers [plan]