Repository navigation
serve seats: --slot-ctx names one request's context apart from the count, and qwen38 takes --parallel auto - #1011
Conversation
…qwen38's ctx PIN says the default is fitted
…unt, and qwen38 takes --parallel auto
There was a problem hiding this comment.
Verdict: CLEAN: No proven behavior or quality defect remains in the changed paths.
Non-blocking
⚠ Complete the GPU evidence: crates/gpu-gates/src/bin/gate_qwen38_serve.rs:3904 has reported PASS output, but no FAIL-first run for its context-sharing mutant. Attach that failure, the nvidia-smi line, both engine commit hashes, and the exact just gate-* commands with output. This lets maintainers verify the new clause before merge.
Checked
Duplicates: 25 new functions, types and constants, plus 2 renames checked; no duplicate found. Dryer reported 0 pairs. The shared slot parser and existing bisection own the common logic.
Complexity: host_room_fits_the_default (34) is a rename; auto38 (17) combines context selection and capacity classification; ctx (59→74) adds a gate clause. run (151→158), parse_args (37→39) and check (26→28) add startup branches, outside the token step.
Silent failure: 7 fallback sites followed. Missing capacity returns to the one-slot refusal or draft yield; context hints require a set context; absent retry capacity offers no retry; the remaining defaults represent omitted options or mutex-poison recovery.
Tests: static mutation review only. Removing the slot-context multiplication, changing bisection bounds, dropping host-capacity classification, removing the draft fallback, changing the fitted default's count, swapping retry units, removing the environment alias, or changing the auto record word is rejected by assertions. The hardware clause rejects passing a slot's context as the total when several slots fit.
Gates: no thresholds relaxed or cases removed; context-clause renames preserve their assertions. The context PIN wording changed without changing its check.
Escape catalog: C1–C4 do not match. Overflow, configuration precedence, one-slot capacity, draft refusal and non-capacity error propagation were traced.
Notes
Dryer did not search crates/gpu-gates; its changed items were checked manually.
Validation was static; no builds or tests were run.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/bloomery_serve.rs, crates/gpu-gates/src/bin/gate_ds41_serve.rs, crates/gpu-gates/src/bin/gate_glm5next_serve.rs … and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
The review is done and the contribution check passed, so I'm merging this. |
--slot-ctx로 슬롯 하나의 컨텍스트를 슬롯 수와 따로 정하고, Qwen3.8에서--parallel auto로 메모리가 감당하는 슬롯 수를 서버가 고르게 했습니다.What and why
--ctx-sizeis the total that the slots share, so asking for four requests of 32,768 positions means doing the arithmetic (--parallel 4 --ctx-size 131072). This PR adds--slot-ctx S, one request's context:--parallel 4 --slot-ctx 32768serves four slots of 32,768 positions each, and--slot-ctxalone serves one slot ofS. Beside--ctx-sizeit is refused by name, since one flag would name the total and the other a slot's share. Every seat that takes--paralleltakes--slot-ctx.On the Qwen3.8 seat,
--parallel autoserves the most slots, up to 8, whose plan holds one request's context (--slot-ctxwhen set, else the context one slot's default takes). Theparallelline reportsfrom=auto. Every other seat refuses--parallel autoby name. When the draft does not fit at the count auto would pick, auto falls back to the existing one-slot draft yield instead of refusing. The one-request hint printed under--slot-ctxnames--slot-ctxrather than--ctx-size.README.md,docs/serving.mdanddocs/BUILD.mddescribe the flags, and the qwen38 and qwen3 serve gates read the default-context clauses as "the largest step the card holds".Release notes: Added:
--slot-ctx Ssets one request's context apart from--parallel, and the Qwen3.8 seat takes--parallel autoto serve as many slots as memory holds at that context.Code shape
The review reads these first. A box left unticked needs one line of why.
copying it (
AGENTS.md"Common code first",docs/rust-quality.mdR14). Where I found an existing copy, Inamed it below.
(tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
tools/check-comments.sh).PIN(YYYY-MM-DD):and its reason.
cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed (
path:line): the one-request hint thatslots_given(glm, qwen3, tiered) and the qwen38 seat each printed now has one owner,bind::one_request_lineincrates/gpu-gates/src/bind.rs.What I ran
On one DGX Spark, the built
bloomery-servewith the Qwen3.8-Flash-Next-FP4-Local files (revisionb9ce18a6887e18c089fdea8509a33e63429a3300), eight concurrent/completionrequests (n_predict24, temperature 0) after the server was ready:Gate run on the same card,
gate_qwen38_serveon the Qwen3.8 UD-Q4_K_XL GGUF files, the new clause and the context checks this diff reaches:The gate has 102 checks, 96 pass and 6 fail. The six are in the drafted and paged clauses, which this diff does not touch, and they fail the same way on upstream main.
Host tests for the new auto yield. The first command prints
parallel auto slots=1: the default does not hold at one slot (the host room ... is under the NVMe expert tier's floor ...)for the new case where the draft is refused and the plain plan fits:Each test fails without its fix. Putting the old guard back in
auto38(Err(e) if e.is::<FloorShort>()) turnsauto_slots_keep_the_fitting_drafted_planred at its new assertion (the draft yield answers it: Placement(HostRoomFloor { ... }), rc 101). Making the one-request hint ignore the recorded flag (if false {in place ofif crate::start::slot_ctx_noted() {) turns the context-retry test red at its flag assertion (rc 101).Hardware (if the change is for a machine)
One DGX Spark (GB10), driver 595.84, CUDA 13.3.
AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.