mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #199] GLM prompt: the KDA recurrence over 4 blocks a head (kda_rec_split, unused until now) - kda_rec 4.71 -> 3.31 s on a 27K prompt #392
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#392
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/mw00/project-maya/pull/199
State: closed
Merged: Yes
What this changes
kda_rec_kernel runs one block a head through the chunk's tokens: 32 blocks, so most of a V100's 80 SMs wait. The
recurrence's value columns are independent, and kda_rec_split (the prologue and the output gate as parallel kernels,
the recurrence with 32 value columns a block - 4 blocks a head) was already in glm_batch.cu. The prompt path calls it
by default now; STRATA_GLM_KDA_SPLIT=0 the one-block kernel, =8 eight blocks a head, STRATA_GLM_KDA_SPLIT_CHECK=1
(debug) runs both and prints the state's and the output's rel L2 (~1e-7).
One V100-PCIe-32GB, Maya-S24, three 27K prompts, STRATA_GLM_PREFILL_PROF: kda_rec 4.71 -> 3.31 s (-30%; 8 blocks a head
measured slower), stream time 78.6 -> 77.9 s. Decode unchanged.