mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #232] GLM prompt: short prompts from 8 tokens take the batched path on one GPU (was 32) - agent turns -34% prompt time #410
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#410
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/232
State: closed
Merged: Yes
On one GPU, a prompt of 8 tokens or more now goes through the batched prompt path; the threshold was 32. A split keeps 32, and
STRATA_GLM_PREFILL_MINstill overrides it.Agent sessions send many short follow-up turns. Those are often between 8 and 32 tokens, and with the old threshold they went through the token path one step per token.
Measured on Maya-S24, one V100 32 GB, cooled runs. The test is the later turns of a session that keeps 13.5K tokens of history, each adding a short user turn (
tools/glm_turns.py, added here).This branch, rebased on main
3650d0d:STRATA_GLM_PREFILL_MINEarlier runs on my branch (two rounds): 1,041 / 648 / 521 and 1,055 / 641 / 531 ms at 32, against 488 / 405 / 577 and 514 / 392 / 578 at 8. A threshold of 4 behaved like 8, and 16 was worse (502 / 716 / 540).
tools/glm_turns.py PACK_DIR [BINARY]reproduces the measurement and passes theSTRATA_GLM_*environment through.