gdn: key cached qkvzab.abpad on the a/b gap; sim-run SIM_KERNEL_OVERLAY #293
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!293
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/abpad-cache-key"
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?
Two small host-side fixes, neither changes what the cards serve.
1. Key the cached
qkvzab.abpadweight on the a/b gap (u-models review finding)The fused GDN in-projection
[qkv|z|a|(gap zeros)|b]was cached asqkvzab.{il,dramshard}.abpadregardless of the gap. A different gap (other Nv/chip, TP or checkpoint) would load a weight laid out for the old gap from a warm cache, silently.qkvzab_cache_name(proj1d, gap)ingdn/tp.py.(-24) % 32at Nv/chip = 24) keeps the bare.abpadname, so the shared cfx-llm2 tensor cache stays warm (no cold rebuild for the production arms). Any other non-zero gap gets.abpad<gap>; gap 0 keeps the unpadded name.tests/test_gdn_abpad_cache_key.py(pure host, AST-lifted,python3 -m unittest tests/test_gdn_abpad_cache_key.py). It checks that distinct gaps give distinct keys and that gaps 0 and 8 match the old expression.2.
scripts/sim-run.sh: SIM_KERNEL_OVERLAY from free/u-cclThis is
d9fc4258+4b431338+ the sim-run.sh part of545543b3:done || exit 3for the pipeline subshell, and an optional enforcingSIM_KERNEL_OVERLAY_MARKERreplacing the RS_UNI-hard-coded marker check. Only the script is taken, with no rsuni lever files, arms, records or LEVERS rows. It is ttsim-only, and shellcheck is clean.Checks: check-cited-records OK, utilization --check OK, shellcheck rc=0, ttx unittest 703 OK.
🤖 Generated with Claude Code
verdict: approve
tier: T1
rationale: Two small host-side, off-by-default fixes that change nothing served. (1)
qkvzab_cache_name()keys the fused GDN in-projection tensor cache on the a/b gap; gap 8 (served:(-24)%32at Nv/chip=24) keeps the bare.abpadname so the cfx-llm2 cache stays byte-identical to master, gap 0 keeps the unpadded name, any other gap gets.abpad<gap>— closing the warm-cache-serves-wrong-gap hole. (2)sim-run.shgains an optionalSIM_KERNEL_OVERLAY(symlink farm + per-file replace,chmod u+won store dirs, trailing-newlinereadguard,done || exit 3for the pipeline subshell, optionalSIM_KERNEL_OVERLAY_MARKERthat refuses a silently-stock kernel) — pure ttsim tooling, unset = no-op, cited as d9fc4258+4b431338+545543b3 with no rsuni lever files taken.concerns:
scripts/sim-run.sh— once merged,SIM_KERNEL_OVERLAY/SIM_KERNEL_OVERLAY_MARKERbecome the standing default for every future sim run (they default empty, so today's behavior is byte-identical, but the enforcing-marker semantics become the repo norm). Deliberate, per the PR, but flag at close-out.Cancelled CI run #9767 before the Serialized card gate. The build and check jobs had passed (Build simulators and check the host module: success; Report upstream drift: success).
Why: the plan (
action: run,reason: fingerprint has no successful verdict on this PR) would have screenedprod. Its fingerprint touches one card file,gdn/tp.py. There the cache nameqkvzab.{il,dramshard}.abpadnow comes fromqkvzab_cache_name(proj1d, gap). For gaps 0 and 8 that function returns the same string as the old expression, and the served arm runs at gap 8 (QWEN36_GDN_AB_PAD engaged: 8 zero columns). The weight bytes, memory config and dtype are unchanged. So the served arm loads the same cached tensor and runs the same ops, and a card screen would measure master again.tests/test_gdn_abpad_cache_key.pychecks that these keys match.scripts/sim-run.shis ttsim-only and is not in the card file set.🤖 Generated with Claude Code
agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.