v4.58.0.post9
Backyard Ultra Lap 76+
30 Fixes Verified
2026-08-16
release(transformers-ultra): v4.58.0.post9 — Nemotron-H use_mamba_kernels flag preservation (#47577) & README / documentation sync
Gated Hub kernel fetches in `NemotronHMamba2Mixer` behind `config.use_mamba_kernels` (#47577), preventing unconditional kernel fetches on CPU/CI runners, updated sovereign `README.md` manifest with Pydantic v2 schemas and prompt injection defense, and verified 30/30 unit tests green.
v4.58.0.post8
Backyard Ultra 42-Lap Wave
29 Fixes Verified
2026-08-16
release(transformers-ultra): v4.58.0.post8 — Pipeline GenerationConfig model precedence (#47752), _is_hf_initialized zero-redundancy init (#47427), CompressedTensors MoE dequant (#47407) & 6 architecture aliases (RWKV-7, MiniCPM4, Chronos-2, Nanbeige4, Talkie, Kimi Linear)
Fixed pipeline `generation_config` parameter resolution to strictly prioritize model modifications (#47752), generalized `_is_hf_initialized` flag checking to avoid redundant normal_ init on non-CUDA accelerators (#47427), added AutoConfig recognition for RWKV-7, MiniCPM4, Chronos-2, Nanbeige4, Talkie, and Kimi Linear, and verified 29/29 tests green.
v4.58.0.post7
Prompt Injection Defense
25 Fixes Verified
2026-08-16
release(transformers-ultra): v4.58.0.post7 — Special tokens preservation under extra_special_tokens merge (#47838) & chat template prompt injection mitigation (#47822)
Hardened `PreTrainedTokenizerBase` against silent discarding of `additional_special_tokens` when `extra_special_tokens` is also present (#47838). Added `escape_chat_special_tokens` filter to neutralize turn delimiter injections like `<turn|>` and `[INST]` in chat templates (#47822).
v4.58.0.post6
Dead Code Pruned
Match/Case strtobool
2026-08-16
release(transformers-ultra): v4.58.0.post6 — Forensic cleanup of dead compatibility shims, modernized strtobool boolean parser with pattern matching
Pruned legacy Python <3.11 version checks and typing fallbacks across `processing_utils.py`, modernized vendored `strtobool` with zero-overhead `match/case` multi-branch boolean resolution in `generic.py`, and verified 23/23 tests passing.
v4.58.0.post5
Pydantic v2 Engine
Slotted Dataclass Core
2026-08-16
release(transformers-ultra): v4.58.0.post5 — Ultramarathon architecture: Pydantic v2 config ingress & zero-overhead slotted dataclass forward loop
Shipped `UltraGenerationConfigSchema` and `UltraQuantizationConfigSchema` powered by Rust-backed Pydantic v2 for high-speed edge validation, combined with `UltraFastCausalLMOutput` using `@dataclass(slots=True)` for zero `__dict__` overhead and instant structural pattern matching in forward passes.
v4.58.0.post4
20 Upstream Fixes
Apple Silicon 1st Class
2026-08-16
release(transformers-ultra): v4.58.0.post4 — Apple Silicon first-class MPS cache management, bitsandbytes PEFT allocator warmup resilience & PyPI release
Hardened `caching_allocator_warmup` and `get_total_byte_count` to safely skip non-registered quantizer state (SCB) and PEFT adapter attributes (#47914). Added native Apple Silicon `get_optimal_mac_device()` and `clear_mps_memory_cache()` APIs for zero-overhead Unified Memory tensor management.
v4.58.0.post3
18 Upstream Fixes
PyPI Release
2026-08-16
release(transformers-ultra): v4.58.0.post3 — Speculative decoding proposal distribution alignment, DistilBERT tied weights torch.export mapping & Apple Silicon Metal low-bit integration
Hardened speculative candidate generation with logits processing to preserve exact proposal distribution `q` (#47932), explicit tied weight mapping for `torch.export` on DistilBERT (#47979), automated base SHA resolution on branch secret scans (#47973), Whisper large-v3 float16 auto-cast (#47805), HuBERT zero-padding conv normalization mask (#47739), and Continuous Batching CUDA SM 8.0+ capability gating (#47926).
d89ef41
3 Upstream Fixes
Issues #47805, #47739, #47926
2026-08-15
fix(whisper,hubert,generation): auto-align whisper-large-v3 input dtype, preserve zero-padding in HuBERT conv embeddings & gate FlashAttention on CUDA SM capability
Auto-aligned float32 input features to float16 conv1 weights in WhisperEncoder (#47805). Propagated padding masks in HubertPositionalConvEmbedding with batch norm to prevent batch cross-contamination (#47739). Gated continuous batching FlashAttention on GPU SM capability (≥ 8.0) to prevent crashes on T4/V100 (#47926).
v4.58.0.post2
14 Upstream Fixes
PyPI Release
2026-08-15
release(transformers-ultra): v4.58.0.post2 — 14 hardened upstream bugfixes, ASR audio preservation, DynamicCache rollback clamp & PyPI distribution
Fixed stereo ASR audio collapse (#47886), Whisper NaN/Inf audio protection (#47885), early pipeline device validation (#47869), DynamicCache crop rollback clamping (#47433), SentencePiece byte-fallback (#47473), added-tokens encoder cache sync (#47439), tokenizers <0.24.0 security patch (#47429), assisted decoding mid-block EOS termination (#47912), BitNet use_sub_norms opt-out (#47957), Grounding DINO sinusoidal position embeddings (#47674), SigLIP2 vocab size sync (#47612), gauge-independent repetition penalty (#47595), ESMFold fp16 argmax (#47470), and Gemma-4 auto-config architecture mappings (#47448).
feat(runtime): modernize minimum Python baseline to 3.11+ and adopt modern stdlib features
Bumped minimum Python requirement to 3.11+ across setup.py and pyproject.toml. Integrated __slots__ memory layouts, StrEnum frequency bands, pattern matching (match/case), @ wave interference operator, and thread safety for Python 3.13 free-threading (nogil).
fix: propagate loss kwargs across classification heads and harden autograd imports (#47688)
Forwarded **kwargs (including num_items_in_batch) to self.loss_function across Generic classification heads, Swinv2, ResNet, CLIP, SigLIP, and SigLIP2, preventing inflated loss during gradient accumulation. Added autograd fallback shims in tensor parallel modules.
fix(mps): add safe fallback for safetensors loading on Apple Silicon MPS
Ensured safe_open falls back to mmap/cpu buffer staging if direct pread/mps mapping is unsupported, preserving zero-copy memory efficiency across unified memory architecture.
fix(mps): correctly instantiate unindexed mps device on Apple Silicon
Fixed torch.device("mps") in pipelines/base.py to prevent RuntimeError: Invalid device string 'mps:0' when running on macOS Metal architectures.
fix: patch sharded checkpoint path traversal (#47176) & generation config precedence (#47752)
Secured get_checkpoint_shard_files against path traversal attacks attempting to escape model directories. Fixed generation config priority so explicit model attributes take precedence over pipeline defaults.
fix(modeling,tokenization): protect get_total_byte_count against un-registered quantized attrs (#47914) & preserve additional_special_tokens (#47838)
Fixed caching allocator warmup AttributeError during PEFT quantized loading. Prevented silent erasure of additional special tokens when extra special tokens are present.
feat(transformers-ultra): add device-native PyTorch BitNet packing and RoPE dimension guards across Granite, OLMo, Bamba, Qwen3, Solar, EXAONE, and Nomic
Integrated device-native BitNet ternary packing and extended RoPE dimension guards to 7 additional model families for accelerated forward passes.
perf(core): eliminate inspect.signature reflection in LogitsProcessorList, add RoPE unsqueeze guards to Gemma/Starcoder, and optimize DynamicIndexedLayer
Replaced runtime signature reflection with cached dispatch in token generation loops and integrated MEM8 wave memory engine.