mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
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#416
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/238
State: closed
Merged: No
What this changes
STRATA_GLM_WARM_PROMPT=N(off by default;Nat least 32): with--serve, one synthetic prompt ofNtokens runs through the whole part chain before the server prints READY. It exists for issue #8: the first prompt of every session read 95-133 ms/token against 23-44 warm. The first chunk carries every kernel's first launch, the prompt path's own allocations and the tiers' first reads, and no later prompt pays any of it.The warm prompt costs about one chunk of the smallest part's size - a few seconds to ~15 s on a four-way split of a big model, beside the tiers' own 90-151 s warm-up at a start. Its ids are spread over the vocabulary so the routes are not one expert's. The state is zeroed right after it, so no conversation can see it (a request with no slot in use resets before its own prompt anyway), and
glm fast: the prompt path is warm (N tokens in X ms, Y ms/token)marks it.0or unset is off. The default stays 0 because whether it wins is exactly what the first-prompt A/B with the knob on and off decides; the knob is how that is measured.What it leaves alone
Default off: a server started without the variable behaves exactly as before and no synthetic prompt runs. Requests, the API and the config are untouched.
Measurements
From issue #8, the motivation: the first prompt of every session read 95-133 ms/token against 23-44 warm on the same conversation, the first request after a fresh start against later ones. The cost is one chunk of the smallest part, a few seconds to ~15 s here, beside the tiers' 90-151 s warm-up. This branch does not claim a win: the A/B with the knob on and off is the measurement it enables.
Checks
src/program/generate.cppcompiles clean with the build's own flags (nvcc 13.2, compute_86 + compute_120).python3 tools/check_hip_compat.pypasses.🤖 Generated with Claude Code