Ultra-Fast Intelligence.
Zero Gatekeeping.
A sovereign downstream distribution of Transformers engineered for extreme inference speed, BitNet ternary quantization, MEM8 wave-interference associative memory, and Python 3.11+ zero-overhead execution.
$ pip install transformers-ultra
⚡ Architectural Innovations
Engineered from ground up for maximum throughput and mathematical purity.
Apple Silicon MPS Native
Single-device unindexed Metal Performance Shaders integration eliminating mps:0 crashes, with resilient safetensors buffer fallback staging on macOS unified memory.
MEM8 Wave Interference
Associative recall across 4 cognitive frequency bands (Math Γ, Code B, Logic A, General Θ) operating in $O(1)$ memory without re-evaluating deep transformer layers.
BitNet 1.58-Bit Ternary Packing
Hardware-accelerated bitmask packing and unpacking routines ported from MLX-QUANT and BitNet b1.58 for ultra-compact LLM weights and integer matrix multiplication.
>2.2× Hot Path Acceleration
Eliminated per-token inspect.signature reflection in LogitsProcessorList, dimension-guarded RoPE embeddings, and bypassed torch.cat on empty prefill caches.
Python 3.11+ & Free-Threading
C-slot memory layouts via __slots__, native StrEnum, structural match/case, and atomic synchronization locks prepared for Python 3.13 nogil runtimes.
Hardened Security & Integrity
Automated boundary containment on checkpoint shard weight maps blocking path traversal attacks (#47176) and deterministic generation config precedence (#47752).
📜 Append-Only Sovereign Commit Ledger
Chronological record of every architectural enhancement and upstream bugfix merged into 8b-is/transformers:main.
__slots__ memory layouts, StrEnum frequency bands, pattern matching (match/case), @ wave interference operator, and thread safety for Python 3.13 free-threading (nogil).
**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.
torch.device("mps") in pipelines/base.py to prevent RuntimeError: Invalid device string 'mps:0' when running on macOS Metal architectures.
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.