Weights-only quantization is a neural network compression method where the procedure of reducing bit precision is applied exclusively to the weight tensors (parameters) of the model.
The Essence of Weights-only Quantization Technology
Weights-only quantization is an optimization algorithm where the bit precision is lowered only for the parameter (weight) tensors of the model. Intermediate computation results—activations—retain their original precision, typically remaining in the 32-bit floating-point format (float32) or bfloat16.
If a trained model weighs tens of gigabytes in float32 format, quantization compresses this data into 8-bit (int8), 4-bit (int4, fp4), or even 1-bit representations. Weights are translated from the continuous space of real numbers into a discrete space of integers using two coefficients: scale and zero-point. During inference (model application), a reverse transformation occurs «on-the-fly»: integer weights are multiplied by the scale and interact with activations in floating-point format. Modern tensor cores in GPUs are specifically optimized for such mixed-precision computations.
Fundamental Advantage
The primary difficulty of classic quantization lies in handling activations. Unlike static parameters, activation values are dynamic—they are generated in real-time and directly depend on user input data. Their distribution may contain anomalous outliers. Attempting to squeeze this unpredictable stream into the rigid boundaries of 8-bit integers inevitably leads to overflow (clipping) and an avalanche-like loss of accuracy.
Weights-only quantization eliminates this vulnerability:
Data Staticity: Model parameters are immutable. Their distribution histogram is stable, allowing for the calculation of ideal quantization coefficients once during the calibration stage.
Error Isolation: Since every new matrix multiplication begins with high-precision float32 activations, microscopic distortions of quantized weights do not accumulate and do not destroy the network’s logic layer by layer.
Pipeline Simplification: The method is ideal for Post-Training Quantization (PTQ). It can be applied to any ready-made model without the need for retraining or architectural changes.
The Flip Side
It is necessary to clearly distinguish between two types of resources. Weights-only quantization radically solves the storage problem (Memory Bandwidth). A model compressed to 4 bits requires 8 times less disk space and RAM. This allows loading 70-billion parameter architectures into the memory of a single consumer-grade video card.
However, the computational load (FLOPs) does not decrease as significantly. Activation tensors remain «heavy» (float32), so the processor still performs complex floating-point operations. Nevertheless, since weights are read from memory faster, the time to first token (TTFT) latency and the model’s overall throughput are significantly reduced.
Significance for the LLM Ecosystem
In the realm of large language models, weight-only quantization has become an industry standard. Tools like Llama.cpp, GPTQ, EXL2, or AWQ are based precisely on this principle.
A critically important stage here is calibration. The algorithm needs to analyze a representative data sample (usually 128–512 text fragments) to understand how weights are distributed in each layer and select optimal compression parameters. Advanced techniques, such as AWQ (Activation-aware Weight Quantization), go further: they analyze which weights are most important for conveying meaning (determining this through their correlation with real activations) and protect these parameters from aggressive rounding. Thanks to this, 70-billion parameter models maintain logical coherence even when compressed to 4 bits.
Positioning Among Optimization Methods
Approach Compression Target Retraining Required Degradation Risk Key Value
Weights-only PTQ Weights only None Minimal (1–3%) Deployment safety, RAM/VRAM savings
Full-precision PTQ Weights and activations None High Maximum pragmatism, operation on weak hardware
QAT (Quantization-Aware Training) Weights and activations Mandatory Near-zero Peak quality metrics at small size
Knowledge Distillation Entire architecture Training from scratch Depends on teacher Fundamental model lightening
Weak Points and Limitations
Bit Precision Limit: When attempting to reduce precision to 2 or 3 bits (BitNet architectures) without changing the neural network’s structure itself, accuracy drops to an unacceptable level. Weights physically lose the capacity to store complex patterns.
Sensitive Layers: Normalization mechanisms (RMSNorm, LayerNorm) and Softmax functions in attention blocks are extremely demanding on precision. They are often excluded from the quantization process, remaining in float32.
Data Factor: If the calibration sample does not reflect the real specifics of the tasks (e.g., calibration on news texts for a model that will write code), compression parameters will be selected incorrectly, leading to response degradation.
Weights-only quantization is the most mature and safe tool for the democratization of AI. It does not turn a heavy model into an ultra-fast one, but it effectively solves the main deployment problem—memory shortage. In a world where the size of foundation models grows faster than Moore’s Law, it is precisely the quantization of weights alone that serves as a bridge, allowing cutting-edge algorithms to run on local hardware, making artificial intelligence truly personal.
Contact our experts to select the optimal hardware configuration and calculate rental pricing for your AI workloads.