A Gentle Introduction to 8-bit Matrix Multiplication for transformers at scale using transformers, accelerate and bitsandbytes
Related stories
Implementing Binary Transformers with Approximate Memories with Permutation Invariance Enabled Selective (PIES) Protection
The paper evaluates the reliability of binary Transformers, specifically BERT, when stored in approximate memory that introduces bit errors. It finds that significant accuracy loss only occurs at high bit error rates (5â10%). To mitigate this, the authors propose a Permutation Invariance Enabled Selective (PIES) protection scheme that selectively safeguards critical weights, achieving nearâfull performance recovery at high error rates with much lower overhead than traditional errorâcorrecting codes.
Introducing Optimum: The Optimization Toolkit for Transformers at Scale
On Generalisation Error Bounds for Transformers
arXiv:2410. 11500v2 Announce Type: replace-cross Abstract: In this paper, we establish a collection of covering number bounds for linear function classes under various norm constraints on the inputs and matrices.
Fast and Stable Triangular Inversion for Delta-Rule Linear Transformers
The paper introduces fast and stable methods for triangular matrix inversion used in Delta-Rule linear transformers, a key component of efficient longâcontext models such as Qwen3.5/3.6 and RWKVâ7. It systematically compares direct and iterative inversion algorithms, emphasizing numerical stability, computational complexity, and hardware efficiency, and validates the approaches with rigorous experiments in lowâprecision settings. Benchmarks on NPUs show up to a 4.3Ă speedâup over current SGLang implementations, improving layer performance while preserving model accuracy.
An Algebra of Transformers
The paper "An Algebra of Transformers" proposes a formal algebraic framework for reasoning about transformer models, building on functional decomposition results. It introduces atomic actions based on these decompositions, along with sequential and parallel composition, recursion for feedback, and abstraction for hidden layers. This marks the first logical modeling attempt for transformers, enabling verification of transformerâbased applications.
Memory-efficient Diffusion Transformers with Quanto and Diffusers
On the Expressive Power of Transformers
arXiv:2608. 12671v1 Announce Type: new Abstract: Multi-layer transformers form the critical component of essentially all large language models (LLMs) in use today.
Modern analog computing for solving differential and matrix equations
arXiv:2606. 13179v1 Announce Type: cross Abstract: In recent years, driven by the computational demands of data-intensive applications such as artificial intelligence and scientific computing, analog computing has gained renewed interest.
Native-speed vLLM transformers modeling backend
The Quantization Benefits of Residual-Free Transformers
The paper investigates how residual connections in transformers affect the distribution of activations, making them heavyâtailed and more difficult to quantize accurately. By comparing standard residual transformers with residualâfree variants, the authors show that residuals increase quantization error and accuracy loss at low precision, while residualâfree models maintain nearâGaussian activations and better robustness to lowâbit quantization. They further demonstrate that residualâfree transformers can be trained effectively using orthogonal initialization, spectral or secondâorder optimization, and depthâaware scaling of attention temperature, achieving comparable fullâprecision performance with improved quantization friendliness.
Modern analog computing for solving differential and matrix equations
In recent years, driven by the computational demands of data-intensive applications such as artificial intelligence and scientific computing, analog computing has gained renewed interest. Given the diversity of computational tasks and recent advancements in analog CMOS circuits and resistive memory technologies, we refer to the evolving landscape as modern analog computing.