Skip to content

docs: one settings page: each seat's flags, which setting wins, what a request field does; slots and per-slot context on every entry page; BUILD.md's card pick, servers and GLM model flag match the code - #949

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-usab-docs
Oct 29, 2026

Conversation

@juliankang4

@juliankang4 juliankang4 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

설정 문서를 한 곳(docs/serving.md의 Settings)으로 모으고, README, BUILD.md, 릴리스 README가 현재 코드와 맞도록 고칩니다.

Part of #565.

What and why

A user could not find, in one place, which flags a seat reads, which setting wins when a flag, a LLAMA_ARG_* variable and a BLOOMERY_* variable disagree, or what a request field does. Several pages also described behavior the code no longer has.

docs/serving.md gets a new ## Settings section with three parts:

  • Flags by seat: the shared flag set, then one table of the 12 seats against --parallel, --cache-ram, -ub, --mmproj and each seat's own flags. It also states what -ub costs in card memory, and that --plan is not an offline check.
  • Which setting wins: command line, then LLAMA_ARG_*, then BLOOMERY_*, then the seat default. Two sources for the same target are refused.
  • Request fields: which fields the server reads, which it refuses with a named error, and which it ignores. Unknown fields are ignored, as before.

The other pages keep one or two sentences and link to that section: README.md (Use: one slot by default, --ctx-size is the total the slots share), tools/release/README.release.md (Cards) and docs/BUILD.md. docs/serving.md also lists musespark among the one-slot seats and Qwen3.8 among the image-input seats.

docs/BUILD.md is corrected where it disagreed with the code:

  • The advice to pass --place gate on one 3090 is gone; the default plans against the bytes of the card it picks.
  • The card table's defaults match the code (Qwen3.8 bp, break-even 1,152; GLM and generate_glm5next bp, 526; Qwen3.6 and Qwen3-30B take --place).
  • The ds41, Qwen3.8 and GLM servers take --parallel N instead of "one request at a time". The ds41 --cache-ram default, the GLM prompt cache and slot save, and the MTP draft path order are described as the code has them.
  • generate_glm5next reads BLOOMERY_REF_MODEL and refuses --model; the Qwen3.6 and Qwen3-30B HTTP server is bloomery-serve (qwen3 seat); generate_qwen3moe has no -ub and reads only BLOOMERY_QWEN3_UBATCH; Clef reads images through --mmproj.
  • Seven resolved `` markers are removed.

Release notes: Changed: one Settings page lists each seat's flags, which setting wins and what each request field does, and the README, BUILD.md and release README match the current code.

Code shape

  • No second copy. Each fact is written once in docs/serving.md ## Settings; README, BUILD.md and the release README link to it.
  • Model code holds only architecture facts. No code changed.
  • Dead code is gone. The stale statements above and the seven resolved markers are removed.
  • No silent failure. Documentation only.
  • Comments state what is true now. No code comments added.
  • No relaxed gate. No band, tolerance or lint moved.
  • cargo fmt and cargo clippy: no Rust file changed.

Duplication found or removed: the one-slot seat lists and the rejected-field list in BUILD.md repeated what docs/serving.md states; BUILD.md now links to docs/serving.md#request-fields.

What I ran

Base 822b3f181. I built bloomery-serve from this branch (version line below) and checked the documented claims against the real binary on a DGX Spark.

Flag table: for each of the 11 seats I passed each of 9 flags with no model, plus 4 probes on decide, 103 rows in all. A flag the seat accepts ends at no model file; a flag it does not read ends at its own refusal. Every cell of the table matches. Examples:

musespark --parallel 2     bloomery-serve: --parallel 2: the musespark body holds one sequence and no resident slots; the seat serves --parallel 1
musespark --cache-ram 0    bloomery-serve: no model file: pass -m PATH ...
qwen3 --alias x            bloomery-serve: unknown argument "--alias": usage: bloomery-serve --model qwen3 ...
qwen3 --cache-type-k q8_0  bloomery-serve: no model file: pass -m PATH ...
mimo2 --no-mmproj          bloomery-serve: --no-mmproj needs a value, or is unknown: usage: ...
qwen38 -ub 4097            bloomery-serve: --ubatch-size 4097 is not a ubatch size in 1..=4096
qwen38 --park-ram 1        bloomery-serve: --park-ram holds the states of slots that take the model in turns; ...

Slots and context, bloomery-serve --model qwen38 --plan on the FP4-Local folder:

(default)                    parallel rule=slots slots=1 slot_ctx=262144 total=262144 from=default pass=one
--ctx-size 65536             parallel rule=slots slots=1 slot_ctx=65536 total=65536 from=ctx pass=one
--ctx-size 65536 --parallel 2  ctx rule=set ctx=32768 slots=2 total=65536

-ub and setting order, same command:

(default)                                 need ... cards=[GB10:86968737408]
-ub 48                                    need ... cards=[GB10:83678891376]
BLOOMERY_QWEN3_UBATCH=64 LLAMA_ARG_UBATCH=48
                                          bloomery-serve: LLAMA_ARG_UBATCH is read as --ubatch-size 48
                                          need ... cards=[GB10:83678891376]

The card-bytes difference between -ub 4096 and -ub 48 is 3,289,846,032 B over 4,048 tokens, 0.81 MB per token of -ub, which is the figure in docs/serving.md.

Request fields, a served FP4-Local folder, POST /v1/chat/completions with max_tokens 8:

plain request                  200
"temprature": 0 (misspelled)   200, ignored
"temperature": "hot"           400 temperature must be a number, not a string
"n": 2                         400 n is not supported by this server
"logit_bias"                   400 logit_bias is not supported by this server
"grammar"                      400 grammar is not supported by this server

The served run also printed parallel rule=slots slots=1 slot_ctx=262144 and setup draft=mtp draft_from=folder slots=1 ctx=262144.

Hardware (if the change is for a machine)

NVIDIA GB10, driver 595.84, CUDA 13.3; bloomery-serve 0.3.10 (commit 379697a6) with the Qwen3.8 FP4-Local folder.

AI help

AI 코딩 에이전트가 문서를 작성한 후 PR을 올렸습니다. diff 리뷰와 PR 리뷰는 제가 직접 했습니다.

…a request field does; slots and per-slot context on every entry page; BUILD.md's card pick, servers and GLM model flag match the code
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 29, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: documentation only; every claim I checked against the code matches, and the anchors resolve.

Non-blocking

⚠ The ctx and setting-order rule is written in four places: README.md:185, tools/release/README.release.md:89, docs/BUILD.md:145 and docs/serving.md (Settings, Concurrent requests). The PR body says each fact has one owner. Two of these copies could be one link to serving.md#which-setting-wins. Not a must-fix: the copies are short and agree.

Checked

  • Duplicates: no new code items. New doc facts checked against docs/serving.md; the four-place rule above is the only repeat.
  • Code claims checked in PR_TREE: break-evens 1,152 (qwen38_place.rs:25) and 526 (glm5next_place.rs:31); generate_glm5next refuses --model and reads BLOOMERY_REF_MODEL (generate_glm5next.rs:705); BLOOMERY_MTP_DRAFT exists (registry.rs:31); BLOOMERY_QWEN3_UBATCH is 1 to 4096, default 4096 (registry.rs:1517); ds41 --cache-ram default is the lesser of the cap and half of free RAM (ds41.rs:71); qwen3 -ub only for a file with no routed expert (qwen3.rs:315); musespark refuses --parallel above 1 (musespark.rs:406); decide takes -ub and --mmproj (decide.rs:113); --cache-type-k only on the qwen3 seat.
  • Anchors: #settings, #flags-by-seat, #which-setting-wins, #request-fields, #picking-the-card, #levers, #the-environment, #placement all exist.
  • Derived number: 3,289,846,032 B over 4,048 is 0.81 MB, tagged [derived] with its conditions (GB10, FP4-Local, qwen38).
  • Silent failure, tests, gates, comments: not applicable (no code changed); no pins moved.
  • Complexity and dryer: did not run (no Rust file changed).
  • Escape catalog: no pattern matched.

Notes

  • The PR body carries -ub and slot probes from a GB10, but no just gate-* run. That is fine for a docs-only diff.
  • generate_glm5next also accepts --place tp (registry.rs:455). BUILD.md lists a|gate|bp only. Left as is: tp is a checkpoint-folder mode.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit 4f38c48 into midagedev:main Oct 29, 2026
7 checks passed
@midagedev

Copy link
Copy Markdown
Owner

감사합니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants