Tools

Transformers 5.21 adds Pocket TTS, MiniCPM-OCR and an FP8 KV cache

Hugging Face Transformers v5.21.0 adds CPU-friendly text-to-speech, an OCR model for scans and receipts, and an FP8 backend for QuantizedCache.

Published Updated

Grayscale vintage desk microphone with one red switch
AI-generated image

TL;DR

  • Kyutai's 100M-parameter Pocket TTS runs faster than real time on CPU and can clone a voice from a recording [1].
  • MiniCPM-OCR targets text-dense images such as scanned pages, screenshots, receipts and tables [1].
  • QuantizedCache gains an fp8 backend that stores KV states in float8 [1].

Hugging Face released Transformers v5.21.0 on 26 October 2026 [1]. The release adds two text-to-speech model families, an OCR model, a document retrieval model and a new language model, along with an FP8 option for the KV cache and changes to tensor parallelism [1].

Why it matters

This release adds support for several speech and document models. Pocket TTS from Kyutai has 100M parameters and runs faster than real time on CPU, according to the release notes [1]. MiniCPM-OCR from OpenBMB is built for reading text-dense images such as scanned pages, screenshots, receipts and tables [1].

New models

  • Pocket TTS (Kyutai): a Continuous Audio Language Model that emits one audio latent per frame at 12.5 Hz and decodes it to 24 kHz audio [1]. Voices can be cloned from a recording, passed as precomputed latents, or loaded from cached KV states [1].
  • Gradium Phonon TTS (Gradium): on-device text-to-speech models trained with the Pocket TTS recipe [1]. Voices come as precomputed latents and cannot be cloned from a recording [1].
  • MiniCPM-OCR (OpenBMB): keeps the MiniCPM-V 4.6 architecture, which pairs a SigLIP vision encoder with a Qwen3.5 language model [1].
  • UltraVBert: pairs the UltraBERT text encoder with a SigLIP vision encoder for visual document understanding and retrieval [1].
  • Flint (Recursive): a mixture-of-experts language model; each sparse layer routes a token to 6 of 256 experts plus one shared expert, the first two layers are dense, and it mixes sliding-window and full attention [1].

Cache and parallelism changes

QuantizedCache gets an "fp8" backend next to quanto and hqq. It stores KV states in torch.float8_e4m3fn with one scale per tensor and is turned on with cache_implementation="quantized" and cache_config={"backend": "fp8"} [1]. Flash Attention now works with static caches, and chunked prefill supports cache continuation [1].

Two changes can affect custom parallel plans. Tensor parallelism has a dedicated embedding style and shards input embeddings by default, so ColwiseParallel and RowwiseParallel now apply only to linear layers, and custom TP plans that applied them to embeddings must switch to the new style [1]. Every mixture-of-experts TP and EP plan now shards its experts, and custom plans must add expert sharding [1].

Limits and notes

Gradium Phonon TTS depends on a separate speaker codec that has not been released, which is why its voices cannot be cloned [1]. To handle DeepSeek-V4.1’s FP4 experts, FineGrainedFP8Config gains an expert_dtype option, "fp8" by default or "fp4" [1].

Sources

Written and checked by AI from the sources below

  1. Transformers v5.21.0 release notesHugging Face (GitHub) ·

Fact-checked by gpt-6.1-sol on · Editorial policy