upstream scout 2026-09-24: tt-metal/ttnn/vllm-tt perf changes relevant to Qwen3.8 on 2xP150 (top-5 + pin-bump hazards) #64
Closed
opened 2026-09-24 14:22:12 +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.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack#64
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?
This is desk research only. Nothing was run on cfx-llm2. Every number below is either THIRD-PARTY (from the PR itself, on other hardware) or ESTIMATE (my arithmetic). None of them is measured on our 2x P150a TP=2 box. Our own memory note says extrapolations like these have been wrong by 49-105%, so treat each one as a reason to measure, not as a result.
Scope: Qwen3.8-27B / ThinkingCap-27B-FP8 (48 GDN + 16 full-attention layers), 1x2 P150a mesh, TP=2, vLLM. The metric is batch makespan and TTFT at B=4/8 with <=32k in / <=1k out. Prefill is 74-79% of wall at those shapes (sweep-32k, 2026-09-14).
TL;DR: top 5 to act on (ranked by expected makespan/TTFT effect ÷ effort)
ttnn.experimental.all_gather_minimal_matmul_async(ourtp_common.all_gather_matmul_prefillcalls it), so this can be ported onto the bind-mountedpatches/prod-local-metal/tree with no image rebuild. It needs newout.colparcache tensors (partial COLD).in0_block_wmay span several activation shardsin0_block_w=1, per_core_N=10(bench/runs/n1n2-20260912/n2-raw.jsonl), i.e. about 272 serialized multicast hops. That puts it far below the PR's ~100-tiles-per-hop crossover, so hops are mostly exposed. Decode could drop 3-10 ms/token at B=8, which is makespan -1..-4% (more at 4k/8k)in0_block_w). Measure one down-proj shape with a microbenchmark before building anything. This is not the closed "grid tuning" line:QWEN36_1D_GRID_*moved core counts, while this changes the hop count, a knob that did not exist before 09-14.chunk_gated_delta_rulepatches/tt-metal/0004-chunk-gdn-phased-cb-alignmenttouches the samechunk_gdn_phased*files, so expect conflicts. The fused path's cost model is calibrated on an 11x10 grid (QB2), and P150 also appears to be 11x10 (#57507 counts 22 cores in 2 rows). Take #53790 now; wait for #57440 to merge.0020-qwen36-sdpa-streaming-kernel-for-chunked-prefill. Unverified for our shape (GQA 12q/2kv per device, d=256, paged chunked SDPA). Wait for merge, then A/B against 0020.113099f0(we carry96f3f041), plus the plugin spec-decode contract (vllm-tt-plugin#118/#128 merged; #125/#127/#130/#131 open) and the Gemma4 serving pattern #56048Two cheap items that can ride along with any rebuild:
to_layout(ROW_MAJOR) -> ttnn.argmax(dim=-1)). THIRD-PARTY: 1.64x median, measured on Wormhole. ESTIMATE: 0.3-1 ms/token, and it only applies if the op takes the multicore path.num_workers_per_dram_bank=2(#54242, already in the prod image; #55080 shows the recipe). This is a config-only A/B. The expected gain is low, because our readers already measure 454-469 GB/s (~90%) and that is the utilisation the PR reaches.If we bump the pin past 2026-09-22, we must also carry #57507 (open). #57053 changed the reduce-scatter worker heuristic.
qwen36 tp_common.matmul_reduce_scatter_prefillnow TT_FATALs on a P150 (36 workers chosen, only 22 cores below the(0,8)offset) at M >= 288 tokens per chunk. That is our exact prefill path.Our pins (as found)
vllm-tt:k2(forkdhavli/tt-metalcfx/qwen36-p300-tp2@3b31bad4, wheel0.79.0.dev20260903+cfx.g3b31bad4)d2f4b3af(2026-09-02) (merge-base via GitHub compare)patches/prod-local-metal/+patches/prod-local-plugin/tt-metal/tt-metal-full=/home/orchestra/ttm-build/src@76983d0060053f1f(2026-09-12) + #55548 @96f3f04124576047lazy FP8patches/tt-metal/0001-00230d22394cc127c17d(2026-08-14)model_runner.py84fbb665(2026-08-12)At the time of writing, main is 525 commits past
60053f1fand roughly 1,100 commits past the production base.Correction to
docs/UPSTREAM-WATCH-PLUGIN-METAL.md§1. That section says743890db(#55343, the prerequisite for plugin#126) is not an ancestor of our tree./home/orchestra/ttm-build/srcis a shallow clone (git rev-parse --is-shallow-repositoryreturnstrue), somerge-base --is-ancestorgives false negatives there. The GitHub compare API says743890db,722b1eb6(#55689) and172f60a8(#54992) are in60053f1f. They are genuinely absent from the 09-02 production base.Merged upstream items that matter
"Local" means the 09-12 Nix tree; "prod" means the 09-02 image base.
[6144,2560]bfp8 x48 ≈ +764 MiB/device (the reason we HELD #56759)in0_block_wfor DRAM-sharded matmulin0_block_win qwen36mlp.py/attention/gdn configssupports_async_decodeGenerator.decode_forwardno longer adopts stale device tokens when async is offexp_approx_mode=Falsepreviously still used the approximate expexp_approx_mode=Falsenum_devices-derived slice widthmodels/demos/blackhole/qwen36rms_allgather(Galaxy path)Open PRs to watch or cherry-pick
core_grid_offsetQWEN_GDN_PATHoverrideQWEN_GDN_TINVpinmcast && NV>=4to_layout+argmaxtail entirely; names qwen36 explicitlytext_demo.py -k accuracy_512, top-1/top-5 vs HF (98.63%/100% on P150x4)113099f0into the MTP treemax_model_len-sized ranges? The sweep holdsmax_model_len=34816 fixedvllm-tt-plugin (our pin
c127c17d, 2026-08-14)[B,1+K]block, #130 verify-then-propose, #131 on-device drafter. This is the vLLM side ThinkingCap MTP needs.model_runner.pywill conflict with #118/#119/#135 inscheduler.py/model_runner.py.tenstorrent/vllm and tt-inference-server
mainwas last pushed 2026-09-16. I found nodevbranch and no Qwen/TT activity. The plugin is the live integration point, so there is nothing to take here.impl=quetzalrow (#5147; a generated implementation with max_context 8192 and concurrency 1) plus the existingqwen36_blackholerow.--spec-decode-metrics-url(#4978) are useful when we instrument MTP acceptance.Recommended action
A selective path, not a wholesale pin bump. The production image is on a 09-02 base with grafted open PRs, and main has since landed a qwen36 MoE refactor, Metal 2.0 ports of the matmul/SDPA/paged-cache factories, and a P150-breaking RS heuristic change. A bump means rebasing all 23 metal patches plus 5 prod-local files, and it moves ttsim with it. Order:
patches/prod-local-metal/.../gdn/tp.py+tp_common.py, behindQWEN36_GDN_OUT_COLPAR(default on for max_model_len <= 34816, off for the parked long shapes). Build theout.colparcache once. Also port #56471 (warm boot). Audit #54565 and #55689 against our generator and 0018.in0_block_win {1, 2, 4, 8} on a #55444 build. Run thenum_workers_per_dram_bank=2A/B on the current image (config only). Promote #55444 only if the op time moves.113099f0. Use #53430 for variable-row KV commit, the #56048 adaptive block-output pattern, and the plugin spec contract (#118/#128, then #125-#131).Validation plan, for every adopted item, in this order:
test_gdn_tp.py(#57377 addstest_gdn_out_agmm_vs_mmrs+ skew determinism),test_chunk_gated_delta_rule.pywith the new HV=48/TP=2 geometry (#57368), and the SDPA prefill/decode unit tests at our shape (12q/2kv, d256, bf8 KV).bench/runs/batch-equiv-ref-*, bucketing off). #57377 and #57445 are not bit-exact: they are PCC-class numerics changes, so expect the hash to move. Use the accuracy gate (Gate Abench/kv-accuracy.pyat 16k/32k plus GSM8K / infbench stage 3) instead of demanding sha identity. #53790, #53627 and fused-vs-phased are claimed bit-exact, so require sha identity for those.QWEN_SDPA_BF8banner) so every record proves its arm.bench/ab/sweep-32k.sh, 4k/8k/16k/32k x B={4,8}, current optimized arm vs arm + lever, one source tree differing only by env,max_model_len34816. Rank by makespan, and report TTFT and decode ms/token alongside. Report PP tok/s and TG ms/token in every status (owner rule). For decode-side items (#55444, #53627), the B=4 control decode must stay faster than the B=8 baseline (existing tell).bench/ab/cache-speed-16k-32k.shfor prefill-side items, because prefix caching changes which prefill tokens are actually computed.bench/runs/*.jsonlwith the upstream PR number and commit in the config.Risks
bh_quietbox_2, or 4x p300c QB2). Only #53587 (stale) targets 1x2. TP=2 has twice the heads per chip (BH=24), so every kernel cost model (fused GDN geometry, SDPA chain gates) runs outside its calibrated points.rms_allgatheris ever used.git merge-baseon/home/orchestra/ttm-build/srcfor "is X in our tree" questions; use the GitHub compare API (see skillin-tree.sh).Sources
flake.nix/flake.lock,patches/{tt-metal,prod-local-metal,prod-local-plugin,vllm-tt-plugin,upstream}/,patches/PROD-SERVING-SOURCES.md,docs/UPSTREAM-WATCH-PLUGIN-METAL.md,docs/CXX-BUILD.md,docker/Dockerfile.vllm-tt-k2*,docs/DIRECTIVES-LEDGER.md,bench/runs/n1n2-20260912/n2-raw.jsonl,docs/TRACY-PREFILL-PROFILE.md.repos/tenstorrent/tt-metal/commits?sha=main&since=2026-08-28(1,104 commits, 326 after keyword filter), path-scoped commit lists formodels/demos/blackhole/qwen36,…/transformer/sdpa,…/operations/experimental; open-PR keyword search (228 PRs);compare/<c>...<base>for ancestry; PR bodies for every item above.agy research (2026-09-24)
Findings & Memory Accounting (#64 item 1, #41):
• PR #57377 ported: GDN prefill out-proj switched to column-parallel via
all_gather_minimal_matmul_asyncbehindQWEN36_GDN_OUTPROJ_COLPAR=1(default 0/OFF).• Memory cost: Shards [6144, 2560] bfp8_b per device across 48 layers = 764.99 MiB/device duplicate weights (decode retains row-sharded copy) + 50.33 MiB shared DRAM ping-pong buffer on
tt_ccl.• KV Budget Impact: At the standard <=32k benchmark (KV cache <1.1 GiB/device), +765 MiB is safe. On parked 128k/256k target shapes (16 GiB KV + 12.55 GiB weights + 1 GiB trace = ~29.5 / 30.8 GiB usable), +765 MiB consumes ~59% of the remaining ~1.3 GiB margin and competes with the prefix cache pool (1,017,275 tokens,
prefix-traced-dram-oom-20260918T1540Z.jsonl).• Local Alternative vs PR #57377: On our 1x2 P150a mesh,
_fuse_out_mmrs_prefillis ALREADY FALSE due to Patch 0007 deadlock guard (args.num_devices == 2 and 1 in _mesh_shape). Current baseline runs_row_proj(computing full 5120 cols locally, 2x matmul FLOPs of col-par) +tt_all_reduce. Column-parallel (PR #57377) directly yields fractured [1, T, 2560] residual tokens with zero post-projection CCL.• Recommendation: A/B PR #57377 (
QWEN36_GDN_OUTPROJ_COLPAR=1) FIRST on <=32k sweep where DRAM is ample; keep the zero-DRAM local reshape as fallback if 128k ladder hits DRAM exhaustion.What Changed (branch
agy/issue-64, commite288998):•
patches/prod-local-metal/models/demos/blackhole/qwen36/tt/gdn/tp.py: gatedtw["out_colpar"]\ transfer and AGMM out-proj behindQWEN36_GDN_OUTPROJ_COLPAR=1; added self-identifying bannerQWEN36_GDN_OUTPROJ_COLPAR engaged. •patches/prod-local-metal/models/demos/blackhole/qwen36/tt/tp_common.py: addedagmm_gather_bufferping-pong buffer and wiredpersistent_output_buffer. •modules/tenstorrent-serving.nix: addedgdnOutprojColparoption, assertion, and bind-mount forgdn/tp.py. •bench/ab/sweep-32k.sh: addedgdn-colpararm with fail-closed banner verification; auto-mountsgdn/tp.py. •patches/PROD-SERVING-SOURCES.md`: updated vendored files documentation.Hardware Measurement Next:
• Command:
PATCHED_DIR=patches/prod-local-metal/models/demos/blackhole/qwen36/tt ARMS="optimized gdn-colpar" OWNER=sweep32k bash bench/ab/sweep-32k.sh• Expected Result: THIRD-PARTY (PR #57377, TP=4 p300c): TTFT -9.0% at 32k, -10% at 16k. ESTIMATE for TP=2: prefill -4..-9%, makespan -3..-7% at B=8/32k.
• Go/No-go: Makespan & TTFT win vs
optimizedat B=4,8 across 16k/32k, greedy output equivalence preserved, DRAM headroom confirmed safe.Open Questions:
Cross-ref: #41
agy continuation (2026-09-25)
1. Simulation Verification (2-Chip Mesh, TP=2)
bench/probes/test_gdn_colpar_sim.pyvalidated on 2-chip simulated Blackhole (scripts/sim-run.sh --chips 2) at Qwen3.8-27B GDN shapes (dim=5120,value_dim=6144).MEASURED(bench/runs/gdn-colpar-sim-20260925T072336Z.jsonl):[1, 1, T, 2560]per-device tensors that assemble cleanly to[1, 1, T, 5120].2. DRAM & L1 Accounting for B=8, 32k Prefill
tw["out_colpar"]: adds +765.0 MiB/device (bfloat8_bacross 48 layers; duplicated because decode retains row-sharded weights).tpc.agmm_gather_bufferreserves 2 x [1, 1, 2048, 6144]bfloat16= +48.0 MiB/device in DRAM.l1_small_size=24576: Semaphores allocate on CCL reserved cores; AGMM streams tile blocks through standard Tensix CBs. Zero collisions observed or expected.3. Changes Pushed
agy/issue-64, commit65971a9:patches/prod-local-metal/.../gdn/tp.py: guarded import for delta rule decode packed op.flake.nix&scripts/sim-run.sh: unblocked local runtime (libexpat symbol fix & writableTT_METAL_HOMEcache).bench/probes/test_gdn_colpar_sim.py&bench/runs/gdn-colpar-sim-20260925T072336Z.jsonl: 2-chip simulation test & evidence record.4. Tightened Hardware Runbook & Go/No-Go
PATCHED_DIR=patches/prod-local-metal/models/demos/blackhole/qwen36/tt ARMS="optimized gdn-colpar" OWNER=sweep32k bash bench/ab/sweep-32k.shQWEN36_GDN_OUTPROJ_COLPAR engaged(fail-closed check built into sweep script).Closed as superseded: all five of its picks shipped or were re-dispositioned (patch 0024 MR; patch 0025 stack; patch 0041/0048 GDN prep; colpar) and the watch duty moved to the 11-03/11-09 scans on master; today's bump hazards (#59623, #64247) are re-audited per pin bump under #208. Verified 2026-11-18.
agent-gateway closeout (closed): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.