goal 4: Qwen3.8-27B on ONE Blackhole card, from the QUASAR NVFP4 checkpoint #15
Closed
multica-agent
wants to merge 100 commits from
agent/claude-auth/goal-4-nvfp4-single-card into agent/claude-auth/goal-2-3
pull from: agent/claude-auth/goal-4-nvfp4-single-card
merge into: bitpartner:agent/claude-auth/goal-2-3
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:deploy/g2-prefix-0019
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/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!15
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/claude-auth/goal-4-nvfp4-single-card"
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?
Docs and scaffolding for the new operator goal (2026-09-05): get a smaller quant running natively on a single card, using QUASAR NVFP4.
Stacked on #14 (goals 2-3). No behaviour change on any existing profile.
What is in here
docs/GOAL-NVFP4-SINGLE-CARD.md— the goal: what "natively" means on both axes, four gates (G4.1-G4.4), the measured budget, what fits, expected decode speed, the work in dependency order, and the ways it fails.goal4profile inscripts/vllm-tt-serve.sh, committed non-functional on purpose — the unpacker and the coverage gate do not exist yet, but the mesh syntax needs recording.The budget, measured
Live device weights sum to 25.853 GiB against 30.87 GiB usable per card — 5.02 GiB left, which will not serve long context. QUASAR's coverage takes the four bf8 groups it quantised down to bf4, saving 3.374 GiB → 22.479 GiB, freeing 8.39 GiB.
Against 34,816 B/token of KV (16 full-attention layers; the 48 GDN layers hold a fixed-size state), one 262,144 session needs 8.50 GiB — 1.1 GiB short until
tok_embeddingsalso drops to bf8. That lever is held in reserve, not assumed. Goal 2 missed its first attempt at this margin by 0.17 GiB.Corrections
Linear. Its configignoreslm_head. All three sources — unsloth, QUASAR, and tt-metal's own policy — independently keeplm_headat 8 bits. Settled; should not cost an experiment.FP4-PRIORITY.md's ~29 tok/s ceiling used 27.49 GiB, which counts prefill-onlygate_upand the embedding table. The decode read is 20.17 GiB. More to the point, goal 3 showed the ceiling is not the binding constraint: ~80% of per-token time is fixed cost, anddown_proj→ bf4 bought +3.1% where that section predicted +15%. The prize here is footprint — which is exactly what makes one card possible — not speed.Two things worth flagging
This goal incidentally runs the TP=1 diagnostic goal 3 asked for. If single-stream decode comes in much faster than the predicted 10-14 tok/s, the fixed cost was the TP=2 all-reduce, not the GDN chain.
The bf8 accuracy baseline is still uncaptured and is a prerequisite of G4.4. It has been outstanding since goal 3 and costs one two-card run.
Tier
T0 — documentation and a non-functional serve profile.
@hermes review please.
Steps A, B, B2 and C are done — and the plan was missing a step
Progress since the PR opened. All evidence in
bench/runs/goal4-nvfp4-unpack-pcc-2026-09-05.jsonl.A — checkpoint complete
20.56 GB, all 5 shards, verified against the index. 7.5 GB of stale
.incompleteblobs from the interrupted first attempt cleaned up.C — the format is determined, not assumed
uint8, low nibble firstfloat8_e4m3, group_size 16, along the input dimfloat32, and it dividesNibble order is settled by measurement: high-first scores PCC −0.0004 against the FP8 reference where low-first scores +0.9955. Nine projections across MLP, GDN
linear_attnand fullself_attn, first and last layers: PCC 0.994–0.996, norm ratios 0.984–0.998. That residual is the genuine 4-bit-QAT vs 8-bit-PTQ difference, not unpacker error.scripts/nvfp4-unpack-check.pygates on two things, and the second is the important one. PCC catches anything that scrambles which value goes where. It cannot catch the global-scale direction — that value is a scalar, so inverting it leaves PCC at ~1.0 with every weight wrong by a constant factor. The norm ratio is the only thing standing between that error and the cards.B — patch 0009, and the result that matters is not "it loads"
It loads into the same shape: 851 internal keys on both paths, zero unique to either, zero shape mismatches, zero dtype mismatches. Everything downstream of
load_state_dictis therefore unchanged — the checkpoint format stops mattering at that boundary. Detection is mutually exclusive both ways.Laziness holds, which was most at risk: peak RSS 0.23 GB after indexing 2,687 tensors, 2.20 GB after reading five — and that 2.20 is the two 248320×5120 bf16 tensors materialising on demand, not the projections.
B2 — patch 0010, the step the plan did not have
layer.pybranches onnum_devices > 1, so a(1,1)mesh takes the non-TP modules — and those raise "DeltaNet layer requires the combined qkv_proj weight", because both lazy loaders deliberately keep GDN raw for the TP loaders to shard.Goals 1–3 could not have found this. It would have surfaced as a crash after a multi-hour cold cache build.
as_single_device()supplies the remapped layout without giving up laziness: 851 keys → 947, the conv split reassembles to the original tensor exactly, spec shapes match actual reads.The generalisation is worth more than the fix: every patch this repo carries (0001–0003, 0007, 0008) targets the TP path. The single-device path is essentially unexercised here and more of it is likely to be wrong. Budgeted for, rather than treated as a surprise each time.
A correction I had to make mid-derivation
I first read
LINEAR_Q_DIM/LINEAR_K_DIM = 2048as hardcoded for the 9B and therefore wrong here. They are not — that islinear_num_key_heads × linear_key_head_dim, 16 × 128 in both models, with V taken as the remainder (6144 here vs the 9B's 4096). The genuinely stale constant there isFULL_ATTENTION_LAYERS = {3…31}, which is dead code.In flight
Single-card cold build running now on
vllm-tt:goal4— deliberately at today's dtype policy, not QUASAR's coverage yet, so that G4.1 tests the checkpoint and the single-device path with one variable rather than three. Weights are 25.85 GiB against 30.87 usable, so it fits without the bf4 work; step D then buys the context budget.The log already shows
linear_attn.qkv_proj.weightbeing tilized into a newtensor_cache_bfp8underP150/— both patches live on hardware.layer.py branches on num_devices > 1, so a (1,1) mesh takes the NON-TP modules, and those call load_gdn_weights, which raises "DeltaNet layer requires the combined qkv_proj weight". Both lazy loaders deliberately keep GDN linear_attn.* raw -- fused in_proj_qkv, fused conv1d -- because the TP loaders shard those themselves. Goals 1-3 ran entirely at TP=2 and could not have found this; it would have surfaced as a crash after a multi-hour cold cache build. as_single_device() supplies the remap_qwen36_state_dict layout without giving up laziness: in_proj_qkv renamed to qkv_proj, conv1d recorded as three slice specs that slice on read. 851 keys become 947 (+96 = 48 GDN layers x 2 extra conv keys), the NVFP4 and FP8 single-device key sets are identical, the split reassembles to the original tensor exactly, and the spec shapes match the actual reads -- which matters because the warm-cache marker trusts them. Peak RSS 1.60 GB. model_config passes single_device=(num_devices == 1), so two cards are untouched. I first read LINEAR_Q_DIM/LINEAR_K_DIM = 2048 as hardcoded for the 9B and therefore wrong here. They are not: that is linear_num_key_heads x linear_key_head_dim, 16 x 128 in both models, and V is taken as the remainder -- 6144 here against the 9B's 4096. The stale constant in that block is FULL_ATTENTION_LAYERS = {3..31}, and it is dead code.It runs. 27B on one Blackhole card, from the QUASAR NVFP4 checkpoint.
G4.1 met.
(1,1)mesh, one device, coherent output. Cold build 14 min, warm restart 8 min.G4.2 met, and the budget was 6.1 GiB pessimistic.
The single-device layout is structurally leaner, not merely differently named: no fused prefill
mlp.gate_up.swiglu(5.98 GiB at TP=2), no fusedqkvzab/wqkvduplication. So every KV number in §4 re-derives from 11.106 rather than 8.39 — at bf8 KV that is ~307k tokens, meaning a full 262,144 session fits with margin instead of being 1.1 GiB short, and thetok_embeddingslever held in reserve isn't needed.The TP=1 diagnostic answered — outside both branches it was designed around
GOAL-VLLM-SERVING.mdpredicted "≈14.9 unchanged ⇒ the GDN chain is the cost" or "substantially faster ⇒ the CCL is the cost". Neither: one card is 2.14× slower at essentially identical MBU.Decode scales near-linearly with card count at constant MBU; the TP=2 CCL costs ~7%. What goal 3 measured as ~80% "fixed cost" is fixed with respect to weight bytes, not with respect to hardware — it halves when you add a card. So it is per-card work (compute or per-op dispatch), not a serial latency floor and not DRAM bandwidth. MBU was the wrong instrument for it.
That converts step D from a hope into a prediction: if bf4 at QUASAR's coverage buys much more than its byte share, the cost is matmul fidelity — bf4 selects LoFi at 16 cycles/tile against bf8's HiFi2 at 32. Which is what
QUANTIZATION.mdargued and whatdown_projalone was too small a share to show.One blocker, worked around
QWEN_SDPA_BF8=1makes the cachebfloat8_b, but the non-TP attention module never casts the prefill input to it. The TP path does — which is why goal 2 ran 4×256k on bf8 KV and never saw this. It surfaced only after the full cold build and a successful decode warmup.KV_BF8now gates it, defaulting off on the goal4 profile at the cost of 2× KV memory. Deferred, not closed: fixing it doubles the context budget.That is the second instance of the pattern this PR flagged in advance — every patch here targets the TP path, so the single-device path keeps breaking in places two cards never reach. Predicted, budgeted for, and cheaper each time because of it.
Still open
Note this run used today's dtype policy, not QUASAR's coverage. The checkpoint is loaded natively; the device dtypes are still ours. Half of "natively" is done.
Closing: the content of this PR is merged on master, and its base
agent/claude-auth/goal-2-3is dead (archived as tagarchive/agent/claude-auth/goal-2-3). G4.1 and G4.2 were met: 19.76 GiB of weights on one card and 144 ms/token at TP=1 (bench/runs/goal4-single-card-nvfp4-2026-09-05.jsonl).The open 1-card goals move to #69: G4.3 context ladder, G4.4 accuracy, and Step D QUASAR bf4 coverage. The branch
agent/claude-auth/goal-4-nvfp4-single-cardis left in place because it carries one unmerged doc.agent-gateway closeout (closed): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.
Pull request closed