‹ Field GuideLetter 28 · The bell behind the glass
At the west window, Michi asks for bell 3. Koko’s courier sends a perfectly readable tool call for bell 8. The mistake began several steps earlier, when a glass cutter rounded a model weight from 0.2 to about 0.229. A bright input multiplied that little change by ten.
Cut four shards
The kiln’s signed four-bit classroom format has fifteen usable integer codes, −7 through +7. At threshold 1.4 the step is 0.2. Clip each shard into range, divide by 0.2, round to the nearest code, then multiply by the step. The kiln rounds ties away from zero. A −1.60 shard saturates at −1.40. A −0.74 shard rounds to −0.80. The other two change from 0.16 to 0.20 and from 1.22 to 1.20. Averaging the four squared errors gives 0.0114. Other encodings can use different code ranges, zero-points or nonuniform codebooks. NVIDIA’s post-training quantization guide · QLoRA and NF4
Move the light
Our model has two weights, [0.2, 1.6]. A wide cutter keeps 1.6 exactly and rounds 0.2 up to about 0.22857. A narrow cutter keeps 0.2 exactly and clips 1.6 to 1.4. The wide cutter wins on raw squared weight error. Under west light [10, 0.1], the original output is 2.16. The wide cutter gives 2.44571 and the narrow cutter gives 2.14. Now move to moonlight [0, 10]. The wide cutter recovers the original 16 and the narrow cutter produces 14. A calibration sample tells you which errors show up on that sample. Held-out requests can emphasize a different channel.
GPTQ uses approximate second-order information to quantize weights while accounting for their impact on layer outputs. AWQ uses activation statistics to find important channels and searches scaling choices for weight-only quantization. Our two-window search lets you inspect the objective with pencil arithmetic. It implements a two-candidate threshold search. GPTQ paper · AWQ author project · Team’s MLSys talk · Haotian Tang’s talk announcement
Split the bright ray
A shared step of 1 turns the entire small output row [0.1, 0.2] into zeros. A row-specific step of 0.2/7 keeps about [0.11429, 0.2]. The other row, [4, 7], keeps its step of 1. We gained detail and bought one more scale record.
An exceptional activation needs a different decision. For inputs [0.5, 6.5, −0.25] and weights [2, −1.5, 4], the regular contributions cancel. The middle term supplies −9.75. Clipping 6.5 to 6 changes the answer to −9. LLM.int8() sends outlier feature dimensions through a higher-precision matrix product and recombines the outputs. SmoothQuant uses an equivalent channel rescaling to move some activation quantization difficulty into the weights before W8A8 computation. For example, dividing a channel input of 8 by 4 and multiplying its weight of 0.5 by 4 keeps the exact contribution at 4. These approaches change different parts of the computation. LLM.int8() paper · Author’s engineering explanation · Tim Dettmers’ original X announcement · SmoothQuant paper
Weigh the cargo
Press the nibbles for −4 and +6 together, with −4 first. The resulting eight bits are 11000110, or 0xC6. A thousand such four-bit codes occupy 500 bytes. In our tightly packed parcel, 32 groups carry one two-byte FP16 scale each. The file you download is exactly 564 bytes. Padding the last group to 32 codes would bring it to 576 bytes. QLoRA studies how quantizing the quantization constants can reduce metadata costs in its own finetuning design. QLoRA paper
The two guests share one copy of those weights. Each guest also accumulates attention keys and values with each cached token. Our toy model has two layers, two KV heads and four dimensions per head. Both K and V together contain 32 scalars per token. At FP16 that costs 64 bytes. Our classroom four-bit cache adds 16 code bytes and eight two-byte scales per token. Forty tokens with packed weights therefore cost 564 + 40 × 32 = 1,844 bytes. KIVI uses a different layout that groups keys by channel and values by token, motivated by their different observed distributions. Production memory also depends on allocation, padding and the runtime. KIVI paper
Ring the right bell
At the west window, the reference policy scores bell 8 at 2.16 and bell 3 at 2.30. The wide pane changes the first score to about 2.446, flips the greedy choice, and calls bell 8. Both numbers are legal. The harness parses the tool argument, rings the selected bell, and inspects the observed destination. Run all three guests before you book a single full-precision call for a replay. The replay is a repair on the same named cases. Testing a new serving policy would require fresh held-out orders, including rare and long-context cases.
On the harbor shift, freeze a score-gap rule before four new orders arrive. The first close pair can spend one full-precision call. Iris landing has scores about 2.149 and 2.06 with the wide pane, a gap of about 0.089. A threshold of 0.15 sends that order to full precision, which chooses its requested bell 3. Fog pier correctly selects bell 8 but its clapper is stuck. The strike counter stays at zero. Verify the absent effect, clear the clapper and retry the original argument. An order whose bell already rang receives no repeat strike. The ledger keeps the initial frozen rule alongside later practice results.
The glasshouse clocks no real GPU, and its classroom runs establish no hardware speedup. To evaluate an agent deployment, measure actual peak memory, request latency and throughput at a stated load alongside schema validity, retries and end-state task success. The atelier’s own format has a measurable size: a five-byte header followed by 24 panes × three packed color channels. The skiff accepts up to 42 levels of channel error within 23 bytes. The conservatory wants exact colors and gives you 77 bytes. Inspect the decoded colors before mailing either commission. Cut the print-ready net, fold it into a six-sided paper lantern and see exactly which colors survived your chosen bit depth. Enter Prism Glassworks · Follow the precision glazier course