<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Quantization on SoloSoft</title><link>https://www.solosoft.dev/tags/quantization/</link><description>Recent content in Quantization on SoloSoft</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 01 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.solosoft.dev/tags/quantization/index.xml" rel="self" type="application/rss+xml"/><item><title>bitsandbytes: Essential k-bit Quantization Library for LLM Training and Inference</title><link>https://www.solosoft.dev/post/bitsandbytes-quantization-2026/</link><pubDate>Fri, 01 May 2026 00:00:00 +0000</pubDate><guid>https://www.solosoft.dev/post/bitsandbytes-quantization-2026/</guid><description>&lt;p&gt;Large language models have grown far beyond the memory capacity of consumer hardware. A 70-billion-parameter model requires 140 gigabytes of GPU memory in standard 16-bit precision &amp;ndash; far beyond even the most expensive consumer GPUs. &lt;strong&gt;bitsandbytes&lt;/strong&gt; is the library that bridges this gap, providing the quantization techniques that make it possible to load, train, and run large models on affordable hardware.&lt;/p&gt;
&lt;p&gt;Developed by Tim Dettmers at the University of Washington, bitsandbytes has become one of the most critical pieces of infrastructure in the open-source AI ecosystem. It provides three foundational quantization capabilities: 8-bit optimizers for memory-efficient training, LLM.int8() for memory-efficient inference, and 4-bit NormalFloat quantization for QLoRA-style fine-tuning. These techniques have collectively enabled thousands of researchers and developers to work with large models on hardware they already own.&lt;/p&gt;</description></item><item><title>ExLlamaV3: High-Performance LLM Inference Engine</title><link>https://www.solosoft.dev/post/exllamav3-inference-2026/</link><pubDate>Fri, 01 May 2026 00:00:00 +0000</pubDate><guid>https://www.solosoft.dev/post/exllamav3-inference-2026/</guid><description>&lt;p&gt;Running large language models on consumer hardware requires efficient inference engines that squeeze every drop of performance from available GPU memory. ExLlamaV3, developed by the turboderp team, is one of the fastest inference engines available for Llama-family models, particularly when using the EXL3 quantization format.&lt;/p&gt;
&lt;p&gt;ExLlamaV3 achieves its speed through a combination of optimized CUDA kernels, efficient memory management, and quantization-aware computation. It supports both 4-bit and 8-bit EXL3 quantization, dynamic batching, and speculative decoding. For users running local models on consumer GPUs, it consistently delivers the highest tokens-per-second throughput available.&lt;/p&gt;
&lt;h2 id="performance-benchmarks"&gt;Performance Benchmarks&lt;/h2&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Model&lt;/th&gt;
 &lt;th&gt;GPU&lt;/th&gt;
 &lt;th&gt;Quantization&lt;/th&gt;
 &lt;th&gt;Speed (tokens/s)&lt;/th&gt;
 &lt;th&gt;Memory Usage&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Llama 3.1 8B&lt;/td&gt;
 &lt;td&gt;RTX 4090 24GB&lt;/td&gt;
 &lt;td&gt;EXL3 4-bit&lt;/td&gt;
 &lt;td&gt;180&lt;/td&gt;
 &lt;td&gt;6 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Llama 3.1 70B&lt;/td&gt;
 &lt;td&gt;RTX 4090 24GB&lt;/td&gt;
 &lt;td&gt;EXL3 4-bit&lt;/td&gt;
 &lt;td&gt;30&lt;/td&gt;
 &lt;td&gt;22 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Mistral 7B&lt;/td&gt;
 &lt;td&gt;RTX 3060 12GB&lt;/td&gt;
 &lt;td&gt;EXL3 4-bit&lt;/td&gt;
 &lt;td&gt;85&lt;/td&gt;
 &lt;td&gt;5 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Qwen 2.5 32B&lt;/td&gt;
 &lt;td&gt;RTX 4090 24GB&lt;/td&gt;
 &lt;td&gt;EXL3 4-bit&lt;/td&gt;
 &lt;td&gt;55&lt;/td&gt;
 &lt;td&gt;18 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="key-features"&gt;Key Features&lt;/h2&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Feature&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;th&gt;Benefit&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;EXL3 quantization&lt;/td&gt;
 &lt;td&gt;Specialized 4-bit and 8-bit formats&lt;/td&gt;
 &lt;td&gt;Highest quality per bit&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;CUDA kernel optimization&lt;/td&gt;
 &lt;td&gt;Fused attention, flash decoding&lt;/td&gt;
 &lt;td&gt;Maximum throughput&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Dynamic batching&lt;/td&gt;
 &lt;td&gt;Process multiple requests concurrently&lt;/td&gt;
 &lt;td&gt;Higher utilization&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Speculative decoding&lt;/td&gt;
 &lt;td&gt;Draft-then-verify for faster generation&lt;/td&gt;
 &lt;td&gt;2x speedup on some tasks&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;LoRA support&lt;/td&gt;
 &lt;td&gt;Load and swap LoRA adapters at runtime&lt;/td&gt;
 &lt;td&gt;Flexible fine-tuning&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="inference-pipeline"&gt;Inference Pipeline&lt;/h2&gt;

&lt;figure class="mermaid-wrapper not-prose" role="img" aria-label="Mermaid diagram"&gt;
 &lt;div class="mermaid-container"&gt;
 &lt;pre class="mermaid"&gt;flowchart LR
 A[Input Tokens] --&amp;gt; B[Embedding Layer]
 B --&amp;gt; C[Transformer Layer 1]
 C --&amp;gt; D[Layer 2]
 D --&amp;gt; E[Layer N]
 E --&amp;gt; F[Attention with&amp;lt;br/&amp;gt;FlashAttention]
 F --&amp;gt; G[Feed-Forward&amp;lt;br/&amp;gt;with Quantized GEMM]
 G --&amp;gt; H{More Layers?}
 H --&amp;gt;|Yes| D
 H --&amp;gt;|No| I[Output Logits]
 I --&amp;gt; J[Sampling]
 J --&amp;gt; K[Generated Token]
 K --&amp;gt; L[KV Cache Update]
 L --&amp;gt; C&lt;/pre&gt;
 &lt;script type="application/mermaid"&gt;flowchart LR
 A[Input Tokens] --&gt; B[Embedding Layer]
 B --&gt; C[Transformer Layer 1]
 C --&gt; D[Layer 2]
 D --&gt; E[Layer N]
 E --&gt; F[Attention with&lt;br/&gt;FlashAttention]
 F --&gt; G[Feed-Forward&lt;br/&gt;with Quantized GEMM]
 G --&gt; H{More Layers?}
 H --&gt;|Yes| D
 H --&gt;|No| I[Output Logits]
 I --&gt; J[Sampling]
 J --&gt; K[Generated Token]
 K --&gt; L[KV Cache Update]
 L --&gt; C&lt;/script&gt;
 &lt;/div&gt;
&lt;/figure&gt;&lt;p&gt;The pipeline processes tokens through transformer layers with specialized CUDA kernels for attention and feed-forward computation. The KV cache is maintained efficiently in GPU memory, and speculative decoding can accelerate generation by validating multiple tokens at once.&lt;/p&gt;</description></item><item><title>GPTQModel: Production-Ready LLM Quantization Toolkit for GPU and CPU</title><link>https://www.solosoft.dev/post/gptqmodel-quantization-2026/</link><pubDate>Fri, 01 May 2026 00:00:00 +0000</pubDate><guid>https://www.solosoft.dev/post/gptqmodel-quantization-2026/</guid><description>&lt;p&gt;Large language models are powerful, but their size makes them expensive to deploy. A 70-billion-parameter model in 16-bit precision requires 140GB of GPU memory &amp;ndash; well beyond a single consumer GPU. Quantization is the primary solution: reducing numerical precision to shrink memory footprint and accelerate inference. &lt;strong&gt;GPTQModel&lt;/strong&gt;, developed by ModelCloud, is a production-ready quantization toolkit that makes this practical across a wide range of hardware.&lt;/p&gt;
&lt;p&gt;GPTQModel unifies multiple quantization methods &amp;ndash; GPTQ, AWQ, and GGUF &amp;ndash; under a single API, supporting over 30 model architectures on Nvidia, AMD, and Intel GPUs as well as CPU inference. The project at &lt;a href="https://github.com/ModelCloud/GPTQModel"&gt;github.com/ModelCloud/GPTQModel&lt;/a&gt; has rapidly become the go-to quantization library for teams that need to deploy LLMs in production without locking into a single quantization format.&lt;/p&gt;</description></item><item><title>ik_llama.cpp: Fork of llama.cpp with IQ4_NL and Advanced Quantization</title><link>https://www.solosoft.dev/post/ik-llama-cpp-2026/</link><pubDate>Fri, 01 May 2026 00:00:00 +0000</pubDate><guid>https://www.solosoft.dev/post/ik-llama-cpp-2026/</guid><description>&lt;p&gt;The ecosystem around llama.cpp has produced numerous forks, each exploring different optimization strategies for running LLMs efficiently on consumer hardware. &lt;strong&gt;ik_llama.cpp&lt;/strong&gt; (ikawrakow/ik_llama.cpp on GitHub) stands out as one of the most technically significant forks, introducing advanced quantization methods that push the boundaries of what is achievable with low-bit model compression.&lt;/p&gt;
&lt;p&gt;Created by ikawrakow, this fork has gained a reputation in the AI community for its IQ4_NL (Importance-aware Quantization 4-bit Non-Linear) technique and improvements to the K-quants family of quantization methods. While the mainline llama.cpp focuses on broad compatibility and stability, ik_llama.cpp serves as a research vehicle for quantization innovations that often influence the direction of the entire ecosystem.&lt;/p&gt;</description></item><item><title>llama.cpp: High-Performance LLM Inference on CPU and GPU</title><link>https://www.solosoft.dev/post/llama-cpp-inference-2026/</link><pubDate>Fri, 01 May 2026 00:00:00 +0000</pubDate><guid>https://www.solosoft.dev/post/llama-cpp-inference-2026/</guid><description>&lt;p&gt;The dream of running powerful language models entirely on your own hardware, without sending data to cloud APIs, was once considered impractical for anyone outside of large tech companies. &lt;strong&gt;llama.cpp&lt;/strong&gt; shattered that assumption. This single-header C++ implementation has become the most popular tool for running LLMs locally, democratizing access to AI computation across virtually every hardware configuration.&lt;/p&gt;
&lt;p&gt;Created by Georgi Gerganov, llama.cpp started as a focused implementation of Meta&amp;rsquo;s Llama architecture and has since grown into a universal inference engine supporting hundreds of model architectures, multiple backends (CPU, CUDA, Metal, ROCm, Vulkan), and a rich ecosystem of tools and integrations.&lt;/p&gt;</description></item><item><title>MLX LM: LLM Inference and Fine-Tuning on Apple Silicon</title><link>https://www.solosoft.dev/post/mlx-lm-llm-2026/</link><pubDate>Fri, 01 May 2026 00:00:00 +0000</pubDate><guid>https://www.solosoft.dev/post/mlx-lm-llm-2026/</guid><description>&lt;p&gt;The promise of running LLMs locally on a MacBook has been seductive but incomplete. Ollama and llama.cpp made it possible, but performance left room for improvement — models ran, but they did not fully leverage Apple Silicon&amp;rsquo;s architecture. The gap between what a MacBook could theoretically do and what inference engines delivered was visible in every benchmark.&lt;/p&gt;
&lt;p&gt;MLX LM closes this gap. Built on Apple&amp;rsquo;s own MLX framework, it runs LLM inference and fine-tuning at speeds that previously required dedicated GPU hardware. The key is MLX&amp;rsquo;s unified memory architecture — no data copying between CPU and GPU, no PCI-e bottlenecks, just direct access to the full memory bandwidth of Apple Silicon. For a MacBook Pro with an M4 Max, MLX LM delivers inference performance that rivals mid-range NVIDIA GPUs.&lt;/p&gt;</description></item><item><title>TensorRT-LLM: NVIDIA's Open-Source Library for Optimized LLM Inference</title><link>https://www.solosoft.dev/post/tensorrt-llm-inference-2026/</link><pubDate>Fri, 01 May 2026 00:00:00 +0000</pubDate><guid>https://www.solosoft.dev/post/tensorrt-llm-inference-2026/</guid><description>&lt;p&gt;Deploying large language models in production requires more than just loading weights onto a GPU. To achieve acceptable throughput and latency, you need kernel fusion, attention optimization, memory management, and quantization &amp;ndash; all tuned for your specific hardware. NVIDIA&amp;rsquo;s &lt;strong&gt;TensorRT-LLM&lt;/strong&gt; provides all of this in a single open-source library that extracts maximum performance from NVIDIA GPUs for LLM and visual generation inference.&lt;/p&gt;
&lt;p&gt;TensorRT-LLM, hosted at &lt;a href="https://github.com/NVIDIA/TensorRT-LLM"&gt;github.com/NVIDIA/TensorRT-LLM&lt;/a&gt;, is NVIDIA&amp;rsquo;s official inference optimization library for large language models and visual generative models. It includes state-of-the-art kernel implementations for attention (FlashAttention, PageAttention), quantization (FP8, INT4, INT8, INT4-AWQ), and in-flight batching. The library compiles models into optimized engine files that run efficiently across NVIDIA&amp;rsquo;s GPU lineup from Turing to Blackwell architectures.&lt;/p&gt;</description></item></channel></rss>