port/grill: tt-metal #60316 GDN fused prefill multi-batch waves (11x10 BH, BH>48 off phased fallback) #245

Closed
opened 2026-10-16 08:44:12 +02:00 by tenstorrent · 2 comments
Member

Pickup (same day from the upstream watch, 2026-10-16)

Desk only: no cards and no code. Master 90fe3e6c (CONTROL …-gpgob-dfr). Branch grill/metal-60316-gdn-prefill-waves is cut from master, with no commits.

Upstream: https://github.com/tenstorrent/tt-metal/pull/60316, [Performance] GDN fused prefill: multi-batch support, by iwroszTT. Open, mergeable_state dirty, head 3705bad5, 4 commits, 10 files, +750/−86. Requested reviewer: atupe-tt.

What it does (their claims, not ours)

  • The fused chunk_gated_delta_rule prefill allocates cores per head. On the 11×10 BH grid it accepts BH ≤ 48, and above that it falls back to the phased op (≤ 110 heads).
  • The PR adds host-side waves: one program when BH ≤ 32, otherwise the fewest waves of ≤ 24 heads.
  • head_offset is excluded from the program hash and re-applied as dynamic runtime args, so a batch compiles at most 2 programs and the waves are trace-safe. Kernel change: one line in the fused receiver.
  • Measured on QB2, T=2048, K=V=128: BH24 362 µs (unchanged). BH48: 1873 → 724 µs (2.6×). BH96: 3650 → 1452 µs (2.5×). Flat 15.1 µs per head.

Why it matters to us

  • Our TP=2 slice is BH=24 per device at B=1 (#207, c158). Multi-user prefill batches at B≥2 land at BH 48+, which is the phased fallback today. Wave dispatch would keep them on the fused gpool path (#197 / #202 WIN).
  • It interacts with the prefill unlocks in #201 (mixed chunk plan) and needs our grafted fused-prep stack (#207) or the #208 bump.

Grill questions

  1. Does our served prefill ever issue BH > 32 per device (batched chunk prefill at B ≥ 2)? If not, this is inert for us.
  2. Do the wave limits (32 / 24, calibrated on QB2) need recalibrating for p150a with our gpool overrides (patch 0048)?
  3. Graft onto the fork pin, or wait for #208?

#207 (GDN prep stack for BH=24), #197 / #202 (gpool producer pool + screen close-out), #201 (prefill unlocks), #208 (metal bump)

## Pickup (same day from the upstream watch, 2026-10-16) Desk only: no cards and no code. Master `90fe3e6c` (CONTROL `…-gpgob-dfr`). Branch `grill/metal-60316-gdn-prefill-waves` is cut from master, with no commits. Upstream: https://github.com/tenstorrent/tt-metal/pull/60316, **[Performance] GDN fused prefill: multi-batch support**, by iwroszTT. Open, mergeable_state dirty, head `3705bad5`, 4 commits, 10 files, +750/−86. Requested reviewer: atupe-tt. ### What it does (their claims, not ours) - The fused `chunk_gated_delta_rule` prefill allocates cores per head. On the **11×10 BH** grid it accepts BH ≤ 48, and above that it falls back to the phased op (≤ 110 heads). - The PR adds host-side **waves**: one program when BH ≤ 32, otherwise the fewest waves of ≤ 24 heads. - `head_offset` is excluded from the program hash and re-applied as dynamic runtime args, so a batch compiles at most 2 programs and the waves are trace-safe. Kernel change: one line in the fused receiver. - Measured on QB2, T=2048, K=V=128: BH24 362 µs (unchanged). **BH48: 1873 → 724 µs (2.6×). BH96: 3650 → 1452 µs (2.5×).** Flat 15.1 µs per head. ### Why it matters to us - Our TP=2 slice is **BH=24 per device at B=1** (#207, c158). Multi-user prefill batches at B≥2 land at BH 48+, which is the phased fallback today. Wave dispatch would keep them on the fused gpool path (#197 / #202 WIN). - It interacts with the prefill unlocks in #201 (mixed chunk plan) and needs our grafted fused-prep stack (#207) or the #208 bump. ### Grill questions 1. Does our served prefill ever issue BH > 32 per device (batched chunk prefill at B ≥ 2)? If not, this is inert for us. 2. Do the wave limits (32 / 24, calibrated on QB2) need recalibrating for p150a with our gpool overrides (patch 0048)? 3. Graft onto the fork pin, or wait for #208? ### Links #207 (GDN prep stack for BH=24), #197 / #202 (gpool producer pool + screen close-out), #201 (prefill unlocks), #208 (metal bump)
Member

Superseded by #337: the 2026-11-09 upstream scan answered this grill (waves are inert at our served BH=24 over-B=1 scratch; they only matter for the #63316 port or a PP arm at BH=48) and the follow-on port lives there. Verified 2026-11-18.

Superseded by #337: the 2026-11-09 upstream scan answered this grill (waves are inert at our served BH=24 over-B=1 scratch; they only matter for the #63316 port or a PP arm at BH=48) and the follow-on port lives there. Verified 2026-11-18.
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.
Sign in to join this conversation.
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#245
No description provided.