WIP: serving: ThinkingCap bfp4 G2 + prefix caching + 0019 (gates 2-4 not run) #73
Closed
Grok
wants to merge 0 commits from
deploy/g2-prefix-0019 into master
pull from: deploy/g2-prefix-0019
merge into: bitpartner:master
bitpartner:master
bitpartner:claude/public-release-v8
bitpartner:claude/pi-lora-device
bitpartner:claude/pi-lora-epyc-check
bitpartner:claude/pi-lora-plumbing
bitpartner:perf/export-cap-12288
bitpartner:claude/pd-kv-admission
bitpartner:claude/ship-cdr8g
bitpartner:claude/ship-col3-cdr8g
bitpartner:codex/public-release
bitpartner:codex/pp10k
bitpartner:codex/mando-kernels
bitpartner:opus/router-delta-margin
bitpartner:opus/rtx-b8-32k
bitpartner:claude/router-ttdown-fastpath
bitpartner:claude/license-apache2
bitpartner:codex/mtp-w1
bitpartner:docs/longctx-pp
bitpartner:codex/k8b4-speed
bitpartner:codex/kvarn2-study
bitpartner:codex/sglang-port-study
bitpartner:codex/inc393-offload-assert
bitpartner:codex/x16-bench
bitpartner:codex/mtp-cpu
bitpartner:codex/mtp-accept-train
bitpartner:opus/rtx-gpu0diag-rec
bitpartner:opus/rtx-sample-sparse
bitpartner:opus/rtx-prof32k-rec
bitpartner:opus/rtx-prof32k
bitpartner:opus/rtx-b8-prof
bitpartner:codex/k8b4-concurrent
bitpartner:opus/rtx-decode-lane
bitpartner:opus/rtx-w4a8-park
bitpartner:opus/rtx-ar-q8
bitpartner:codex/modelopt-scan
bitpartner:opus/pd-master-consolidation
bitpartner:codex/pd-recipe
bitpartner:opus/rtx-k8b4-connector
bitpartner:opus/pd-branch-archive
bitpartner:codex/pd-docs-fix
bitpartner:codex/pd-prod-snapshot
bitpartner:opus/rtx-kv4
bitpartner:opus/pd-connector-lows
bitpartner:history/hermes-review-uplift
bitpartner:eval-sglang-torchtpu
bitpartner:pp32k-w3c-upstream
bitpartner:pp32k-prefill
bitpartner:upstream-scan-20261109
bitpartner:plugin-283-slot-keep
bitpartner:docs/history-pd-delta
bitpartner:opus/pd-delta-export
bitpartner:opus/pd-stack-to-master
bitpartner:pp32k-ethdisp
bitpartner:opus/pd-router-template
bitpartner:docs/pd-path-breakdown
bitpartner:skill/pd-enterprise-bench
bitpartner:opus/pd-arena-freelist
bitpartner:opus/pd-adaptive
bitpartner:opus/rtx-decode-night
bitpartner:opus/rtx-dynk-fix
bitpartner:opus/rtx-night-ar
bitpartner:opus/rtx-night-attn
bitpartner:opus/pd-export-followup
bitpartner:opus/rtx-night-topk
bitpartner:docs/history
bitpartner:opus/pd-export-arm-master
bitpartner:opus/cmb-crash
bitpartner:opus/pd-draft-tune
bitpartner:opus/tt-interleave
bitpartner:opus/pd-adaptive-v2
bitpartner:opus/rtx-embed-host
bitpartner:opus/pd-adaptive-sim
bitpartner:opus/pd-adaptive-router
bitpartner:opus/pd-cutover
bitpartner:opus/pd-hyperqwen
bitpartner:opus/pd-reprefill
bitpartner:opus/pd
bitpartner:public/arm-flatten
bitpartner:public/upstream-inventory
bitpartner:opus/pd-handoff-opt
bitpartner:opus/lsa-eval
bitpartner:fix/tt-serving-hold-guard
bitpartner:opus/pd-sim-levers
bitpartner:opus/mtp-host-row-isolate
bitpartner:opus/mando2222-cp7
bitpartner:opus/upstream-scan-1104
bitpartner:opus/host-sample-why
bitpartner:opus/cold-prefix-s10
bitpartner:opus/cold-prefix-s10-pack
bitpartner:opus/pd-r3
bitpartner:scout/upstream-20261103
bitpartner:opus/rtx-drafter
bitpartner:opus/b8d-measure
bitpartner:docs/status-refresh-20261102
bitpartner:opus/b8d-verify-attn-splitkv
bitpartner:opus/b8d-sparse-verify-sampling
bitpartner:opus/b8d-ar-asym-x8
bitpartner:opus/b8d-draft-head-quant
bitpartner:opus/b8d-prob-draft-topk
bitpartner:opus/b8d-marlin-m32-mma
bitpartner:opus/rtx-opt
bitpartner:opus/traffic-bench
bitpartner:opus/pd-r2
bitpartner:opus/pd-e2e
bitpartner:opus/pd-export
bitpartner:opus/pd-router
bitpartner:opus/pd-connector
bitpartner:opus/pd-rtx-serve
bitpartner:opus/gdn-id-pool
bitpartner:opus/kv-1m
bitpartner:opus/prefix-rounds
bitpartner:opus/prod-spec-image-id
bitpartner:opus/blend-publish
bitpartner:opus/cold-pp
bitpartner:opus/dashboard-bench
bitpartner:opus/pd-rtx
bitpartner:opus/night-window
bitpartner:opus/prod-edge
bitpartner:opus/probe-hugepages
bitpartner:opus/so-vsplit
bitpartner:opus/fused-decode
bitpartner:opus/fused-decode-vsplit
bitpartner:opus/bfp-autoround
bitpartner:opus/blend-b09d16
bitpartner:opus/blend-gptq-table
bitpartner:opus/kv-host-tier
bitpartner:opus/serve-arm
bitpartner:opus/ttx-ab-suite-refuse
bitpartner:opus/kv-host-tier-history
bitpartner:opus/bfp-quant-docs
bitpartner:opus/s12-prefix
bitpartner:opus/kv-host-tier-staging
bitpartner:opus/cfx-llm0
bitpartner:opus/s12-sdlofi
bitpartner:opus/optrace-addon
bitpartner:opus/tmc-premise
bitpartner:opus/s12-budget
bitpartner:ship/s12
bitpartner:opus/s11-next
bitpartner:ship/s11
bitpartner:opus/verify-rest-2
bitpartner:docs/s10-greedy
bitpartner:docs/optrace-fcb-pf32
bitpartner:opus/pf32
bitpartner:ship/s10
bitpartner:opus/verify-rest
bitpartner:opus/dcx
bitpartner:x280-foundation
bitpartner:docs/crashcourse
bitpartner:opus/sdpa32k
bitpartner:docs/stale-fix
bitpartner:opus/dcx-hcap
bitpartner:x280-program-doc
bitpartner:ship/s9
bitpartner:opus/draftcut
bitpartner:ship/s7-pp3
bitpartner:docs/port-skills
bitpartner:opus/ssparity
bitpartner:probe/drafter-t1
bitpartner:opus/verify64
bitpartner:fix/gate-boot-identity
bitpartner:plan/tg100
bitpartner:ship/s7
bitpartner:screen/batch4
bitpartner:sim/fabric-link-counters
bitpartner:opus/s7cand
bitpartner:opus/rs-bank-ship
bitpartner:readme/s6-ss-numbers
bitpartner:free/t-ethtxq
bitpartner:opus/specsample-s6
bitpartner:opus/dualtrace
bitpartner:sim/kernel-overlay-fix
bitpartner:opus/fusedsampler
bitpartner:opus/rs-bank
bitpartner:opus/devaccept
bitpartner:anatomy/rs-line
bitpartner:fix/abpad-cache-key
bitpartner:free/k-swiglu
bitpartner:opus/sscost
bitpartner:free/k-gdnpre
bitpartner:free/u-matmul
bitpartner:launch/opus-specsample
bitpartner:free/u-ccl
bitpartner:free/c-audit
bitpartner:free/s-cost
bitpartner:free/u-models
bitpartner:free/c-sparse
bitpartner:serve/sampling-defaults
bitpartner:free/w-rsnorm
bitpartner:free/f-tail
bitpartner:ship/s6
bitpartner:launch/s-sample4
bitpartner:free/k-glue
bitpartner:bench/acc-curve
bitpartner:opus/top2-branch
bitpartner:screen/acc-levers3
bitpartner:screen/ss-capture
bitpartner:free/s-rowfall
bitpartner:free/a-oracle2
bitpartner:free/d-top2
bitpartner:free/c-sparse-rev
bitpartner:free/s-penalty
bitpartner:opus/specsample
bitpartner:rv4/m-specsample3
bitpartner:free/m-specsample3
bitpartner:free/s-sample4
bitpartner:review/t-proxy2
bitpartner:free/t-proxy2
bitpartner:free/t-served
bitpartner:free/l-kvbytes
bitpartner:free/m-specsample2
bitpartner:free/t-ops
bitpartner:free/l-verifykv
bitpartner:free/m-specsample
bitpartner:free/a-kdyn
bitpartner:fix/pphost-probe-mml
bitpartner:free/w-swiglu4
bitpartner:free/s-prefix4
bitpartner:free/m-creative
bitpartner:free/w-b8dec
bitpartner:free/w-gdnscan
bitpartner:free/t-proxy
bitpartner:free/b-bucket
bitpartner:free/m-multidraft
bitpartner:free/a-tree
bitpartner:free/s-sample3
bitpartner:free/w-swiglu3
bitpartner:docs/goal-recommended-sampling
bitpartner:free/f-sdpa2
bitpartner:ship/cap
bitpartner:b-bucket-tools
bitpartner:review/b-bucket
bitpartner:free/s-prefix3
bitpartner:free/d-gdn
bitpartner:free/s-prefix2
bitpartner:free/s-sample2
bitpartner:free/p-host
bitpartner:free/d-enq
bitpartner:feat/s-prefix-agentic
bitpartner:ship/s5
bitpartner:free/s-specsample
bitpartner:free/a-sink
bitpartner:free/a-accctx2
bitpartner:screen/acc-levers2
bitpartner:free/f-swiglu
bitpartner:bench/agentic-s4
bitpartner:free/f-draft
bitpartner:screen/acc-levers
bitpartner:free/f-qkvz
bitpartner:free/f-dmlp
bitpartner:free/a-window
bitpartner:free/f-gdnprep
bitpartner:free/f-glue
bitpartner:free/a-oracle
bitpartner:free/a-survey
bitpartner:screen/a-accctx
bitpartner:free/a-accctx
bitpartner:free/f-sdpa
bitpartner:docs/utilization
bitpartner:pp/rsfold
bitpartner:pp/idle
bitpartner:tooling/stream-accept
bitpartner:ship/gum2-s4
bitpartner:pp/agmm-t9
bitpartner:pp/gdn-s3cmb
bitpartner:pp/agmm-fwo
bitpartner:ship/s4
bitpartner:pp/agmm
bitpartner:pp/s3prof
bitpartner:ship/rs4
bitpartner:ship-s3-narrow
bitpartner:tools/jit-check-kernel
bitpartner:pp/gdn-combo
bitpartner:ship/s3
bitpartner:pp/glue3
bitpartner:pp/gdn-scan
bitpartner:free/w2eff
bitpartner:pp/gdn
bitpartner:free/agmm2
bitpartner:free/dsdpa
bitpartner:pp/glue2
bitpartner:pp/glue
bitpartner:ttx-claim-unique
bitpartner:pp/warm
bitpartner:pp/gdn-sdpa
bitpartner:free/vrows
bitpartner:pp/host2
bitpartner:pp/host
bitpartner:ar-prefix-hit-log
bitpartner:feat/card-queue-service
bitpartner:dev/prefetch-reopen
bitpartner:k-sweep-s
bitpartner:lookup-swap-k3
bitpartner:docs/s2-ledger-9309
bitpartner:ci-slot-reclaim
bitpartner:ship-s2-narrow
bitpartner:research/verify-rows-gt32
bitpartner:handoff/claude-20261017
bitpartner:dev/ship-stack-2
bitpartner:lc0-agent-corpus-stats
bitpartner:ci/card-gate-armsel
bitpartner:dev/draft-path
bitpartner:dev/bkda-fix
bitpartner:dev/codex-kernels
bitpartner:dev/decode-next
bitpartner:ship-s-narrow
bitpartner:dev/prefill-hostgap
bitpartner:dev/ship-stack
bitpartner:dev/agmm-eff
bitpartner:dev/so-chain
bitpartner:ar-bf8-out8
bitpartner:lever-studies-20261013
bitpartner:ar-bf8-serve
bitpartner:control-dfr
bitpartner:grill/metal-60316-gdn-prefill-waves
bitpartner:grill/metal-60840-vllm-spec-serve
bitpartner:ship-dfr
bitpartner:screen-201-joint
bitpartner:dspark-serve
bitpartner:land-195-drisc-0042
bitpartner:agmm-swiglu-pack
bitpartner:worktree-agent-aceb187bf909a2834
bitpartner:decode-mr-span-direct
bitpartner:gdn-so-fuse-serve
bitpartner:probe-59622-onecard
bitpartner:ship-e-gpgob
bitpartner:gates-e-gpgob
bitpartner:ci-fingerprint
bitpartner:ttx-heal-within-run
bitpartner:levers-nogo-closeout-20261009
bitpartner:tooling-picker-armderive
bitpartner:tg-toks
bitpartner:agent-harness
bitpartner:ci-fp-base
bitpartner:lc0-bench-token-ids
bitpartner:confirm-cpbaol-gpool
bitpartner:screen-hec-joint
bitpartner:control-joint-b8k3c48
bitpartner:grill/metal-58817-llk-8bit-stream
bitpartner:grill/metal-59507-dram-bank-grid
bitpartner:grill/metal-59622-dram-read-split
bitpartner:grill/metal-59695-sdpa-gqa-flags
bitpartner:grill/metal-59957-spec-batch
bitpartner:grill/metal-59965-gdn-scan-fp32
bitpartner:lookup-swap-k3-base
bitpartner:combo-mx-screen
bitpartner:joint-w2t-b8k3c48
bitpartner:muse-mtp-chunked
bitpartner:muse-decode-profile
bitpartner:muse-harness3
bitpartner:muse-state-bfp8
bitpartner:muse-state-bfp8-study
bitpartner:muse-commit-defer
bitpartner:fix/picker-accept-defining
bitpartner:records-197-close
bitpartner:lever/prefill-unlocks-u2-u3-u6-u7
bitpartner:verify-depth-gt4
bitpartner:lever/u2-norm2d-v2
bitpartner:gdn-producer-pool
bitpartner:prefill-kernel-8k
bitpartner:cpb-lmhead-screen
bitpartner:reeval-decode-gdn-attn-mtp
bitpartner:drisc-prefetch-prio
bitpartner:fp8-fidelity-deepdive
bitpartner:reeval/prefill-20261006
bitpartner:drisc-prefetch-pf13
bitpartner:lever-reeval-decode-weights
bitpartner:odo-on-dx
bitpartner:decode-bundle
bitpartner:kx-compute-fuse
bitpartner:gdn-verify-fused
bitpartner:conv-fold
bitpartner:kx-compute-splitread
bitpartner:drisc-prefetch-lever
bitpartner:kx-matmul
bitpartner:kx-matmul-outdirect
bitpartner:drisc-prefetch
bitpartner:decode-research
bitpartner:ci-tg-toks
bitpartner:kv-update-fold
bitpartner:sdpa-dec-lift
bitpartner:baseline/retarget-cph32
bitpartner:lever/agmm-grid9-cph32
bitpartner:lever/attnqkv-11x6-bf4
bitpartner:lever/sdpa-dec-cph-dualnoc
bitpartner:lever/gdn-scan-mcast
bitpartner:lever/gdn-fused-maxbh
bitpartner:lever/sdpa-dec-kchunk-dualnoc
bitpartner:lever/lmlofi-loo
bitpartner:lever/kda2-loo
bitpartner:lever/kda2-lmlofi-loo
bitpartner:lever/agmm-grid9-chunk2304
bitpartner:ci-serve-fix
bitpartner:ci-sweep-faster
bitpartner:ci/agmm-2x2
bitpartner:ci-token-prefix
bitpartner:ci-pr-driven
bitpartner:gdn-prefill-lift
bitpartner:gateup-on-gdc-cpk
bitpartner:resident-epoch-fix
bitpartner:kv-devinit
bitpartner:serving-throughput
bitpartner:gdn-fused-decode
bitpartner:spec-cycle
bitpartner:opmark-c177
bitpartner:resident-host
bitpartner:boot-speed
bitpartner:gateup-mr
bitpartner:prefill-prof
bitpartner:ship-c175-gdc-cpk
bitpartner:lottolabs-repro
bitpartner:lotto-forensics
bitpartner:decode-mr
bitpartner:mtp-c157
bitpartner:dram-attach
bitpartner:upstream-154
bitpartner:mtp-csplit
bitpartner:queue-guard
bitpartner:mtp-so1-cplit
bitpartner:dram-persist
bitpartner:serve-b16
bitpartner:incr-gcroots
bitpartner:resident-dv
bitpartner:mtp-draft-vocab
bitpartner:mtp-so-t0
bitpartner:arm-switch
bitpartner:queue-stepid-fix
bitpartner:p1-levers
bitpartner:tracy-image
bitpartner:op-datasheets
bitpartner:upstream-watch
bitpartner:op-anatomy
bitpartner:skill-prefill-bringup
bitpartner:ttx-gates-correctness
bitpartner:skill-bh-arch
bitpartner:ttx-ops-tools
bitpartner:mtp-gdn-state-traffic
bitpartner:mtp-device-accept
bitpartner:mtp-conv-multi
bitpartner:gdn-vsplit
bitpartner:cm-g9
bitpartner:agmm-grid
bitpartner:verify-ablate
bitpartner:mtp-warm
bitpartner:prefill-cloud
bitpartner:mtp-stack
bitpartner:gdn-multitoken
bitpartner:dspark-device
bitpartner:mtp-async
bitpartner:mtpb-dn
bitpartner:mtp-state-slot
bitpartner:k8v4-mtp
bitpartner:sdpa-spec-fold
bitpartner:pfprof
bitpartner:fabric-ring
bitpartner:ttx-merged
bitpartner:ttx-gates
bitpartner:kv-k8v4-dn
bitpartner:ttx-safety
bitpartner:mmrs-probe
bitpartner:agmm-silu
bitpartner:prefetch-dn
bitpartner:tailtrace-dn
bitpartner:normbf8
bitpartner:prefill-agmm-abso
bitpartner:worktree-agent-a5e29df1933a6076c
bitpartner:sdpa-dec-v-noc0
bitpartner:worktree-agent-aff7f4014dd906d8b
bitpartner:worktree-agent-a015e99a3392d569c
bitpartner:c105-smallops
bitpartner:agmm-in0-lowp
bitpartner:prefill-combo
bitpartner:worktree-agent-a4c964697339cbea0
bitpartner:tp1-prod-port
bitpartner:resident-rearm
bitpartner:decode-sa1
bitpartner:ttx-gc-sudo
bitpartner:prefill-rs-cfg
bitpartner:wb-gaps
bitpartner:prefill-bundle-h
bitpartner:mtp-batch-fix
bitpartner:ttx-fast-fail
bitpartner:host-leak-investigation
bitpartner:kernel-workbench
bitpartner:ttx-quickwins
bitpartner:kernel-workbench-research
bitpartner:decode-split-probe
bitpartner:mtp-batch
bitpartner:sdpa-mcast-q128
bitpartner:decode-mr-lmhead
bitpartner:prefill-kernels
bitpartner:dram-sharded-mr
bitpartner:decode-levers-2
bitpartner:qb2-scout
bitpartner:decode-levers
bitpartner:prefill-deepdive
bitpartner:prefill-devsplit
bitpartner:sim/prevalidate
bitpartner:port/issue-50-bucket-trace
bitpartner:research/lowlevel-levers
bitpartner:integrate-all
bitpartner:perf-loop-c1
bitpartner:g2-arms-registry
bitpartner:ttx-slot-stale-reclaim
bitpartner:bfp4-overlay
bitpartner:mtp-thinkingcap
bitpartner:agy/issue-39
bitpartner:agy/issue-36
bitpartner:kv-k8v4
bitpartner:agy/issue-51
bitpartner:agy/issue-64
bitpartner:fix-dead-assumptions
bitpartner:decode-campaign-53-55
bitpartner:fix/71-gdn-gate-fp32-prod
bitpartner:thinkingcap-baseline
bitpartner:tt-quant
bitpartner:bfp-quant
bitpartner:ttx
bitpartner:agy/issue-49
bitpartner:agy/issue-47
bitpartner:dspark-thinkingcap
bitpartner:repo-skills
bitpartner:harness-overhaul
bitpartner:agy/issue-50
bitpartner:agy/issue-45
bitpartner:agy/issue-38
bitpartner:agy/issue-23
bitpartner:dspark-acceptance-rate
bitpartner:thatch/lane2-serve-gotchas
bitpartner:agent/claude-auth/goal-4-nvfp4-single-card
bitpartner:agent/claude-auth/ttsim-scout
No reviewers
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.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!73
Loading…
Reference in a new issue
No description provided.
Delete branch "deploy/g2-prefix-0019"
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?
Status: PREPARED, NOT DEPLOYED. Do not merge-and-deploy until gates 2-4 run on the cards.
The owner approved three changes on 2026-09-25 to ship as one deploy: master's serving
code (patch 0019 restored, source mounts fixed), ThinkingCap-Qwen3.8-27B in the bfp4
GPTQ "G2" form in place of Qwen3.8-27B-FP8, and prefix caching on (#48). This PR is
the tt-stack half. The nixos-llm half is a lock bump plus the host options and is not
opened yet, because it must not exist before this merges.
Gate results
ttx render prod-g2-prefixvs the docker argv the nix unit renders for the shipping options: env, devices, image, docker options, mount destinations, mounted file content (sha256), vLLM argv incl.--additional-configbench/runs/deploy-g2-prefix-gate1-render-20260925T202326Z.jsonlQWEN36_ATTN_GDN_BF4×64,QWEN36_BFP4_PACKED, prefix cachingbench/ab/sweep-32k.shWhy gates 2-4 did not run. Both P150a cards were held by the MTP and tt-quant
sessions for the whole window (
ttx slot status:card0=mtp-tp1-c0-ab8,card1=mtp-tp1-c1-g32); I queued for the mesh slot and never preempted. Meanwhilettx doctorreports ~4.8 GB of kernel-pinned host memory leaked with MemAvailablefalling to 3.6 GB, below ttx's own 4 GB boot guard. Only a reboot reclaims it (a
module reload was measured at 0 MB), and a reboot with other agents on the cards is the
owner's call. So there is no before/after speed table in this PR: nothing was measured.
Gate 1 was not a formality
It found two defects that would each have shipped, with no card time spent on either.
/var/lib/models/tt-cache, the FP8snapshot's cache. A tensorbin is named for the tensor and its dtype, never for the
checkpoint, and ThinkingCap has the same keys and shapes as Qwen3.8 — so changing
modelDirwould not have missed and rebuilt. It would have hit, serving Qwen'sweights under ThinkingCap's name with every banner green and nothing downstream the
wiser. New
cacheDiroption; production G2 gets/var/lib/models/tt-cache/bfpq-PK.enablePrefixCachingrendered a server nobody has run:--block_size 64at POOL1,048,576. Every prefix result we hold is block size 2048 at POOL ≤786,432, and
prefix-traced-dram-oom-20260918T1540Z.jsonlis a traced decode at 1M running thedevice out of DRAM. SERVING.md predicted this in its own "Unit caveat" and the option
shipped anyway. Now:
blockSizedefaults to 2048 when caching is on (the cache hasheswhole blocks, so attention and mamba block sizes must be equal and vLLM refuses
unequal ones),
--mamba-ssm-cache-dtype bfloat16is passed, andpoolTokens <= 786432is asserted.
What is in the diff
patches/prod-local-metal:gdn/tp.py,weight_mapping.py,bfp4_unpack.pyvendoredfrom the bfp-quant branch, with the image's own files as the base so it is not a guess;
attention/tp.pyis the union of the bench arm's bf4 hunk and patch 0020 — thebench copy predates 0020 and shipping it verbatim would have silently removed a cleared
optimisation, the same class of regression as
89f75cedropping 0019.modules/tenstorrent-serving.nix:weightsBf4,bfp4Packed,cacheDir,blockSize,extraVolumes; assertions for each; readiness-probe banner checks. The bf4 banner iscounted to 64, not matched: the flag is read once per weight-loading module, so a
half-applied overlay still prints it once and a match-only check would pass an arm that
is half bf8. No existing option is renamed or removed.
bench/arms/prod-g2-prefix.toml: the arm that is the unit. It needs thebench/arms/{prod,models}.tomlthat #70 brings; the registry entry is quoted in itsheader so the file reads standalone until then.
§5 caveat resolved; STATUS and LEDGER say PREPARED, NOT SHIPPED.
Serving G2 — why it is not a size-for-accuracy trade
Paired against the FP8 teacher, n=288-384 (
bfp-quant-p1-20260925T0645Z.jsonl): KL0.085 vs production's 0.111, top-1 0.944 vs 0.917, GSM8K 58/60 vs 57/60,
keyed retrieval 1.00 at 16k and 32k, decode 1.8-3.3 ms/token faster, makespan 1.8-5.2%
shorter. It is smaller and better because the deployed arm was already bf4 for the MLP
down-projection — by round-to-nearest; G2 picks the grid point that minimises output
error.
weightsBf4over a checkpoint that was not grid-snapped is plain RTN bf4 andis worse than production (arm R2: KL 0.176); the option's description says so.
Packed (20.6 GB) is what production should serve, not the unpacked
ckpt-G2: theloader unpacks to the exact bf16 grid values, cold boots of each built 980/980
sha256-identical tensorbins with 44/44 token-identical continuations
(
bfp4-packed-tt-boot-gate-20260925T110520Z.jsonl), it is a third of the size, andckpt-G2is a directory of symlinks into the quantiser's 46 GB scratch tree — not aproduction model root.
Rollback
One command, no build, no network. It works because the deploy adds rather than
replaces: same
vllm-tt:k2image, the FP8 snapshot untouched, and its warm tensor cacheuntouched because G2 was given a cache directory of its own. Also in
docs/SERVING.md§8,with the confirmation checks.
Needs an owner decision
instead of 8 × 128k or 4 × 256k. Refused by assertion rather than clamped, so the
trade is visible. Raising it needs a record at the higher pool, not a bigger number.
cards; I have not rebooted and will not without a yes.
qwen3.8-27b-ttalthough the model behind it changed,because renaming breaks every pinned client at the switch. Say if it should change.
volume (80% full) because
/var/lib/modelshas 36 GB free and three tensor caches.Licence
ThinkingCap-Qwen3.8-27B is PolyForm Small Business 1.0.0. Internal serving is inside
it. Publishing or redistributing the weights — the quantised derivative in
/var/lib/models-sata/bfpq/packed-G2included — is not, and nothing here does.Known open, not fixed here, not a regression
GDN prefill layers 1-30 are 8-19% off an fp32 reference in about 5.5% of heads. It is
pre-existing and affects the currently deployed FP8 arm equally.
🤖 Generated with Claude Code
Found while diffing the shipping arm against the unit it is supposed to be. The unit hard-coded HOME and TT_CACHE_PATH to /var/lib/models/tt-cache, which is the Qwen3.8-27B-FP8 snapshot's cache and nothing else. Change modelDir without changing that path and the next boot does not miss and rebuild: a tensorbin is named for the tensor and its dtype, NEVER for the checkpoint it came from, so it HITS, and serves the old checkpoint's weights under the new one's name. Every banner would still be correct. ThinkingCap has the same keys and the same shapes as Qwen3.8, which is precisely the case where nothing downstream notices -- and the ttx arm registry already treats this as a known trap (models.toml: "a wrong seed silently serves the other checkpoint's weights: exclude generously"), while the unit had no way to express it at all. TT_METAL_CACHE deliberately does NOT move under cacheDir. That one holds compiled kernels, which depend on the mesh and the ttnn build and not on which numbers flow through them, so every arm keeps sharing it and a checkpoint change does not pay a full kernel recompile. Also adds bench/arms/prod-g2-prefix.toml, the arm that IS the shipping unit: the comparison of `ttx render prod-g2-prefix` against the module's rendered ExecStart is what caught this, and it now passes on env, devices, image, docker options, mount destinations, mounted file CONTENT and the vLLM argv. The arm needs the bench/arms/{prod,models}.toml that PR #70 brings; its registry entry for the packed checkpoint is quoted in the header so the file is readable before that lands. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>Status update on this PR.
CI is green on
d233549/a8c3ee0(both jobs). The first push was red for one reason worth naming:scripts/check-cited-records.pyrefused two citations in SERVING.md that point at records living onbfp-quant. They are now marked with thebfp-quant:prefix, which is what that mechanism is for.tools/ttx/testsis 40/41 against #70's branch with this module. The single failure isProdPrefixMatchesNix.test_serve_args, and it is the intended one: this PR changes whatenablePrefixCaching = truerenders (block size 2048,--mamba-ssm-cache-dtype bfloat16), so #70'sbench/arms/prod-prefix.tomlneeds the same edit. I have not carried that file here because it does not exist on master. Noted on #70; whichever lands second updates it.Rollback readiness is now checked on the box rather than asserted (
bench/runs/deploy-g2-prefix-rollback-readiness-20260925T204500Z.jsonl): generation 177 is present as the rollback target,vllm-tt:k2is unchanged by this deploy, and the FP8 snapshot and its warm tensor cache are untouched — the last of those only because G2 was given a cache directory of its own. It is not a rehearsal: the unit was inactive all evening and there was nothing to roll back.The hardware gates are still not run, and the queue is still the reason.
ttx up prod-g2-prefix --card mesh --wait 10800has been waiting for the mesh slot since 20:20Z without preempting; card0 freed, card1 is stillmtp-tp1-c1-g32. MemAvailable has swung between 3.6 and 6.5 GB against a 4 GB boot guard, with ~4.8 GB of kernel-pinned memory leaked that only a reboot reclaims.The host half is nixos-llm#588, deliberately blocked on this PR merging and on the flake input being bumped to it.
Three things, all from the same failed attempt to boot the prefix-caching arm. --limit-mm-per-prompt '{"image":0,"video":0}'. The arm died twice after a full weight load, the second time on "Chunked MM input is required because we need the flexibility to schedule a multiple of block_size tokens even if they are in the middle of a mm input" (vllm/config/vllm.py:2274). We set QWEN36_SKIP_VISION=1, so the vision tower is never built and image/video requests are rejected outright; declaring a zero multimodal budget is the honest statement of that. The alternative, disable_chunked_mm_input=False, would enable chunking for a modality that cannot arrive, and changes the prefill path to buy nothing. --mamba-block-size does not recover the pool. Measured at 2048 and 32768: the page-align banner is byte-identical (817152 B -> 4194304 B, 80.5% slack) and the engine reports the same 766,869 tokens. A MambaSpec page is sized by the GDN state, which is per-sequence and context-independent, so block size cannot fill it. The cheap lever was never there; recovering the ~4.65 GiB/card needs a MambaSpec change, which is not started. gdnPrefillPrecision, default off. Issue #71 (mtp-thinkingcap814108e) root-caused the GDN prefill error to the decay gate's precision: QWEN36_GDN_G_FP32=1 plus QWEN36_GDN_AB_BF8=prefill take layer error from 19.1% to 3.5% at L6 at no decode cost, and it applies to any QWEN36_ATTN_GDN_BF4 arm, which is what G2 is. The option and its two banner checks land here; it stays off until there is a KL and top-1 confirmation against the FP8 teacher, because #71 is a numerical result and not yet a quality one. It costs no device memory, so no budget figure moves. Two ledger entries go with this: the corrected 31.87/31.37 GiB usable DRAM (every earlier budget subtracted the trace region twice, because get_memory_view already reports bank capacity net of it), and the trap that prefix caching had only ever been rendered, never booted -- which is precisely the failure class the banner-and-gate rules exist to catch, and it got past them because the gates were applied to the arm specification rather than to a process that reached "Application startup complete". Refs #48, #62, #71, #73. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>Pool update, and the GDN precision flags from #71
--mamba-block-sizedoes not recover the pool. Negative result, measured.Record:
bench/runs/prefix-mamba-block-size-20260925T220000Z.jsonl.--mamba-block-sizeGPU KV cache sizeByte-identical. A
MambaSpecpage is sized by the GDN state, which isper-sequence and context-independent (72 MiB/sequence), so the block size cannot
multiply it and cannot fill the page. The cheap configuration lever was never
there. Recovering the ~4.65 GiB/card costs a
MambaSpecchange — one page persequence rather than per block — which is engineering, not configuration, and is
not started pending a decision on who owns it.
Stated plainly, as asked: the accounting corrections and K8/V4 together are now
the only combination that reaches 8×128k / 4×256k with prefix caching on. The
accounting alone recovers +1.0 GiB/card (the trace region was subtracted twice —
ttnn.get_memory_viewalready reports bank capacity net of it, so usable DRAM is31.87 GiB/card with no trace and 31.37 GiB at
TRACE_MIB=512) and removes aphantom ~0.56 GiB/card charge for prefix snapshots, which are host tensors. Neither
closes the 287,093-token admission shortfall on its own.
GDN precision flags (#71) prepared, default off.
services.tenstorrentServing.gdnPrefillPrecisionsets
QWEN36_GDN_G_FP32=1andQWEN36_GDN_AB_BF8=prefill, with readiness bannerchecks for both — including that
AB_BF8readsprefilland not1, since applyingit at decode costs +7.7 ms/token for error that only integrates in prefill. It applies
to any
QWEN36_ATTN_GDN_BF4arm, so to the G2 weights this PR ships. It changes nofigure in the KV budget: the fp32
gand the bf8a/bare prefill activations.It stays off until there is a KL and top-1 confirmation against the FP8 teacher —
#71 is a numerical result (error against an fp32 reference), not a quality one.
One thing this PR cannot do on its own: the flags need the
#71hunks inpatches/prod-local-metal/.../tt/gdn/tp.py, and they are not a mechanical port.The version on
mtp-thinkingcapis a TP=1-divergent tree — differenttt_all_reduceimport,
fused_recurrent_gated_delta_rule_ttnn, TP=1 fusion gating, an MTP-head bf4exemption, and two
_project_qkvzabcall sites where the production overlay hasthree. The
ab8path also changes the forward signature, not just the loader. Thatport should come from whoever owns and can test that file, or after
mtp-thinkingcaplands on master — not from a blind copy here.Not fixed by this work and not a regression from it: the underlying GDN prefill
error (layers 1–30, 8–19% off fp32 in ~5.5% of heads) is pre-existing and affects the
deployed FP8 arm equally. #71 is the fix; this PR only prepares the switch for it.
Licence, on record: ThinkingCap-Qwen3.8-27B is PolyForm Small Business 1.0.0.
Internal serving only; no publication or redistribution of the weights or of the
quantised G2 derivative as part of this work.
Still WIP. No production switch until the pool question is settled.
🤖 Generated with Claude Code
Correction: the 287,093-token shortfall never existed, and the target is a pool number
I reported an 8-of-11 "admission shortfall" earlier today. It was wrong. Withdrawing
it before anything is built on it.
GPU KV cache size(kv_cache_utils.py:2177) isget_kv_cache_capacity() = int(max_concurrency * max_model_len)(:1819-1829) — areported capacity, not an allocation. The line directly above it in the same boot log
reads
Overriding num_gpu_blocks=392 with num_gpu_blocks_override=392: the pool wasdelivered in full. I derived a deficit from one log line without reading the one above it.
bench/probes/kv_capacity_model.pyreconstructs the reported figure from the groupstructure alone and reproduces the observed boot to the token — 766,869 predicted,
766,869 logged, 2.93x — which is what makes the rest of this a result rather than another
estimate. Record:
bench/runs/kv-capacity-model-20260925T230000Z.jsonl.Where a 256k request's 134 blocks go: 128 attention, 6 GDN. Attention KV is the
binding constraint on concurrency; the GDN groups are 4.5% of it.
The pool was 786,432 for one reason — the
poolTokens <= 786432assertion this branchadded at Gate 1. Capacity against the 4×256k target:
Note 1,048,576 — the number the target shapes are usually quoted at — is not enough;
the per-request output reservation pushes it to 1,081,344.
The per-sequence GDN spec cannot be built, and would not be enough if it could
A perfect fix moves concurrency 3.881 → 3.969 at POOL 1,048,576 and still misses 4.0.
And the declaration is not available:
unify_kv_cache_spec_page_size(:1098-1107) pads aMambaSpecback up to the largestpage unconditionally and asserts the result — a smaller honest page is not rejected,
it is silently padded back. Bypass that and
get_uniform_page_size(:1010-1016)asserts
len(page_sizes) == 1.indexes_kv_by_block_strideis not the mechanism.MambaSpecis not anAttentionSpec(kv_cache_interface.py:690), so the field does not exist on it. Itgates only the attention padding fallback (
:1114-1118), which raises the uniformpage and costs capacity rather than recovering it.
group_size = min(16,48) = 16(:1221-1232)and the concurrency denominator sums
max_memory_usage_bytesonce per group (:937-955).Forcing one GDN group sets
group_size = 48and divides the block count by three — a netloss.
So recovering the padding means patching vLLM's uniform-page hybrid design itself, for 2.3%
of capacity that misses the target anyway. I have not started it, and on this evidence it
should not be started.
What actually gates the target
Whether POOL 1,081,344 physically fits, which is unmeasured and the real risk. A traced
decode at 1,048,576 with caching on did OOM the device
(
prefix-traced-dram-oom-20260918T1540Z.jsonl); nothing on the TT path measures free DRAM(
determine_available_memoryreturns1<<64, so an over-large pool OOMs on the firstrequest rather than clamping); and the G2 TP=2 weight footprint is still UNMEASURED. At bf8
KV that pool is ~16.5 GiB/card against 31.37 GiB usable, leaving ~14.9 GiB for weights.
The assertion therefore stays fail-closed at 786,432 — it is not mine to raise on
arithmetic. Its message now carries the real numbers and the reason. The queued mesh slot
(behind the MTP agent, never preempting) runs the POOL boot and the FP8/G2
tp_load_probereadings that decide it.
🤖 Generated with Claude Code
Do not merge and do not deploy. Gates 2–4 never ran, and this branch is pre-BEST. G2 weights and K8/V4 are already on master. Prefix deploy stays on #48.
Closing: every commit on this branch (head
6aac857c) is already on masterf30ab09. Gates 2–4 never ran; the prefix deploy stays on #48. Triage 2026-10-09.agent-gateway closeout (closed): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.
Pull request closed