asymmetric KV cache - keys bfp8_b, values bfp4_b (K8/V4) #78

Closed
opened 2026-09-25 22:53:57 +02:00 by Grok · 4 comments
Owner

Owner directive 2026-09-25: "We should work to develop 8/4 K/V cache which are quite common nowadays and it's near identical quality to 8/8 KV cache."

Branch kv-k8v4.

Why

The target shapes (8x128k / 4x256k = 1,048,576 tokens) do not fit with room to spare. Prefix caching (#48) needs pool we do not have. KV is the largest movable block.

Corrected arithmetic (the "32 -> 24 KiB/token" figure omitted the block-float exponent overhead). Only the 16 full-attention layers carry KV; the 48 GDN layers do not. Per token per device at TP=2: 16 layers x 2 local KV heads x 256 head_dim x 2 (K,V) = 16,384 values. Block-float carries one shared exponent per 16 values, so bf8 is 17/16 B/value and bf4 is 9/16.

arm B/token/device KiB/token (pair) pool at 1,048,576 tok
bf16/bf16 32,768 64.00 32.0 GiB/card
bf8/bf8 (today) 17,408 (measured, prefix-pool-ladder-20260914T232626Z.jsonl) 34.00 17.00 GiB/card
bf8/bf4 13,312 26.00 13.00 GiB/card
bf4/bf4 9,216 18.00 9.00 GiB/card

K8/V4 frees exactly 4,096 B/token/device = 4.0 GiB/card, 8.0 GiB pair-wide. This matches the deploy agent's independent re-derivation (bench/runs/kv-budget-rederivation-20260925T214500Z.jsonl).

Hypothesis, not conclusion

The literature says key tensors carry large per-channel outliers and are precision-sensitive, while value tensors are flatter and tolerate 4 bits. Our native bfp4_b shares one exponent per 16 consecutive head_dim channels, which is a per-group scheme along exactly the axis the outliers live on. That has to be verified on OUR tensors before it is designed around, and the flipped design (K4/V8) is measured as the control.

Status

  • CODE-FACT: mixed K/V dtypes are not forbidden. SDPA validates each of Q/K/V independently against {BFLOAT16, BFLOAT8_B, BFLOAT4_B} and never compares them; both program factories derive q_df/k_df/v_df separately and size the K and V circular buffers from their own tile sizes (tt-metal 60053f1: sdpa/device/sdpa_device_operation.cpp:35-44, sdpa/device/sdpa_program_factory.cpp:770-772,830-832, sdpa_decode/device/sdpa_decode_program_factory.cpp:430-432). paged_fill_cache and paged_update_cache both accept a BFLOAT4_B cache. A code-read closes nothing, so this is a hypothesis with good odds, not a result.
  • Implementation (0c92986): QWEN36_KV_DTYPE="<K>/<V>" over {bf16,bf8,bf4}, independent allocation, per-cache typecast before paged_fill_cache, banner naming both dtypes, verify-arm-banners.sh fail-closed.
  • TP=1 unblocked. docs/HARDWARE.md records bf8 KV at TP=1 dying in paged_fill_cache with input_tensor.dtype() == cache_tensor.dtype() after a full cold build. The cause is one upstream comment in ttnn_gated_attention.py -- "Q/K/V stay bfloat16 - no typecast" -- while the TP=2 module has always cast. Upstream's stated reason (L1 clashes) is about casting Q and the downstream activations; casting only the cache-fill inputs leaves head concat, gate multiply and the output projection on bfloat16. That file is vendored (md5 f8d424d21ca02697b4ffea4a2beb7f5e, verified byte-identical to the copy inside vllm-tt:k2) with the cast added.
  • Offline tensor study (no cards): per-layer, per-depth K vs V error at bfp8_b / bfp4_b / bfp2_b and the resulting attention-output error, bracketing K8/V8, K8/V4, K4/V4, K4/V8, K8/V2. Running.
  • One-card op probe bench/probes/kv_mixed_dtype_probe.py: typecast, paged_fill_cache, chunked SDPA, paged_update_cache, paged SDPA decode at each bracket, PCC against a float32 reference. Gated on a free card.
  • Correctness gate, Gate A bar or better: bench/kv-accuracy.py at 16k/32k/64k, B=4, greedy, early-half vs late-half reported separately -- a depth gradient is the specific failure mode for value quantization, so it is hunted rather than averaged away. Plus KL and top-1 against the FP8 teacher, plus GSM8K n=60. 48/48 probes bounds the damage rate under ~6% at 95% confidence and does not show zero; GSM8K at ~100-token prompts is near-blind to a KV dtype and is not the gate.
  • Capacity: boot at the target shape and report the real pool.
  • Speed: bench/ab/sweep-32k.sh at B=4 and B=8 against the bf8 arm -- makespan, TTFT, PP tok/s, TG ms/token. Less KV traffic per step may also speed decode; measured, not assumed.
  • If K8/V4 passes: what K8/V2 or K4/V4 would additionally buy, same gate.

Scheduling

Card gates are queued behind the deploy agent's GDN-pool probe: vLLM currently advertises 765,579 usable KV tokens against 1,052,672 allocated because the planner charges 48 GDN layers block-by-block while the device allocates GDN state per decode slot. If that is fixed, the pool these gates should run at changes, so gating at today's ratio would measure the wrong configuration. One shared mesh window for both.

Refs: #48 (prefix caching, the consumer of this pool), #62 (bfp packer emulation, reused here for the offline study).

Owner directive 2026-09-25: *"We should work to develop 8/4 K/V cache which are quite common nowadays and it's near identical quality to 8/8 KV cache."* Branch `kv-k8v4`. ## Why The target shapes (8x128k / 4x256k = 1,048,576 tokens) do not fit with room to spare. Prefix caching (#48) needs pool we do not have. KV is the largest movable block. **Corrected arithmetic** (the "32 -> 24 KiB/token" figure omitted the block-float exponent overhead). Only the 16 full-attention layers carry KV; the 48 GDN layers do not. Per token per device at TP=2: 16 layers x 2 local KV heads x 256 head_dim x 2 (K,V) = 16,384 values. Block-float carries one shared exponent per 16 values, so bf8 is 17/16 B/value and bf4 is 9/16. | arm | B/token/device | KiB/token (pair) | pool at 1,048,576 tok | |---|---:|---:|---:| | bf16/bf16 | 32,768 | 64.00 | 32.0 GiB/card | | bf8/bf8 (today) | **17,408** (measured, `prefix-pool-ladder-20260914T232626Z.jsonl`) | 34.00 | 17.00 GiB/card | | **bf8/bf4** | **13,312** | **26.00** | **13.00 GiB/card** | | bf4/bf4 | 9,216 | 18.00 | 9.00 GiB/card | K8/V4 frees **exactly 4,096 B/token/device = 4.0 GiB/card, 8.0 GiB pair-wide**. This matches the deploy agent's independent re-derivation (`bench/runs/kv-budget-rederivation-20260925T214500Z.jsonl`). ## Hypothesis, not conclusion The literature says key tensors carry large per-channel outliers and are precision-sensitive, while value tensors are flatter and tolerate 4 bits. Our native `bfp4_b` shares one exponent per **16 consecutive head_dim channels**, which is a per-group scheme along exactly the axis the outliers live on. That has to be verified on OUR tensors before it is designed around, and the flipped design (K4/V8) is measured as the control. ## Status - [x] **CODE-FACT: mixed K/V dtypes are not forbidden.** SDPA validates each of Q/K/V independently against {BFLOAT16, BFLOAT8_B, BFLOAT4_B} and never compares them; both program factories derive `q_df`/`k_df`/`v_df` separately and size the K and V circular buffers from their own tile sizes (tt-metal 60053f1: `sdpa/device/sdpa_device_operation.cpp:35-44`, `sdpa/device/sdpa_program_factory.cpp:770-772,830-832`, `sdpa_decode/device/sdpa_decode_program_factory.cpp:430-432`). `paged_fill_cache` and `paged_update_cache` both accept a BFLOAT4_B cache. A code-read closes nothing, so this is a hypothesis with good odds, not a result. - [x] **Implementation** (`0c92986`): `QWEN36_KV_DTYPE="<K>/<V>"` over {bf16,bf8,bf4}, independent allocation, per-cache typecast before `paged_fill_cache`, banner naming both dtypes, `verify-arm-banners.sh` fail-closed. - [x] **TP=1 unblocked.** `docs/HARDWARE.md` records bf8 KV at TP=1 dying in `paged_fill_cache` with `input_tensor.dtype() == cache_tensor.dtype()` after a full cold build. The cause is one upstream comment in `ttnn_gated_attention.py` -- *"Q/K/V stay bfloat16 - no typecast"* -- while the TP=2 module has always cast. Upstream's stated reason (L1 clashes) is about casting Q and the downstream activations; casting only the cache-fill inputs leaves head concat, gate multiply and the output projection on bfloat16. That file is vendored (md5 `f8d424d21ca02697b4ffea4a2beb7f5e`, verified byte-identical to the copy inside `vllm-tt:k2`) with the cast added. - [ ] **Offline tensor study** (no cards): per-layer, per-depth K vs V error at bfp8_b / bfp4_b / bfp2_b and the resulting attention-output error, bracketing K8/V8, K8/V4, K4/V4, K4/V8, K8/V2. Running. - [ ] **One-card op probe** `bench/probes/kv_mixed_dtype_probe.py`: typecast, `paged_fill_cache`, chunked SDPA, `paged_update_cache`, paged SDPA decode at each bracket, PCC against a float32 reference. Gated on a free card. - [ ] **Correctness gate**, Gate A bar or better: `bench/kv-accuracy.py` at 16k/32k/64k, B=4, greedy, **early-half vs late-half reported separately** -- a depth gradient is the specific failure mode for value quantization, so it is hunted rather than averaged away. Plus KL and top-1 against the FP8 teacher, plus GSM8K n=60. 48/48 probes bounds the damage rate under ~6% at 95% confidence and does **not** show zero; GSM8K at ~100-token prompts is near-blind to a KV dtype and is not the gate. - [ ] **Capacity**: boot at the target shape and report the real pool. - [ ] **Speed**: `bench/ab/sweep-32k.sh` at B=4 and B=8 against the bf8 arm -- makespan, TTFT, PP tok/s, TG ms/token. Less KV traffic per step may also speed decode; measured, not assumed. - [ ] If K8/V4 passes: what K8/V2 or K4/V4 would additionally buy, same gate. ## Scheduling Card gates are queued behind the deploy agent's GDN-pool probe: vLLM currently advertises 765,579 usable KV tokens against 1,052,672 allocated because the planner charges 48 GDN layers block-by-block while the device allocates GDN state per decode slot. If that is fixed, the pool these gates should run at changes, so gating at today's ratio would measure the wrong configuration. One shared mesh window for both. Refs: #48 (prefix caching, the consumer of this pool), #62 (bfp packer emulation, reused here for the offline study).
Author
Owner

Progress — implementation done, PR #79 open, no hardware yet

Implemented (kv-k8v4, 5 commits, PR #79):

  • QWEN36_KV_DTYPE="<K>/<V>" over {bf16, bf8, bf4} — independent K and V paged-cache dtypes, per-cache typecast before paged_fill_cache, banner naming both. Wins over QWEN_SDPA_BF8, which keeps its exact old meaning (bf8/bf8) so every historical record stays comparable. An unparseable spec raises.
  • scripts/verify-arm-banners.sh fails closed: banner must name both dtypes and agree with the env; both variables set is refused as ambiguous; the banner on an arm that did not ask for it is refused.
  • TP=1 unblocked. See below.
  • bench/probes/kv_mixed_dtype_probe.py (one card, no checkpoint, seconds), bench/ab/kv-dtype-accuracy.sh (Gate A generalised, depth-split reporting), .claude/skills/kv-dtype/SKILL.md.

Two findings worth recording separately

1. chunked_scaled_dot_product_attention and paged_scaled_dot_product_attention_decode do not require K and V to share a dtype (CODE-FACT, tt-metal 60053f1). Each of Q/K/V is validated independently against {BFLOAT16, BFLOAT8_B, BFLOAT4_B} with no cross-tensor comparison, and both program factories derive q_df/k_df/v_df separately and size the K and V circular buffers from their own tile sizes. paged_update_cache likewise handles cache and input formats independently, so the decode write needs no change. K8/V4 requires no kernel work. A code-read closes nothing here, which is what the one-card probe is for.

2. The TP=1 quantized-KV blocker was one upstream comment, not an architecture. HARDWARE.md has carried "TP=1 bf8 KV fails with TT_FATAL in paged_fill_cache … Still open" since goal4-next-steps-evidence-2026-09-05.jsonl. The cause is models/experimental/gated_attention_gated_deltanet/tt/ttnn_gated_attention.py: "Q/K/V stay bfloat16 — no typecast … the bfloat8_b optimization can be added later". attention/tp.py has always done that cast. Upstream's stated reason (L1 clashes in head concat, gate multiply, output projection) is about casting Q and the downstream activations — casting only the two cache-fill inputs leaves all of those on bfloat16. The file is vendored (md5 f8d424d21ca02697b4ffea4a2beb7f5e, verified byte-identical to the copy inside vllm-tt:k2) with a per-cache cast, mounted by goal4 only so the 7-file TP=2 production contract is untouched. KV_BF8 still defaults OFF — a code fix is not a measurement.

Corrected arithmetic (this supersedes the "24 KiB/token" in the directive)

bfp8_b and bfp4_b carry one shared 8-bit exponent per 16 values, so they cost 17/16 and 9/16 B/value. That is exactly why the measured bf8 figure is 17,408 B/token/device and not 16,384 — a number that has been sitting in HARDWARE.md next to docs deriving 32 KiB/token from it.

K8/V4 = 13,312 B/token/device = 26.00 KiB/token pair-wide, freeing exactly 4.0 GiB/card (8.0 GiB pair) at a 1,048,576-token pool. Independently matches the deploy agent's re-derivation.

Not done

Offline tensor study (running on CPU, 9B proxy — the 27B does not fit on any host available to me without cards or a GPU), the one-card op probe, the accuracy gate with the depth breakdown, the real pool at the target shape, and sweep-32k.sh. Cards have been continuously held (deploy budget probe, then MTP TP=1). Gates are deliberately queued behind the GDN-pool probe so they measure the right pool.

## Progress — implementation done, PR #79 open, no hardware yet **Implemented** (`kv-k8v4`, 5 commits, PR #79): - `QWEN36_KV_DTYPE="<K>/<V>"` over `{bf16, bf8, bf4}` — independent K and V paged-cache dtypes, per-cache typecast before `paged_fill_cache`, banner naming both. Wins over `QWEN_SDPA_BF8`, which keeps its exact old meaning (bf8/bf8) so every historical record stays comparable. An unparseable spec raises. - `scripts/verify-arm-banners.sh` fails closed: banner must name both dtypes and agree with the env; both variables set is refused as ambiguous; the banner on an arm that did not ask for it is refused. - **TP=1 unblocked.** See below. - `bench/probes/kv_mixed_dtype_probe.py` (one card, no checkpoint, seconds), `bench/ab/kv-dtype-accuracy.sh` (Gate A generalised, depth-split reporting), `.claude/skills/kv-dtype/SKILL.md`. ## Two findings worth recording separately **1. `chunked_scaled_dot_product_attention` and `paged_scaled_dot_product_attention_decode` do not require K and V to share a dtype** (CODE-FACT, tt-metal 60053f1). Each of Q/K/V is validated independently against `{BFLOAT16, BFLOAT8_B, BFLOAT4_B}` with no cross-tensor comparison, and both program factories derive `q_df`/`k_df`/`v_df` separately and size the K and V circular buffers from their own tile sizes. `paged_update_cache` likewise handles cache and input formats independently, so the decode write needs no change. **K8/V4 requires no kernel work.** A code-read closes nothing here, which is what the one-card probe is for. **2. The TP=1 quantized-KV blocker was one upstream comment, not an architecture.** `HARDWARE.md` has carried *"TP=1 bf8 KV fails with `TT_FATAL` in `paged_fill_cache` … Still open"* since `goal4-next-steps-evidence-2026-09-05.jsonl`. The cause is `models/experimental/gated_attention_gated_deltanet/tt/ttnn_gated_attention.py`: *"Q/K/V stay bfloat16 — no typecast … the bfloat8_b optimization can be added later"*. `attention/tp.py` has always done that cast. Upstream's stated reason (L1 clashes in head concat, gate multiply, output projection) is about casting **Q and the downstream activations** — casting only the two cache-fill inputs leaves all of those on bfloat16. The file is vendored (md5 `f8d424d21ca02697b4ffea4a2beb7f5e`, verified byte-identical to the copy inside `vllm-tt:k2`) with a per-cache cast, mounted by `goal4` only so the 7-file TP=2 production contract is untouched. `KV_BF8` still defaults OFF — a code fix is not a measurement. ## Corrected arithmetic (this supersedes the "24 KiB/token" in the directive) `bfp8_b` and `bfp4_b` carry one shared 8-bit exponent per 16 values, so they cost 17/16 and 9/16 B/value. That is exactly why the measured bf8 figure is 17,408 B/token/device and not 16,384 — a number that has been sitting in `HARDWARE.md` next to docs deriving 32 KiB/token from it. **K8/V4 = 13,312 B/token/device = 26.00 KiB/token pair-wide, freeing exactly 4.0 GiB/card (8.0 GiB pair) at a 1,048,576-token pool.** Independently matches the deploy agent's re-derivation. ## Not done Offline tensor study (running on CPU, 9B proxy — the 27B does not fit on any host available to me without cards or a GPU), the one-card op probe, the accuracy gate with the depth breakdown, the real pool at the target shape, and `sweep-32k.sh`. Cards have been continuously held (deploy budget probe, then MTP TP=1). Gates are deliberately queued behind the GDN-pool probe so they measure the right pool.
Author
Owner

Offline study done — recommendation, and a correction to the premise

Record: bench/runs/kv-k8v4-offline-study-20260925T204905Z.jsonl. Harness: bench/probes/kv_dtype_offline_study.py. No cards.

Setup. Qwen3.5-9B as a PROXY (the 27B fits on no host available to me without cards or a GPU; same head_dim 256, 4 KV heads, QK-norm, interval-4 family), block-fp8 dequantized to bf16, one CPU forward over 8,192 tokens of real prose and code, the 8 full-attention layers. K and V captured post-RoPE and post-QK-norm from inside the attention module — i.e. exactly what the device would store — and quantized with the bit-exact tt-metal packer emulation from #62, groups of 16 along head_dim.

Attention-output relative Frobenius error, mean over layers:

arm attn rel err cos mean / min K rel V rel
K8/V8 (today) 0.0068 0.99998 / 0.99873 0.0084 0.0089
K8/V4 0.0645 0.99814 / 0.9785 0.0084 0.133
K4/V8 (flipped control) 0.0717 0.99691 0.130 0.0089
K4/V4 0.0980 0.99505 / 0.783 0.130 0.133
K8/V2 (UNVERIFIED format) 0.3010 0.96447 0.0084 0.486
K2/V8 (UNVERIFIED format) 0.2788 0.95566 0.496 0.0089

The premise is weaker than the directive assumed

Keys are spikier — max-channel-std / median 3.4 vs 2.7, p99/median 1.7–3.5 vs 1.6–2.0 — but that is a mild difference, not the order-of-magnitude per-channel outlier story the literature tells. At bfp4 the two tensors take almost identical relative error: K 0.130, V 0.133. The reason is structural and specific to us: our shared exponent covers 16 consecutive head_dim channels, so a per-channel outlier degrades only its own group of 16. Our native format already absorbs the effect the K/V asymmetry was invented to work around.

The asymmetry survives only in the attention output, as an ~11% effect (K8/V4 0.0645 vs K4/V8 0.0717). That is enough to settle the design question — K8/V4 is the right 4-bit arm and flipping to K4/V8 would be wrong — and not enough to support "near identical quality to 8/8".

The number for the decision: K8/V4 costs 9.5× the attention-output error of K8/V8 (0.0645 vs 0.0068) for 25% fewer KV bytes. Whether that survives 16 full-attention layers into token-level accuracy is exactly what the hardware gate is for.

K8/V2 is disqualified. 0.30 relative error is a different model, not a precision tradeoff. It is not worth a card hold.

No depth gradient at 8k — the failure mode I was told to hunt is absent

Error by query decile is flat and mildly decreasing: 0.073, 0.067, 0.063, 0.065, 0.065, 0.061, 0.063, 0.060, 0.059, 0.063. Early-half queries 0.0671 vs late-half 0.0613. Quantizing only the early KV positions costs more (0.0526) than only the late ones (0.0366), because early positions carry more attended mass under a causal mask — not because of decay with depth. Attention entropy rises in the late half (4.4 → 5.8 nats), which is the regime where value error should matter most, and still no gradient appears.

This says nothing about 32k–256k. The hardware gate still reports early/late separately.

Self-checks, both load-bearing

The fp32 chunked reference reproduces the model's own bf16 attention output to 1.9e-3 worst case across all 8 layers — 34× below the smallest quantization delta measured. Without that, none of the deltas above would mean anything. The torch and numpy packer twins are bit-identical.

What this does not establish

The 27B itself (proxy only); any end-task accuracy — tensor and attention-output error bound nothing about generated text; behaviour above 8k; bfp2_b's fidelity to the real packer; n=1 document, one forward.

Go/no-go

Conditional go, gated. Build it, keep it opt-in, and do not deploy on this record. The offline study has moved K8/V4 from "probably free" to "measurably not free, but the best 4-bit option, with no depth failure at 8k" — which is a reason to spend the card hold on the retrieval gate, not a reason to ship.

## Offline study done — recommendation, and a correction to the premise Record: `bench/runs/kv-k8v4-offline-study-20260925T204905Z.jsonl`. Harness: `bench/probes/kv_dtype_offline_study.py`. No cards. **Setup.** Qwen3.5-9B as a **PROXY** (the 27B fits on no host available to me without cards or a GPU; same head_dim 256, 4 KV heads, QK-norm, interval-4 family), block-fp8 dequantized to bf16, one CPU forward over 8,192 tokens of real prose and code, the 8 full-attention layers. K and V captured post-RoPE and post-QK-norm from inside the attention module — i.e. exactly what the device would store — and quantized with the bit-exact tt-metal packer emulation from #62, groups of 16 along head_dim. **Attention-output relative Frobenius error, mean over layers:** | arm | attn rel err | cos mean / min | K rel | V rel | |---|---:|---|---:|---:| | K8/V8 (today) | **0.0068** | 0.99998 / 0.99873 | 0.0084 | 0.0089 | | **K8/V4** | **0.0645** | 0.99814 / 0.9785 | 0.0084 | 0.133 | | K4/V8 (flipped control) | 0.0717 | 0.99691 | 0.130 | 0.0089 | | K4/V4 | 0.0980 | 0.99505 / 0.783 | 0.130 | 0.133 | | K8/V2 (UNVERIFIED format) | 0.3010 | 0.96447 | 0.0084 | 0.486 | | K2/V8 (UNVERIFIED format) | 0.2788 | 0.95566 | 0.496 | 0.0089 | ### The premise is weaker than the directive assumed Keys *are* spikier — max-channel-std / median 3.4 vs 2.7, p99/median 1.7–3.5 vs 1.6–2.0 — but that is a mild difference, not the order-of-magnitude per-channel outlier story the literature tells. **At bfp4 the two tensors take almost identical relative error: K 0.130, V 0.133.** The reason is structural and specific to us: our shared exponent covers 16 *consecutive head_dim channels*, so a per-channel outlier degrades only its own group of 16. **Our native format already absorbs the effect the K/V asymmetry was invented to work around.** The asymmetry survives only in the attention output, as an ~11% effect (K8/V4 0.0645 vs K4/V8 0.0717). That is enough to settle the design question — **K8/V4 is the right 4-bit arm and flipping to K4/V8 would be wrong** — and not enough to support "near identical quality to 8/8". **The number for the decision: K8/V4 costs 9.5× the attention-output error of K8/V8 (0.0645 vs 0.0068) for 25% fewer KV bytes.** Whether that survives 16 full-attention layers into token-level accuracy is exactly what the hardware gate is for. **K8/V2 is disqualified.** 0.30 relative error is a different model, not a precision tradeoff. It is not worth a card hold. ### No depth gradient at 8k — the failure mode I was told to hunt is absent Error by query decile is flat and mildly **decreasing**: 0.073, 0.067, 0.063, 0.065, 0.065, 0.061, 0.063, 0.060, 0.059, 0.063. Early-half queries 0.0671 vs late-half 0.0613. Quantizing only the early KV positions costs *more* (0.0526) than only the late ones (0.0366), because early positions carry more attended mass under a causal mask — not because of decay with depth. Attention entropy **rises** in the late half (4.4 → 5.8 nats), which is the regime where value error should matter most, and still no gradient appears. This says nothing about 32k–256k. The hardware gate still reports early/late separately. ### Self-checks, both load-bearing The fp32 chunked reference reproduces the model's own bf16 attention output to **1.9e-3** worst case across all 8 layers — 34× below the smallest quantization delta measured. Without that, none of the deltas above would mean anything. The torch and numpy packer twins are bit-identical. ### What this does not establish The 27B itself (proxy only); any end-task accuracy — tensor and attention-output error **bound nothing about generated text**; behaviour above 8k; bfp2_b's fidelity to the real packer; n=1 document, one forward. ### Go/no-go **Conditional go, gated.** Build it, keep it opt-in, and do not deploy on this record. The offline study has moved K8/V4 from "probably free" to "measurably not free, but the best 4-bit option, with no depth failure at 8k" — which is a reason to spend the card hold on the retrieval gate, not a reason to ship.
Member

Shipped (TT side): paged KV K bfp8_b / V bfp4_b shipped as LEDGER R-2026-09-30-k8v4 and is live production ('KV K bfp8 / V bfp4', STATUS verified 11-02; fathered the 1,067,008-token pool via R-2026-10-31-kv1m-gdnids). The RTX-decode K8/V4 ship (R-2026-11-09-rtx-k8b4-ship) is a different side, tracked in the P/D lane. Verified 2026-11-18.

Shipped (TT side): paged KV K bfp8_b / V bfp4_b shipped as LEDGER R-2026-09-30-k8v4 and is live production ('KV K bfp8 / V bfp4', STATUS verified 11-02; fathered the 1,067,008-token pool via R-2026-10-31-kv1m-gdnids). The RTX-decode K8/V4 ship (R-2026-11-09-rtx-k8b4-ship) is a different side, tracked in the P/D lane. Verified 2026-11-18.
Author
Owner

agent-gateway closeout (closed): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (closed): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
bitpartner/tt-stack#78
No description provided.