MTP: T-dim / tensor-parallel sharding of draft path for 2×p150a #137

Closed
opened 2026-09-30 09:08:37 +02:00 by tenstorrent · 3 comments
Member

Parent / blocked-by tracking via #90 (amd-qwen / tinygrad borrow-adapt lane).

Grill call: WATCH (desk-only — reshape for TT/vllm-tt/ThinkingCap TP=2)

Hypothesis. Tensor-parallel / T-dim sharding of the MTP draft path (not only verify) can improve draft-step throughput on 2×p150a when draft work is currently host- or single-card-heavy. AMD ROCm serving shapes motivate looking at draft-path TP; TT already TP-shards MTP head/verify in upstream metal — gap is whether our draft scoring path is under-sharded.

Source. tinygrad / jacobrosenthal amd-qwen-on-master (AMD ROCm Qwen3.8). External — not TT silicon claims.

Depends on. MTP TP=1 vs TP=2 inventory (#82 / #63 / #96); MTP_DRAFT_VOCAB measure (portable win may shrink the need).

Measure first. Desk profile: where draft lm_head / draft attention / host postprocess sit at TP=2 today; fraction of step that would move under T-sharding. No mesh experiment until the profile names a hotspot.

Out of scope. RDNA micro-opts; changing verify_K packing; full re-arch of spec_decode before measure.

Refs: #90; related #82/#63 MTP, #96 K matrix; grill 2026-09-29/30 Tenstorrent amd-qwen eval.

Parent / blocked-by tracking via #90 (amd-qwen / tinygrad borrow-adapt lane). ## Grill call: **WATCH** (desk-only — reshape for TT/vllm-tt/ThinkingCap TP=2) **Hypothesis.** Tensor-parallel / T-dim sharding of the MTP draft path (not only verify) can improve draft-step throughput on 2×p150a when draft work is currently host- or single-card-heavy. AMD ROCm serving shapes motivate looking at draft-path TP; TT already TP-shards MTP head/verify in upstream metal — gap is whether *our* draft scoring path is under-sharded. **Source.** tinygrad / jacobrosenthal amd-qwen-on-master (AMD ROCm Qwen3.8). External — not TT silicon claims. **Depends on.** MTP TP=1 vs TP=2 inventory (#82 / #63 / #96); MTP_DRAFT_VOCAB measure (portable win may shrink the need). **Measure first.** Desk profile: where draft lm_head / draft attention / host postprocess sit at TP=2 today; fraction of step that would move under T-sharding. No mesh experiment until the profile names a hotspot. **Out of scope.** RDNA micro-opts; changing verify_K packing; full re-arch of spec_decode before measure. Refs: #90; related #82/#63 MTP, #96 K matrix; grill 2026-09-29/30 Tenstorrent amd-qwen eval.
Owner

Eval (2026-09-30): WATCH → PARK (covered). Full write-up: docs/ISSUES-133-137-EVAL-2026-09-30.md.

  • The premise does not hold for our tree. The draft path is already TP=2 end to end (mtp_batch.py:150-222):
    • mtp.fc is column-parallel bf8 plus an all-gather;
    • the host layer is TP full attention with one-shot AR;
    • the lm_head is vocab-sharded;
    • argmax runs on device, and no logits reach the host.
  • T-dim sharding does not fit. Draft k depends on k−1. Verify already packs M = Bw·T rows into one forward. Splitting rows across cards means replicated weights, i.e. 2× bytes per card on a weight- and fixed-cost-bound step (est: worse).
  • The open number is the draft phase: est ~10 ms/step at B=8 (3 draft calls + reseed, p5). c115's -mtp-tm rung measures it (wt-mtpb-dn:bench/queues/c115-mtpb.txt).
  • If it is large, the levers are #133 (head + argmax, est ≈ −3 ms/step), a bf4 MTP head (fc and the layer are bf8 today; drafter-only, so output stays lossless) and Tracy #93 fixed cost. Sharding is not one of them.
  • Reopen only if c115's draft phase is > 12 ms at B=8 and Tracy attributes it to single-card work. 0 card-h.

🤖 Generated with Claude Code

**Eval (2026-09-30): WATCH → PARK (covered).** Full write-up: `docs/ISSUES-133-137-EVAL-2026-09-30.md`. - **The premise does not hold for our tree.** The draft path is already TP=2 end to end (`mtp_batch.py:150-222`): - `mtp.fc` is column-parallel bf8 plus an all-gather; - the host layer is TP full attention with one-shot AR; - the lm_head is vocab-sharded; - argmax runs on device, and no logits reach the host. - **T-dim sharding does not fit.** Draft k depends on k−1. Verify already packs M = Bw·T rows into one forward. Splitting rows across cards means replicated weights, i.e. 2× bytes per card on a weight- and fixed-cost-bound step (est: worse). - **The open number is the draft phase:** est ~10 ms/step at B=8 (3 draft calls + reseed, p5). c115's `-mtp-tm` rung measures it (`wt-mtpb-dn:bench/queues/c115-mtpb.txt`). - **If it is large,** the levers are #133 (head + argmax, est ≈ −3 ms/step), a bf4 MTP head (fc and the layer are bf8 today; drafter-only, so output stays lossless) and Tracy #93 fixed cost. Sharding is not one of them. - **Reopen** only if c115's `draft` phase is > 12 ms at B=8 and Tracy attributes it to single-card work. 0 card-h. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Member

Dead (premise refuted, measured): the draft path is already TP=2 end-to-end (column-parallel mtp.fc + AR, vocab-sharded lm_head) and the draft phase is ~7.3 ms < the 12 ms reopen threshold at B8 (MTP-BATCH.md synced split); row-splitting replicates weights on a weight-bound step. Verified 2026-11-18.

Dead (premise refuted, measured): the draft path is already TP=2 end-to-end (column-parallel mtp.fc + AR, vocab-sharded lm_head) and the draft phase is ~7.3 ms < the 12 ms reopen threshold at B8 (MTP-BATCH.md synced split); row-splitting replicates weights on a weight-bound step. 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.

Reference
bitpartner/tt-stack#137
No description provided.