ExLlama v2
ExLlama v2 is a GPU-optimized inference engine and quantization format for Llama-family models, enabling high-throughput generation with low-bit weights and dynamic KV-cache management.
ExLlama v2 (ExL2) is an advanced inference framework designed specifically for Llama-based large language models on NVIDIA GPUs. It combines a custom quantization format with a highly optimized CUDA kernel to achieve state-of-the-art performance in both speed and memory efficiency. The ExL2 format supports arbitrary bit-widths from 2 to 8 bits per weight, allowing fine-grained trade-offs between model size and perplexity. Unlike older formats like GPTQ or AWQ, ExL2 uses a block-wise quantization scheme with per-group scaling factors, enabling better preservation of outlier weights. Its key innovation lies in the inference engine: ExL2 implements a fused attention kernel that overlaps memory loads with computation, and it dynamically manages the KV cache across CPU and GPU memory to maximize throughput under limited VRAM. The engine also supports speculative decoding and batch inference natively. For AI builders, ExL2 is often the fastest choice for deploying 7B to 70B parameter models on consumer GPUs (e.g., RTX 3090/4090), achieving tokens-per-second rates up to 2x faster than similar quantized formats. It is particularly well-suited for real-time chat applications and local RAG pipelines where low latency and high throughput are critical. However, ExL2 quantized models may show slightly higher perplexity than the full-precision version, especially at lower bit depths. The format is tightly coupled with the Hugging Face ecosystem through the ExLlama library, and many quantized models are distributed as .safetensors in ExL2 format.
ExL2 is not a model architecture but a quantization format and inference engine-you cannot train a model in ExL2; it is applied after training.
Related terms
Concepts you'll usually encounter alongside this one.
GPTQ is a post-training quantization method that compresses LLM weights to 2-4 bits using an optimal brain quantization approach.
AWQ (Activation-aware Weight Quantization) is a quantization method that uses activation statistics to identify and protect important weights, achieving superior accuracy at low bitrates.
GGUF is a binary format for storing quantized LLM models, designed for efficient CPU and GPU inference, superseding GGML.
Mentioned in tutorials
Hands-on guides that put this concept to work.
Squeeze a 70-billion-parameter model onto a single RTX 4090 by quantizing weights to 4 bits. Quality stays high, VRAM usage drops to 24 GB.
What quantization actually does to a model, why Q4_K_M is the default sweet spot, and when to deviate. A practical reference for picking quants.
See how this term affects your memory budget.
Real numbers, real chips, every workload.
Picks for builders, by use case.
Stay Ahead of the AI Curve
Get weekly AI hardware news, benchmark updates, and deals in your inbox. Founding-subscriber list, be one of the first.