mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #215] GLM prompt: the shared expert in sub-batches of 2048 on CUDA - a 27K prompt -1.2% #399
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#399
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/215
State: closed
Merged: Yes
What this changes
With
STRATA_GLM_PREFILL_SUBunset, the prompt path's shared expert ran sub-batches ofkSub(256), and each sub-batch dequantizes its three matrices to FP16 again (105 times a layer on a 27K prompt). On CUDA it now runs sub-batches of 2048 (kShSub);STRATA_GLM_PREFILL_SH_SUB=<n>overrides,STRATA_GLM_PREFILL_SUBstill sets every sub-batch, and HIP keepskSub. The chunk's carve sizes the MoE buffers for it.Measured
One V100-PCIe-32GB, Maya-S24, a 27K prompt with
STRATA_GLM_PREFILL_SUBunset (the mixers pick 2048 themselves), two rounds each started below 60 C,STRATA_GLM_PREFILL_PROF=1:The shared expert's arithmetic per token is unchanged (only how many tokens a dequantized copy serves).
Note: an earlier measurement I mentioned elsewhere ("PREFILL_SUB unset is 4x slower") was a test-harness artifact - the harness passed the literal string "unset" through the environment, which the engine clamps to sub-batches of 16. With the variable really unset, main runs these prompts in ~79 s.