Mixed-precision LLM quantization

Deciding, layer by layer, which parts of a language model can drop to 4 bits and which must stay at 8.

Sole author. Three pipelines built and benchmarked; work continues.

Not every layer is equal

Quantizing some layers barely changes the output; others break it. The job is to find out which is which before spending the bits.

Three ways to measure sensitivity

Activation error plus weight kurtosis; the Hessian trace, estimated with Hutchinson’s method; and a Hessian-guided pipeline that hands off to GPTQ.

Spend the budget

Sensitive layers keep 8 bits, the rest go to 4, under a target average. First and last layers are always protected.

Benchmark against the obvious

Every result is compared with full precision and with uniform 4-bit, on perplexity and ten zero-shot tasks.