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
No Branch/Tag specified
master
claude/public-release-v8
claude/pi-lora-device
claude/pi-lora-epyc-check
claude/pi-lora-plumbing
perf/export-cap-12288
claude/pd-kv-admission
claude/ship-cdr8g
claude/ship-col3-cdr8g
codex/public-release
codex/pp10k
codex/mando-kernels
opus/router-delta-margin
opus/rtx-b8-32k
claude/router-ttdown-fastpath
claude/license-apache2
codex/mtp-w1
docs/longctx-pp
codex/k8b4-speed
codex/kvarn2-study
codex/sglang-port-study
codex/inc393-offload-assert
codex/x16-bench
codex/mtp-cpu
codex/mtp-accept-train
opus/rtx-gpu0diag-rec
opus/rtx-sample-sparse
opus/rtx-prof32k-rec
opus/rtx-prof32k
opus/rtx-b8-prof
codex/k8b4-concurrent
opus/rtx-decode-lane
opus/rtx-w4a8-park
opus/rtx-ar-q8
codex/modelopt-scan
opus/pd-master-consolidation
codex/pd-recipe
opus/rtx-k8b4-connector
opus/pd-branch-archive
codex/pd-docs-fix
codex/pd-prod-snapshot
opus/rtx-kv4
opus/pd-connector-lows
history/hermes-review-uplift
eval-sglang-torchtpu
pp32k-w3c-upstream
pp32k-prefill
upstream-scan-20261109
plugin-283-slot-keep
docs/history-pd-delta
opus/pd-delta-export
opus/pd-stack-to-master
pp32k-ethdisp
opus/pd-router-template
docs/pd-path-breakdown
skill/pd-enterprise-bench
opus/pd-arena-freelist
opus/pd-adaptive
opus/rtx-decode-night
opus/rtx-dynk-fix
opus/rtx-night-ar
opus/rtx-night-attn
opus/pd-export-followup
opus/rtx-night-topk
docs/history
opus/pd-export-arm-master
opus/cmb-crash
opus/pd-draft-tune
opus/tt-interleave
opus/pd-adaptive-v2
opus/rtx-embed-host
opus/pd-adaptive-sim
opus/pd-adaptive-router
opus/pd-cutover
opus/pd-hyperqwen
opus/pd-reprefill
opus/pd
public/arm-flatten
public/upstream-inventory
opus/pd-handoff-opt
opus/lsa-eval
fix/tt-serving-hold-guard
opus/pd-sim-levers
opus/mtp-host-row-isolate
opus/mando2222-cp7
opus/upstream-scan-1104
opus/host-sample-why
opus/cold-prefix-s10
opus/cold-prefix-s10-pack
opus/pd-r3
scout/upstream-20261103
opus/rtx-drafter
opus/b8d-measure
docs/status-refresh-20261102
opus/b8d-verify-attn-splitkv
opus/b8d-sparse-verify-sampling
opus/b8d-ar-asym-x8
opus/b8d-draft-head-quant
opus/b8d-prob-draft-topk
opus/b8d-marlin-m32-mma
opus/rtx-opt
opus/traffic-bench
opus/pd-r2
opus/pd-e2e
opus/pd-export
opus/pd-router
opus/pd-connector
opus/pd-rtx-serve
opus/gdn-id-pool
opus/kv-1m
opus/prefix-rounds
opus/prod-spec-image-id
opus/blend-publish
opus/cold-pp
opus/dashboard-bench
opus/pd-rtx
opus/night-window
opus/prod-edge
opus/probe-hugepages
opus/so-vsplit
opus/fused-decode
opus/fused-decode-vsplit
opus/bfp-autoround
opus/blend-b09d16
opus/blend-gptq-table
opus/kv-host-tier
opus/serve-arm
opus/ttx-ab-suite-refuse
opus/kv-host-tier-history
opus/bfp-quant-docs
opus/s12-prefix
opus/kv-host-tier-staging
opus/cfx-llm0
opus/s12-sdlofi
opus/optrace-addon
opus/tmc-premise
opus/s12-budget
ship/s12
opus/s11-next
ship/s11
opus/verify-rest-2
docs/s10-greedy
docs/optrace-fcb-pf32
opus/pf32
ship/s10
opus/verify-rest
opus/dcx
x280-foundation
docs/crashcourse
opus/sdpa32k
docs/stale-fix
opus/dcx-hcap
x280-program-doc
ship/s9
opus/draftcut
ship/s7-pp3
docs/port-skills
opus/ssparity
probe/drafter-t1
opus/verify64
fix/gate-boot-identity
plan/tg100
ship/s7
screen/batch4
sim/fabric-link-counters
opus/s7cand
opus/rs-bank-ship
readme/s6-ss-numbers
free/t-ethtxq
opus/specsample-s6
opus/dualtrace
sim/kernel-overlay-fix
opus/fusedsampler
opus/rs-bank
opus/devaccept
anatomy/rs-line
fix/abpad-cache-key
free/k-swiglu
opus/sscost
free/k-gdnpre
free/u-matmul
launch/opus-specsample
free/u-ccl
free/c-audit
free/s-cost
free/u-models
free/c-sparse
serve/sampling-defaults
free/w-rsnorm
free/f-tail
ship/s6
launch/s-sample4
free/k-glue
bench/acc-curve
opus/top2-branch
screen/acc-levers3
screen/ss-capture
free/s-rowfall
free/a-oracle2
free/d-top2
free/c-sparse-rev
free/s-penalty
opus/specsample
rv4/m-specsample3
free/m-specsample3
free/s-sample4
review/t-proxy2
free/t-proxy2
free/t-served
free/l-kvbytes
free/m-specsample2
free/t-ops
free/l-verifykv
free/m-specsample
free/a-kdyn
fix/pphost-probe-mml
free/w-swiglu4
free/s-prefix4
free/m-creative
free/w-b8dec
free/w-gdnscan
free/t-proxy
free/b-bucket
free/m-multidraft
free/a-tree
free/s-sample3
free/w-swiglu3
docs/goal-recommended-sampling
free/f-sdpa2
ship/cap
b-bucket-tools
review/b-bucket
free/s-prefix3
free/d-gdn
free/s-prefix2
free/s-sample2
free/p-host
free/d-enq
feat/s-prefix-agentic
ship/s5
free/s-specsample
free/a-sink
free/a-accctx2
screen/acc-levers2
free/f-swiglu
bench/agentic-s4
free/f-draft
screen/acc-levers
free/f-qkvz
free/f-dmlp
free/a-window
free/f-gdnprep
free/f-glue
free/a-oracle
free/a-survey
screen/a-accctx
free/a-accctx
free/f-sdpa
docs/utilization
pp/rsfold
pp/idle
tooling/stream-accept
ship/gum2-s4
pp/agmm-t9
pp/gdn-s3cmb
pp/agmm-fwo
ship/s4
pp/agmm
pp/s3prof
ship/rs4
ship-s3-narrow
tools/jit-check-kernel
pp/gdn-combo
ship/s3
pp/glue3
pp/gdn-scan
free/w2eff
pp/gdn
free/agmm2
free/dsdpa
pp/glue2
pp/glue
ttx-claim-unique
pp/warm
pp/gdn-sdpa
free/vrows
pp/host2
pp/host
ar-prefix-hit-log
feat/card-queue-service
dev/prefetch-reopen
k-sweep-s
lookup-swap-k3
docs/s2-ledger-9309
ci-slot-reclaim
ship-s2-narrow
research/verify-rows-gt32
handoff/claude-20261017
dev/ship-stack-2
lc0-agent-corpus-stats
ci/card-gate-armsel
dev/draft-path
dev/bkda-fix
dev/codex-kernels
dev/decode-next
ship-s-narrow
dev/prefill-hostgap
dev/ship-stack
dev/agmm-eff
dev/so-chain
ar-bf8-out8
lever-studies-20261013
ar-bf8-serve
control-dfr
grill/metal-60316-gdn-prefill-waves
grill/metal-60840-vllm-spec-serve
ship-dfr
screen-201-joint
dspark-serve
land-195-drisc-0042
agmm-swiglu-pack
worktree-agent-aceb187bf909a2834
decode-mr-span-direct
gdn-so-fuse-serve
probe-59622-onecard
ship-e-gpgob
gates-e-gpgob
ci-fingerprint
ttx-heal-within-run
levers-nogo-closeout-20261009
tooling-picker-armderive
tg-toks
agent-harness
ci-fp-base
lc0-bench-token-ids
confirm-cpbaol-gpool
screen-hec-joint
control-joint-b8k3c48
grill/metal-58817-llk-8bit-stream
grill/metal-59507-dram-bank-grid
grill/metal-59622-dram-read-split
grill/metal-59695-sdpa-gqa-flags
grill/metal-59957-spec-batch
grill/metal-59965-gdn-scan-fp32
lookup-swap-k3-base
combo-mx-screen
joint-w2t-b8k3c48
muse-mtp-chunked
muse-decode-profile
muse-harness3
muse-state-bfp8
muse-state-bfp8-study
muse-commit-defer
fix/picker-accept-defining
records-197-close
lever/prefill-unlocks-u2-u3-u6-u7
verify-depth-gt4
lever/u2-norm2d-v2
gdn-producer-pool
prefill-kernel-8k
cpb-lmhead-screen
reeval-decode-gdn-attn-mtp
drisc-prefetch-prio
fp8-fidelity-deepdive
reeval/prefill-20261006
drisc-prefetch-pf13
lever-reeval-decode-weights
odo-on-dx
decode-bundle
kx-compute-fuse
gdn-verify-fused
conv-fold
kx-compute-splitread
drisc-prefetch-lever
kx-matmul
kx-matmul-outdirect
drisc-prefetch
decode-research
ci-tg-toks
kv-update-fold
sdpa-dec-lift
baseline/retarget-cph32
lever/agmm-grid9-cph32
lever/attnqkv-11x6-bf4
lever/sdpa-dec-cph-dualnoc
lever/gdn-scan-mcast
lever/gdn-fused-maxbh
lever/sdpa-dec-kchunk-dualnoc
lever/lmlofi-loo
lever/kda2-loo
lever/kda2-lmlofi-loo
lever/agmm-grid9-chunk2304
ci-serve-fix
ci-sweep-faster
ci/agmm-2x2
ci-token-prefix
ci-pr-driven
gdn-prefill-lift
gateup-on-gdc-cpk
resident-epoch-fix
kv-devinit
serving-throughput
gdn-fused-decode
spec-cycle
opmark-c177
resident-host
boot-speed
gateup-mr
prefill-prof
ship-c175-gdc-cpk
lottolabs-repro
lotto-forensics
decode-mr
mtp-c157
dram-attach
upstream-154
mtp-csplit
queue-guard
mtp-so1-cplit
dram-persist
serve-b16
incr-gcroots
resident-dv
mtp-draft-vocab
mtp-so-t0
arm-switch
queue-stepid-fix
p1-levers
tracy-image
op-datasheets
upstream-watch
op-anatomy
skill-prefill-bringup
ttx-gates-correctness
skill-bh-arch
ttx-ops-tools
mtp-gdn-state-traffic
mtp-device-accept
mtp-conv-multi
gdn-vsplit
cm-g9
agmm-grid
verify-ablate
mtp-warm
prefill-cloud
mtp-stack
gdn-multitoken
dspark-device
mtp-async
mtpb-dn
mtp-state-slot
k8v4-mtp
sdpa-spec-fold
pfprof
fabric-ring
ttx-merged
ttx-gates
kv-k8v4-dn
ttx-safety
mmrs-probe
agmm-silu
prefetch-dn
tailtrace-dn
normbf8
prefill-agmm-abso
worktree-agent-a5e29df1933a6076c
sdpa-dec-v-noc0
worktree-agent-aff7f4014dd906d8b
worktree-agent-a015e99a3392d569c
c105-smallops
agmm-in0-lowp
prefill-combo
worktree-agent-a4c964697339cbea0
tp1-prod-port
resident-rearm
decode-sa1
ttx-gc-sudo
prefill-rs-cfg
wb-gaps
prefill-bundle-h
mtp-batch-fix
ttx-fast-fail
host-leak-investigation
kernel-workbench
ttx-quickwins
kernel-workbench-research
decode-split-probe
mtp-batch
sdpa-mcast-q128
decode-mr-lmhead
prefill-kernels
dram-sharded-mr
decode-levers-2
qb2-scout
decode-levers
prefill-deepdive
prefill-devsplit
sim/prevalidate
port/issue-50-bucket-trace
research/lowlevel-levers
integrate-all
perf-loop-c1
g2-arms-registry
ttx-slot-stale-reclaim
bfp4-overlay
deploy/g2-prefix-0019
mtp-thinkingcap
agy/issue-39
agy/issue-36
kv-k8v4
agy/issue-51
agy/issue-64
fix-dead-assumptions
decode-campaign-53-55
fix/71-gdn-gate-fp32-prod
thinkingcap-baseline
tt-quant
bfp-quant
ttx
agy/issue-49
agy/issue-47
dspark-thinkingcap
repo-skills
harness-overhaul
agy/issue-50
agy/issue-45
agy/issue-38
agy/issue-23
dspark-acceptance-rate
thatch/lane2-serve-gotchas
agent/claude-auth/goal-4-nvfp4-single-card
agent/claude-auth/ttsim-scout
archive/vscode-toolkit-flake
archive/tt-tooling-scout
archive/tt-model-publish
archive/thatch/lane1-fir-drift
archive/serving-throughput
archive/serving-cleared-arm
archive/prefill-optimization-notes
archive/mtp-scout
archive/mtp-dflash2-ttsim
archive/harvest-whitehole-notes
archive/fix-serving-paths
archive/fix-readiness-race
archive/fix-probe-sigpipe
archive/fix-probe-card-sabotage
archive/fix-inspect-empty-stdout
archive/fix-http-code-format
archive/docs/agents-md-retire-claude-md
archive/autoresearch/dspark-drafter-sep07
archive/agent/fable/warm-tensor-cache
archive/agent/fable/external-repo-runbook
archive/agent/fable/cxx-fork-build
archive/agent/claude-auth/two-card-external-report
archive/agent/claude-auth/silicon-validation-findings
archive/agent/claude-auth/prod-27b-serving
archive/agent/claude-auth/ornith-moe
archive/agent/claude-auth/on-box-iteration
archive/agent/claude-auth/mesh-ready
archive/agent/claude-auth/inventory-pre-reboot
archive/agent/claude-auth/goal-vllm-serving
archive/agent/claude-auth/goal-2-3
archive/agent/claude-auth/first-bringup
Labels
Clear labels
cards:go
Force a card run on this PR (consumed by CI; re-add to force again)
hermes-approved
Approved by Hermes (bot). Not a human approval.
human-approved
Approved by @donach for T2-path changes. Required by .forgejo/workflows/ci.yml approve_gate.
human-approved
Approved by the human reviewer — merge gate
iter
0
X280 program stage
iter
1
X280 program stage
iter
2
X280 program stage
iter
3
X280 program stage
prio:high
Still a large B=4/B=8 wall or tokens/cycle lever
prio:low
Parked, already lost, or bookkeeping
prio:med
Real but smaller, or needs a gate
priority/high
Owner-flagged; queue agent picks these first
state
blocked
X280 program workflow state
state
doing
X280 program workflow state
state
done
X280 program workflow state
state
review
X280 program workflow state
state
todo
X280 program workflow state
x280
SiFive X280 (L2CPU) on-card control plane
No labels
cards:go
hermes-approved
human-approved
human-approved
iter
0
iter
1
iter
2
iter
3
prio:high
prio:low
prio:med
priority/high
state
blocked
state
doing
state
done
state
review
state
todo
x280
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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.
Blocks
#223 Perf-loop planning board (moved from PR #90)
bitpartner/tt-stack
Reference
bitpartner/tt-stack#78
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
prefix-pool-ladder-20260914T232626Z.jsonl)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_bshares 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
q_df/k_df/v_dfseparately 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_cacheandpaged_update_cacheboth accept a BFLOAT4_B cache. A code-read closes nothing, so this is a hypothesis with good odds, not a result.0c92986):QWEN36_KV_DTYPE="<K>/<V>"over {bf16,bf8,bf4}, independent allocation, per-cache typecast beforepaged_fill_cache, banner naming both dtypes,verify-arm-banners.shfail-closed.docs/HARDWARE.mdrecords bf8 KV at TP=1 dying inpaged_fill_cachewithinput_tensor.dtype() == cache_tensor.dtype()after a full cold build. The cause is one upstream comment inttnn_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 (md5f8d424d21ca02697b4ffea4a2beb7f5e, verified byte-identical to the copy insidevllm-tt:k2) with the cast added.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.bench/kv-accuracy.pyat 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.bench/ab/sweep-32k.shat 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.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).
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 beforepaged_fill_cache, banner naming both. Wins overQWEN_SDPA_BF8, which keeps its exact old meaning (bf8/bf8) so every historical record stays comparable. An unparseable spec raises.scripts/verify-arm-banners.shfails 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.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_attentionandpaged_scaled_dot_product_attention_decodedo 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 deriveq_df/k_df/v_dfseparately and size the K and V circular buffers from their own tile sizes.paged_update_cachelikewise 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.mdhas carried "TP=1 bf8 KV fails withTT_FATALinpaged_fill_cache… Still open" sincegoal4-next-steps-evidence-2026-09-05.jsonl. The cause ismodels/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.pyhas 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 (md5f8d424d21ca02697b4ffea4a2beb7f5e, verified byte-identical to the copy insidevllm-tt:k2) with a per-cache cast, mounted bygoal4only so the 7-file TP=2 production contract is untouched.KV_BF8still defaults OFF — a code fix is not a measurement.Corrected arithmetic (this supersedes the "24 KiB/token" in the directive)
bfp8_bandbfp4_bcarry 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 inHARDWARE.mdnext 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.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:
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.
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.
agent-gateway closeout (closed): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.