[handover] Context-adaptive MTP K (grill first) #256

Open
opened 2026-10-18 11:00:41 +02:00 by tenstorrent · 0 comments
Member

Goal

Adjust MTP K by context size (and batch) to maximize throughput from small to large contexts. Default off. Needs owner OK before an Orca agent builds it.

Data

K sweep #249 run 796 (1 rep, TG/user vs S2 K=3)

config result
ks5 B1/8k -2.3%
ks5 B1/32k -6.9%
ks5 B4/8k +4.9%
ks5 B4/32k -2.2%
ks11 / ks13 ~-33 to -39% (accept 0.12–0.17)
ks7 / ks15 TT_THROW program.cpp:1932 (ks7 at T=8 clashes with L1 static CBs on B4 boot)
ks9 timed out

Confirm run 822 (2 reps, B4)

ctx S2 ks5 delta
8k 74.74 77.53 +3.7%
32k 61.81 60.63 -1.9%
  • TTFT unchanged
  • accept: 0.645→0.483 (8k), 0.556→0.402 (32k)

Proposal

Policy table (batch, ctx bucket) → K, default off.

Open questions (grill first)

  1. Runtime K switching cost (recompile, program cache, L1 per K program set)
  2. Switch point: sequence level vs step level
  3. Interaction with MTP drafter
  4. K=4 as a middle step

Test grid

K ∈ {3,4,5} × B ∈ {1,4,8} × ctx ∈ {4k,8k,16k,32k} — each screen under 165 min.

Policy

WIP: PRs only. No cards:go / card runs without owner OK. No master pushes / force-push. No-go PR still merges with lever off (LEVERS/LEDGER).

## Goal Adjust MTP K by context size (and batch) to maximize throughput from small to large contexts. Default off. Needs **owner OK** before an Orca agent builds it. ## Data ### K sweep [#249](https://git.bitp.cz/bitpartner/tt-stack/pulls/249) run [796](https://git.bitp.cz/bitpartner/tt-stack/actions/runs/796) (1 rep, TG/user vs S2 K=3) | config | result | |--------|--------| | ks5 B1/8k | -2.3% | | ks5 B1/32k | -6.9% | | ks5 B4/8k | **+4.9%** | | ks5 B4/32k | -2.2% | | ks11 / ks13 | ~-33 to -39% (accept 0.12–0.17) | | ks7 / ks15 | `TT_THROW` program.cpp:1932 (ks7 at T=8 clashes with L1 static CBs on B4 boot) | | ks9 | timed out | ### Confirm run [822](https://git.bitp.cz/bitpartner/tt-stack/actions/runs/822) (2 reps, B4) | ctx | S2 | ks5 | delta | |-----|-----|-----|-------| | 8k | 74.74 | 77.53 | **+3.7%** | | 32k | 61.81 | 60.63 | -1.9% | - TTFT unchanged - accept: 0.645→0.483 (8k), 0.556→0.402 (32k) ## Proposal Policy table `(batch, ctx bucket) → K`, default **off**. ## Open questions (grill first) 1. Runtime K switching cost (recompile, program cache, L1 per K program set) 2. Switch point: sequence level vs step level 3. Interaction with MTP drafter 4. K=4 as a middle step ## Test grid `K ∈ {3,4,5}` × `B ∈ {1,4,8}` × `ctx ∈ {4k,8k,16k,32k}` — each screen under **165 min**. ## Policy WIP: PRs only. No `cards:go` / card runs without owner OK. No master pushes / force-push. No-go PR still merges with lever off (LEVERS/LEDGER).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#256
No description provided.