Archived
libr4d: mla_attn_paged splits by heads alone, so a verify row matches its single-row decode
The history split was sized by rows * heads and clamped by the step's longest table: at eight heads one and two rows split 16 ways and three rows 11, so the k + 1 rows of a speculative verify summed their partials in another order than the single-row decodes at the same positions, and Ling-3.0's greedy text left the run without speculation from MTP depth 2 on. The count now comes from the head count only; a scratch hook sizes the partials for up to 32 rows a launch, and a larger batch takes as many splits as its scratch holds. r4d_emu's mla test holds verify launches of 2 to 32 rows to their single-row decodes bit for bit.
This commit is contained in:
1 parent
303060f210
commit
ab736ca3e3
5 files changed
+110
-6
No files matched your search
@@ -832,6 +832,7 @@ int r4d_rad_mla_attn(const RadArgs*, RadStream);
|
||||
int r4d_rad_mla_attn_paged(const RadArgs*, RadStream);
|
||||
int r4d_shape_mla_attn_paged(const RadParam*, int, int, RadOpdDesc*);
|
||||
int64_t r4d_rad_mla_attn_scratch(const RadArgs*);
|
||||
int64_t r4d_rad_mla_attn_paged_scratch(const RadArgs*);
|
||||
int r4d_rad_mla_attn_matrix(const RadArgs*, RadStream);
|
||||
int64_t r4d_rad_mla_attn_matrix_scratch(const RadArgs*);
|
||||
int r4d_rad_mla_attn_rows(const RadArgs*, RadStream);
|
||||
|
||||
Reference in new issue
Block a user