drisc-prefetch: pfdual13 (w1/w3 only) measured inert; served lever not built #186

Closed
Grok wants to merge 2 commits from drisc-prefetch-pf13 into master
Owner

Step 1 of LEDGER D-2026-10-06-prefetch-dram, run on 1 card (card1) on the dx CONTROL overlay. No new arm and no served code: this PR adds records, the probe and docs only.

64-layer MTP verify pass, ms, MR vs pfdual13 at GCB 600 KiB (w1/w3 on the DRISC prefetcher, dual-sender streaming layout, own receiver-contiguous copy):

  • B1/4k: 28.34 vs 27.56 (-0.78)
  • B8/4k: 31.79 vs 31.05 (-0.74); at GCB 720 KiB -0.84
  • B8/32k: 38.46 vs 37.71 (-0.75)

This is below the 1.5 ms gate, so QWEN36_DRISC_PREFETCH was not built.

Why: the ring w1/w3 take 16 us against 61 us on MR, but the prefetcher refills the next layer's w1/w3 during MR w2, which goes from 59 to ~131 us. The stream lands on another DRAM-bound read.

Measured on the way:

  • Extra DRAM is 3.516 GiB/chip; the measured allocation equals the arithmetic.
  • The GCB sits at the top of worker L1, with its bottom at 823,552 B at 600 KiB.
  • pcc against MR is 0.9985 from a clean state.

Verdict record: bench/runs/drisc-prefetch-dual13-verdict-20261006T113300Z.jsonl. The LEVERS.md row is inert.

🤖 Generated with Claude Code

Step 1 of LEDGER D-2026-10-06-prefetch-dram, run on 1 card (card1) on the dx CONTROL overlay. No new arm and no served code: this PR adds records, the probe and docs only. 64-layer MTP verify pass, ms, MR vs pfdual13 at GCB 600 KiB (w1/w3 on the DRISC prefetcher, dual-sender streaming layout, own receiver-contiguous copy): - B1/4k: 28.34 vs 27.56 (-0.78) - B8/4k: 31.79 vs 31.05 (-0.74); at GCB 720 KiB -0.84 - B8/32k: 38.46 vs 37.71 (-0.75) This is below the 1.5 ms gate, so QWEN36_DRISC_PREFETCH was not built. Why: the ring w1/w3 take 16 us against 61 us on MR, but the prefetcher refills the next layer's w1/w3 during MR w2, which goes from 59 to ~131 us. The stream lands on another DRAM-bound read. Measured on the way: - Extra DRAM is 3.516 GiB/chip; the measured allocation equals the arithmetic. - The GCB sits at the top of worker L1, with its bottom at 823,552 B at 600 KiB. - pcc against MR is 0.9985 from a clean state. Verdict record: bench/runs/drisc-prefetch-dual13-verdict-20261006T113300Z.jsonl. The LEVERS.md row is inert. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
drisc-prefetch: pfdual13 (w1/w3 only, dual-sender) measured inert, served lever not built
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 2m11s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
tt-stack-ci / Report upstream drift (pull_request) Successful in 2m39s
0b3546c296
Before: the owner approved +3.5 GiB/chip for a receiver-contiguous w1/w3 copy
(D-2026-10-06-prefetch-dram). The bet was that w1/w3 alone keep a useful share
of the all-roles step-2 saving (-4.2..-4.7 ms per pass), because they were the
roles that hid on the ring (16 us vs 61 us MR).

Evidence (1 card, 64-layer verify pass, dx CONTROL overlay):
- B1/4k -0.78 ms, B8/4k -0.74 ms (-0.84 ms at GCB 720 KiB), B8/32k -0.75 ms.
  The gate was >= 1.5 ms at B8/4k.
- The ring matmuls do hide, but the prefetcher refills the next layer's w1/w3
  during MR w2 (59 -> ~131 us). The stream moves onto another DRAM-bound read
  instead of onto non-weight work.
- Extra DRAM: 3.516 GiB/chip; the allocator delta equals the arithmetic.
- The GCB occupies the top of worker L1 (bottom at 823,552 B for 600 KiB).
- pcc vs MR is 0.9985 from a clean GDN state.

Changes:
- probe: --pf-roles, matched ring/MR weights, a clean-state correctness check,
  and the DRAM/L1 measurements;
- design doc: step-4 verdict;
- LEVERS: inert row;
- records: the two runs and the verdict.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner

verdict: approve
tier: T2 (research probe, no served code)

rationale: 3,311 insertions / 0 deletions — a one-card DRISC-prefetch bench (dp1card.py, real_layers.py, run.sh, two JIT headers) plus a design doc and the verdict record. The PR's own thesis is that the lever is inert: measurements land -0.74..-0.78 ms at B8/4k, under the 1.5 ms gate, so QWEN36_DRISC_PREFETCH was not built. Correct "measured inert, no served change" outcome.

concerns: none. Secrets/code-exec scan clean (only stdlib import os, no shell interpolation of user input, run.sh targets fixed internal host cfx-llm2). No .nix semantic change, no prod path touched. Docs/LEVERS.md row is marked inert per the author — consistent with the verdict.

**verdict:** approve **tier:** T2 (research probe, no served code) **rationale:** 3,311 insertions / 0 deletions — a one-card DRISC-prefetch bench (dp1card.py, real_layers.py, run.sh, two JIT headers) plus a design doc and the verdict record. The PR's own thesis is that the lever is inert: measurements land -0.74..-0.78 ms at B8/4k, under the 1.5 ms gate, so QWEN36_DRISC_PREFETCH was not built. Correct "measured inert, no served change" outcome. **concerns:** none. Secrets/code-exec scan clean (only stdlib `import os`, no shell interpolation of user input, run.sh targets fixed internal host cfx-llm2). No `.nix` semantic change, no prod path touched. Docs/LEVERS.md row is marked inert per the author — consistent with the verdict.
Owner

verdict: approve
tier: T2 (research probe, no served code)

rationale: 3,311 insertions / 0 deletions — a one-card DRISC-prefetch bench (dp1card.py, real_layers.py, run.sh, two JIT headers) plus a design doc and the verdict record. The PR's own thesis is that the lever is inert: measurements land -0.74..-0.78 ms at B8/4k, under the 1.5 ms gate, so QWEN36_DRISC_PREFETCH was not built. Correct "measured inert, no served change" outcome.

concerns: none. Secrets/code-exec scan clean (only stdlib import os, no shell interpolation of user input, run.sh targets fixed internal host cfx-llm2). No .nix semantic change, no prod path touched. Docs/LEVERS.md row is marked inert per the author — consistent with the verdict.

approved + labelled human-approved + already non-draft (auto-merge will fire).

**verdict:** approve **tier:** T2 (research probe, no served code) **rationale:** 3,311 insertions / 0 deletions — a one-card DRISC-prefetch bench (dp1card.py, real_layers.py, run.sh, two JIT headers) plus a design doc and the verdict record. The PR's own thesis is that the lever is inert: measurements land -0.74..-0.78 ms at B8/4k, under the 1.5 ms gate, so QWEN36_DRISC_PREFETCH was not built. Correct "measured inert, no served change" outcome. **concerns:** none. Secrets/code-exec scan clean (only stdlib `import os`, no shell interpolation of user input, run.sh targets fixed internal host cfx-llm2). No `.nix` semantic change, no prod path touched. Docs/LEVERS.md row is marked inert per the author — consistent with the verdict. approved + labelled human-approved + already non-draft (auto-merge will fire).
bench/runs: bring the two prefetcher records the design doc cites
All checks were successful
tt-stack-ci / Report upstream drift (pull_request) Successful in 2m18s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 4m23s
tt-stack-ci / Serialized card gate (pull_request) Successful in 40m35s
cards-fresh cards: not needed (C1) fp=2f628083416fa7ed
63b0f77a1e
The doc cites the step-2 real-layer record and the step-3 shared13 record. Both
lived only on the drisc-prefetch / drisc-prefetch-lever branches, so CI's
cited-records check failed the PR (run 7259).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Member

Card gate — prod vs prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx

  • PR #186 ref refs/pull/186/head
  • head 63b0f77a1ef9a1e8a758aa65cd9e9adc614ddfcc
  • host cfx-llm2, slot mesh (card0+card1)
  • serving check out /nix/store/pf0baf6q23whv2yw301y5gf1ikyxydsp-vm-test-run-tenstorrent-serving
  • ttx ab exit 0 (3 = aborted: the job fails even if a control record exists); gates exit 0
  • sweep reps: 1. Cells kept: B=8, B=4 and B=1 at ctx 4096 and 32768, one visit per arm.

gsm8k / retrieval / equiv do not gate merge. A FAIL below is a report.

Gates

  • prod equiv: kind MEASURED verdict pass (bench/runs/ttx-prod-equiv-20261006T134657Z.jsonl)
  • prod gsm8k: kind MEASURED verdict pass (bench/runs/ttx-prod-gsm8k-20261006T134657Z.jsonl)
  • prod retrieval: kind MEASURED verdict pass (bench/runs/ttx-prod-retrieval-20261006T134657Z.jsonl)

PP tok/s and TG tok/s per user (TG ms/token secondary)

arm B ctx PP tok/s TG tok/s/user TG ms/token vs control PP vs control TG tok/s
prod 1 4096 2842.5 21.0 47.561 -48.30% -69.62%
prod 1 32768 3223.0 20.5 48.785 -49.16% -66.56%
prod 4 4096 2644.3 18.9 52.817 -50.79% -72.27%
prod 4 32768 3309.6 17.3 57.888 -48.58% -71.38%
prod 8 4096 2426.2 18.3 54.548 -54.27% -69.19%
prod 8 32768 3297.3 15.5 64.629 -48.36% -67.18%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx 1 4096 5498.0 69.2 14.447
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx 1 32768 6339.3 61.3 16.315
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx 4 4096 5373.6 68.3 14.647
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx 4 32768 6436.5 60.4 16.568
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx 8 4096 5305.7 59.5 16.806
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx 8 32768 6385.2 47.1 21.209

Records

  • bench/runs/ttx-ab-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-switch-20261006T132536Z.jsonl
  • bench/runs/ttx-prod-equiv-20261006T134657Z.jsonl
  • bench/runs/ttx-prod-gsm8k-20261006T134657Z.jsonl
  • bench/runs/ttx-prod-retrieval-20261006T134657Z.jsonl
  • bench/runs/ttx-sweep32k-prod-ab20261006T132536Z-r0.jsonl
  • bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-ab20261006T132536Z-r0.jsonl

Full jsonl from this run: https://git.bitp.cz/bitpartner/tt-stack/actions/runs/7265 (artifact bench-runs when the upload step ran).

## Card gate — `prod` vs `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx` - PR `#186` ref `refs/pull/186/head` - head `63b0f77a1ef9a1e8a758aa65cd9e9adc614ddfcc` - host `cfx-llm2`, slot mesh (card0+card1) - serving check out `/nix/store/pf0baf6q23whv2yw301y5gf1ikyxydsp-vm-test-run-tenstorrent-serving` - `ttx ab` exit 0 (3 = aborted: the job fails even if a control record exists); gates exit 0 - sweep reps: 1. Cells kept: B=8, B=4 and B=1 at ctx 4096 and 32768, one visit per arm. gsm8k / retrieval / equiv do **not** gate merge. A FAIL below is a report. ### Gates - `prod` `equiv`: kind `MEASURED` verdict `pass` (`bench/runs/ttx-prod-equiv-20261006T134657Z.jsonl`) - `prod` `gsm8k`: kind `MEASURED` verdict `pass` (`bench/runs/ttx-prod-gsm8k-20261006T134657Z.jsonl`) - `prod` `retrieval`: kind `MEASURED` verdict `pass` (`bench/runs/ttx-prod-retrieval-20261006T134657Z.jsonl`) ### PP tok/s and TG tok/s per user (TG ms/token secondary) | arm | B | ctx | PP tok/s | TG tok/s/user | TG ms/token | vs control PP | vs control TG tok/s | | --- | --- | --- | --- | --- | --- | --- | --- | | `prod` | 1 | 4096 | 2842.5 | 21.0 | 47.561 | -48.30% | -69.62% | | `prod` | 1 | 32768 | 3223.0 | 20.5 | 48.785 | -49.16% | -66.56% | | `prod` | 4 | 4096 | 2644.3 | 18.9 | 52.817 | -50.79% | -72.27% | | `prod` | 4 | 32768 | 3309.6 | 17.3 | 57.888 | -48.58% | -71.38% | | `prod` | 8 | 4096 | 2426.2 | 18.3 | 54.548 | -54.27% | -69.19% | | `prod` | 8 | 32768 | 3297.3 | 15.5 | 64.629 | -48.36% | -67.18% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx` | 1 | 4096 | 5498.0 | 69.2 | 14.447 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx` | 1 | 32768 | 6339.3 | 61.3 | 16.315 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx` | 4 | 4096 | 5373.6 | 68.3 | 14.647 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx` | 4 | 32768 | 6436.5 | 60.4 | 16.568 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx` | 8 | 4096 | 5305.7 | 59.5 | 16.806 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx` | 8 | 32768 | 6385.2 | 47.1 | 21.209 | | | ### Records - `bench/runs/ttx-ab-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-switch-20261006T132536Z.jsonl` - `bench/runs/ttx-prod-equiv-20261006T134657Z.jsonl` - `bench/runs/ttx-prod-gsm8k-20261006T134657Z.jsonl` - `bench/runs/ttx-prod-retrieval-20261006T134657Z.jsonl` - `bench/runs/ttx-sweep32k-prod-ab20261006T132536Z-r0.jsonl` - `bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-ab20261006T132536Z-r0.jsonl` Full jsonl from this run: https://git.bitp.cz/bitpartner/tt-stack/actions/runs/7265 (artifact `bench-runs` when the upload step ran).
Author
Owner

Superseded by #233: unique content (pfdual13 probe + design doc + verdict records) rebased onto master 7077a88 there. Closing this branch once #233 lands.

Superseded by #233: unique content (pfdual13 probe + design doc + verdict records) rebased onto master 7077a88 there. Closing this branch once #233 lands.
Author
Owner

Landed via #233 (merged to master): pfdual13 probe + design doc + verdict records. Inert per gate (< 1.5ms); served lever not built; parked per D-2026-10-06-prefetch-parked.

Landed via #233 (merged to master): pfdual13 probe + design doc + verdict records. Inert per gate (< 1.5ms); served lever not built; parked per D-2026-10-06-prefetch-parked.
Grok closed this pull request 2026-10-10 00:34:03 +02:00
Author
Owner

agent-gateway closeout (closed): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (closed): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
All checks were successful
tt-stack-ci / Report upstream drift (pull_request) Successful in 2m18s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 4m23s
tt-stack-ci / Serialized card gate (pull_request) Successful in 40m35s
cards-fresh cards: not needed (C1) fp=2f628083416fa7ed

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!186
No description provided.