Quantization-aware tuning: train as if the weights were already small
Quantization-aware training (or tuning) lets the model practice under the rounding it will see later. The weights live in a higher precision while they are updated, but the forward pass fake-quantizes them: it rounds as if they were 4-bit, or 8-bit, then computes the loss. The idea is that the finished model will already have made peace with its future rounding.
flowchart LR
W[fp16 / bf16 weights] --> Q[Fake quantize]
Q --> L[Loss]
L --> W
This is easy to confuse with a test I already ran, so I want a hard line between them.
Our 4-bit retention test takes a deletion mask that was already trained in bf16, and asks whether the ToolAlpaca gain still holds when that mask is applied to an MLX 4-bit Qwen3.5-9B. That is not QAT. The mask is frozen. The skill survives the 4-bit grid: from a shared base of 38 of 97, all three seeds keep a large gain under both application forms (66, 66 and 61 nearest-zero; 66, 65 and 62 requantize). Scores and swap times are in Stacking and 4-bit.
QLoRA, in the LoRA post, is a third thing again: an adapter trained on a quantized base.
Previous: GRPO and other RL. Next: Abliteration and steering.