No reviewers
Labels
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
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!86
Loading…
Reference in a new issue
No description provided.
Delete branch "agy/issue-64"
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?
Ports upstream tt-metal PR #57377 (column-parallel GDN prefill out-projection) into the
vendored production sources behind
QWEN36_GDN_OUTPROJ_COLPAR=1, default OFF, with aQWEN36_GDN_OUTPROJ_COLPAR engagedbanner. Prefill's out-proj becomes all-gather + matmul(
all_gather_minimal_matmul_async); decode is untouched and keeps the row-sharded weight.This PR also establishes
patches/prod-local-metal/.../tt/gdn/tp.pyas the single basefile (owner decision, 2026-09-25). Three branches claim that path and only one file can be
mounted there. This one is the production-shaped source: it reads
QWEN_GDN_CONV_GATES,QWEN_GDN_FUSED_INPLACEandQWEN_GDN_PACKED_QKV, which the unit sets and which every numberwe hold was measured with. The 1936-line copy on
agy/issue-50reads none of the three, somounting it would silently drop the fused-GDN path. Later GDN work rebases onto this file.
Result (LEDGER
R-2026-09-25-gdn-colpar): on the 2-chip simulator only, COLPAR=1 vsCOLPAR=0 agree at PCC 0.999996 at seq 128 and 2048, max abs diff 0.031, both arms ≥ 0.99996
PCC against an fp32 PyTorch reference. No ttsim number is a performance number and none is
claimed: there is no hardware run, so the lever stays open — it must be A/B'd with
CAND_ENV="-e QWEN36_GDN_OUTPROJ_COLPAR=1"throughbench/ab/sweep-32k.shbefore anyone callsit a win. Cost if enabled: a second column-sharded out-proj weight, ~765 MiB/device over 48
GDN layers plus a ~50 MiB gather buffer — fine at ≤32k, competes with the KV pool at 128k/256k.
Changes made while merging master in
flake.lock: master's taken. The branch's lock still pinned tt-metal atfile:///home/orchestra/ttm-build/src; PR #68 moved that to the public pin, and shipping thelocal path would break CI and every other clone. The colpar code is mounted over the image,
so it does not depend on the Nix tt-metal pin.
flake.nixandscripts/sim-run.sh: the hardcoded/nix/store/…-expat-2.8.2/libpath isdropped. A literal store path breaks after a GC and on any other machine. Master had also
deleted that whole
shellHook— the Nix ttnn runtime shell now lives innix/sim/flake.nix.If the simulator really needs expat, it belongs there as
pkgs.expat, not as a literalpath — flagging rather than guessing, since I cannot verify it without the sim host. The
same commit's writable-
TT_METAL_HOMEcopy went with that deleted shellHook.bench/ab/sweep-32k.sh: master's taken. It is a ttx driver now and already supports thisarm generically via
CAND_ENV, with the identity check driven by the arm's[expect]banners, so the bespoke
gdn-colparcase is redundant.recurrent_gated_delta_rule_decode_packed_ttnnexists so the module imports under thesimulator, but the
_packedgate did not test it: a tree with the ttnn kernel and no Pythonwrapper would take the packed branch and die on a
Nonecall. The gate now includes it.Verification
The unit now mounts an eighth source.
bench/arms/prod.tomlderives its overlay from thepatches/prod-local-metaltree, sotools/ttx/tests/test_prod_matches_nix.pykeeps arm andunit in lockstep automatically — passing. Diffed the vendored file against the image copy
used by the bfpq arms: every difference is either behind the default-off colpar flag, the new
optional
dtype=parameter on_silu_mul(defaultNone, unchanged call), or the bfpqbranch's own
QWEN36_ATTN_GDN_BF4hook, which is not production and which the bfpq arms mountthemselves. No default-path behaviour change.
Post-PR-#68 hygiene after the merge:
docs/still 11 files, no rootCLAUDE.md,AGENTS.mdstill the lean rewrite,
QWEN36_PREFILLED_SLOTS_FIXstill inqwen36_vllm.py, nothing PR #68deleted came back. Locally green:
nixfmt --check,check-cited-records.py,shellcheck,nix flake check, and the 41 ttx unit tests.Refs #64, #41.
🤖 Generated with Claude Code
agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.
QWEN36_GDN_OUTPROJ_COLPAR) #97