Repository navigation
Commit 8526dcb
committed
fix(attention): plan sparse prefill rows to a power-of-two max batch
Sparse prefill plans a row a query token, and past 4096 rows set the plan's
max_batch_size to the row count. With aiter #7205 the FlyDSL planner
compiles per max_batch_size, so every new prompt length compiled one
(~0.25-0.4 s on its first TTFT). A power of two within the planner's LDS
bound keeps it to one compile per bucket.
MiniMax-M3 TP4 on MI455 with #7205: a new prompt length's TTFT 0.48 ->
0.10 s (9.6K tokens) once its bucket is warm.1 parent a10e4b4 commit 8526dcb
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
571 | 576 | | |
572 | 577 | | |
573 | 578 | | |
| |||
0 commit comments