mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #323] [MERGED] GLM several conversations: ERR for a request whose admission fails to drain, and two STOP fixes #469
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#469
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/323
Author: @somnergy
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @mw00
Base:
main← Head:pr/scheduler-admission-fixes📝 Commits (1)
b0bc877GLM several conversations: ERR for a request whose admission fails to drain, and two STOP fixes📊 Changes
1 file changed (+10 additions, -2 deletions)
View changed files
📝
src/program/generate.cpp(+10 -2)📄 Description
What
Three fixes in the several-conversations scheduler (
--parallel> 1,glm_pack_generate). No new setting; nothing a request computes changes.gen_admitdrains the running requests (multi_drain,resolve_ready). When that failed (an engine error),multi_failsentERR <rid>to every running request but not to the new one: itsGENline had already been read, so its client waited for aDONEorERRthat never came. It now gets the sameERR <rid> <why>.STOP/PAUSElines without a valid id are ignored. The reader compares a line's id withadmitting_rid, which is-1while no prompt is being read.STOP -1therefore setstop_req, which every running request reads as its own stop, and all of them ended as cancelled. A line whose id does not parse or is negative is now dropped. The bundled server only sends positive ids; this guards the engine's stdin protocol for any other front end.STOP <rid>that arrived while the request's prompt was being read stayed in the control map when the admission then failed (the prompt path returned an error). A finished request's end (gen_finish) already erases its entry; the failed admission now does the same. It only matters to a front end that reuses request ids.How it was verified
The setup: 2x RTX PRO 5000 Blackwell 72 GB, GLM-5.3-Flash EXL3 3.1 bpw, split rows 4,
--parallel 8at 512K, KV streaming, int8 KV, greedy.mainand this branch were built the same way with nvcc 13.4.STOP -1PAUSE -1STOP xThe 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.