INT4
INT4 is a 4-bit integer quantization format that compresses model weights by 8x vs FP32, enabling large LLMs to run on consumer hardware with modest quality loss.
INT4 quantization reduces each weight to 4 bits, representing only 16 possible values per weight. This aggressive compression allows massive models-like 70B parameter LLMs-to fit into GPUs with 24GB VRAM or even run on CPUs. The key challenge is maintaining model quality when using only 16 discrete levels per weight. Modern methods (like GPTQ, AWQ, and GGUF's Q4_K_M) address this through group-wise quantization, where weights are divided into small groups (e.g., 32 or 128 weights) and each group has its own scaling factor and zero-point. This local adaptivity preserves precision where it matters. INT4 models typically use asymmetric quantization, storing both scale and zero-point in FP16, which adds a small overhead but greatly improves accuracy. For instance, Q4_K_M in llama.cpp uses a 4-bit block quantization with a median of 4-bit values and some higher precision for important weights. Another approach is NF4 (NormalFloat4), used in QLoRA, which is information-theoretically optimal for normally distributed weights. In practice, INT4 models achieve token-per-second throughput that is 2-3x higher than FP16 on memory-bandwidth-bound systems, since less data needs to be loaded from VRAM per token. However, compute-bound scenarios (e.g., very large batch sizes) see less benefit. Accuracy loss from INT4 is model-dependent; many instruction-tuned models show minimal degradation, while base models may lose some perplexity. Techniques like weight-only quantization (where only weights are quantized but activations remain FP16) are common to reduce memory pressure without increasing compute complexity. INT4 is the go-to choice for local deployment (e.g., on a consumer RTX 3090) because it balances memory savings and quality. It is also used in cloud inference to increase server throughput by fitting more models on a single GPU.
q = round((x - min_group) / scale_group) where scale_group = (max_group - min_group) / 15INT4 models are unusable for any serious task; in reality, many INT4 models like Llama 3 and Mistral retain most capabilities with negligible quality loss.
Related terms
Concepts you'll usually encounter alongside this one.
Q4_K_M is a 4-bit quantization method in llama.cpp that combines 4-bit quantization for most weights with higher precision for important weights using a block size of 32.
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.
Used in benchmarks
Workloads on MyAI Bench that involve INT4.
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.