mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #324] [MERGED] GLM split rows: even groups from all running requests, opt-in (MAYA_GLM_EVEN_GROUPS) #470
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#470
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?
📋 Pull Request Information
Original PR: https://github.com/mw00/project-maya/pull/324
Author: @somnergy
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @mw00
Base:
main← Head:pr/even-groups📝 Commits (2)
62c985fGLM split rows: even groups from all running requests (STRATA_GLM_EVEN_GROUPS, off by default)43621a4GLM multi bench: every sequence's tokens to a file (STRATA_GLM_MULTI_DUMP)📊 Changes
5 files changed (+140 additions, -6 deletions)
View changed files
📝
CMakeLists.txt(+2 -2)📝
docs/SETTINGS.md(+2 -1)➕
include/strata/core/split_groups.hpp(+36 -0)📝
src/program/generate.cpp(+36 -3)➕
tests/core/split_groups_test.cpp(+64 -0)📄 Description
What
MAYA_GLM_EVEN_GROUPS=1(STRATA_GLM_EVEN_GROUPS, off by default) changes how the split decode (MAYA_GLM_SPLIT_ROWS= k on two GPUs or more) groups the running requests.Today the scheduler fills groups of k in turn. With k or fewer requests that is a single group, and the split's parts take turns on it: while the group's token is on the second GPU, the first one has nothing to do. With the setting on, the running requests are cut into max(2, ceil(n / k)) groups of near-equal size (k at most), so the pipeline always has a group for each part:
The size comes from all running requests, not from the ones ready at this step: in steady state only the group that just came back is ready, and cutting it again would end in groups of one. The rule is
strata/core/split_groups.hpp; the server's step and the multi bench's split-rows path both use it.A second commit adds
MAYA_GLM_MULTI_DUMP=<file>: the multi bench writes every sequence's tokens to the file, so two builds or settings can be compared token for token instead of by the first 12 tokens it prints. It is independent and can be dropped.How to enable
MAYA_GLM_EVEN_GROUPS=1besideMAYA_GLM_SPLIT_ROWS(2 or more GPUs,--parallel> 1). Rows indocs/SETTINGS.md.How it was verified
The setup: 2x RTX PRO 5000 Blackwell 72 GB, GLM-5.3-Flash EXL3 3.1 bpw (every expert in VRAM), split rows 4,
--parallel 8at 512K, KV streaming (window 196608), int8 KV, greedy.mainand this branch were built the same way with nvcc 13.4.split_groups_test(CPU) covers:MAYA_GLM_EVEN_GROUPS=1The 8-stream aggregate of builds at main's behaviour varied 131.4-131.8 tok/s across five runs.
I didn't use the greedy texts of the 8 x ~126K workload as an identity check. Two fresh starts of main alone already differ on 3 of 8 streams there: the 8 simultaneous requests are read in whatever order they arrive, and the read order changes which experts the second GPU lends during later reads. The validation logs and a summary of them follow in a comment.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.