mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[PR #223] glm prefill: what only the decode needs leaves VRAM while a prompt runs, and the prestage ring takes it (STRATA_GLM_ROOM_MIN, unset = off) #406
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#406
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/223
State: closed
Merged: No
Two pieces of VRAM belong to the decode and are never read while a prompt runs. With this flag set they leave for the length of the prompt and come back before the next token:
decode_dflashrefuses to run while it is lent, so nothing can draft against half a drafter.The freed bytes become prestage ring. On a split with
STRATA_GLM_PRESTAGEunset, the ring stops being capped at Strata's 160 experts and only the pool's lend bounds it: in the measured run CUDA2/CUDA3 (the parts that sat at the cap) went to 439 and 303 experts, where the two 8 GB parts were already lend-bound at 127 and 90.Flag:
STRATA_GLM_ROOM_MIN- unset (the default) is the engine as it is today: the ring keeps its cap, nothing is unloaded, every layer's tail staysk_extra. Set to N, prompts of N tokens or more take the room;0= every prompt.STRATA_GLM_PRESTAGEstill caps the ring when it is set.Measured (4 parts: 2x RTX 3060 12 GB + 2x RTX 5060 8 GB,
--layer-split 10,21,33, 260k ctx,--prefill 16384,STRATA_GLM_ROOM_MIN=8192): the byte-identical 100,534-token read in 90,891 ms - 1,106 tok/s, 13 chunks of 7,744 - against the same rig's standing 89.5 s / 1,123 tok/s. A prompt chunk here is compute-bound, so what this buys is the ring and the phase booking, not seconds.docs/SETTINGS.mdcarries both rows. Builds clean;python3 tools/check_hip_compat.pypasses.🤖 Generated with Claude Code