Skip to content

docs: Qwen3.8 on one DGX Spark: both folders' slots, context, MTP draft and memory - #1053

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-usab-gb10-recipe
Oct 31, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-usab-gb10-recipe

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

DGX Spark 한 대에서 Qwen3.8 두 폴더의 슬롯, 컨텍스트, MTP 초안, 메모리 값을 문서에 정리했습니다.

What and why

The DGX Spark page, docs/contrib/dgx-spark.md, now covers both Qwen3.8 checkpoint folders (FP4-Local and NVFP4) on one DGX Spark, not only FP4-Local. It gives the slots and per-slot context each start gets, what --parallel auto and --slot-ctx do, the MTP draft rules as the seat applies them now, and the memory each start takes, all read from bloomery-serve --plan. It also fixes a stale line: the page said the draft goes off under --mmproj, but the seat drafts an image load by the same rule. docs/numbers.md and README.md each gain one sentence pointing to that section.

Release notes: Changed: the DGX Spark page now lists the slots, context, MTP draft and memory for both Qwen3.8 folders on one Spark.

Code shape

  • No second copy. Logic two models (or two call sites) share has one common owner; I lifted it there instead of
    copying it (AGENTS.md "Common code first", docs/rust-quality.md R14). Where I found an existing copy, I
    named it below.
  • Model code holds only architecture facts. A model's own files carry only what its architecture forces
    (tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
  • Dead code is gone. Nothing I made unused is left behind (functions, flags, gate clauses, docs).
  • No silent failure. Undefined input is a named error or panic, never a defined-looking output.
  • Comments state what is true now. No dates, issue numbers or how a bug was found (tools/check-comments.sh).
  • No relaxed gate. No band, tolerance or lint moved to make a check pass; a re-pin carries PIN(YYYY-MM-DD):
    and its reason.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up.

Duplication found or removed (path:line), or "none": none. The general rules stay in docs/serving.md; 2.3 holds the GB10 readings and links to them.

What I ran

Every number in the new 2.3 table comes from bloomery-serve --plan, which prints a start's records and exits before it loads anything. Build and version on the Spark, base 0305ba7a48903eb58ff8f4684e945e36e5172895:

$ cargo oxide build --arch sm_121a -- -p bloomery-gpu-gates --features glm5next,clef,vision,mimo2,solar2,minimaxm3,flint,gemma-embedding2,hf,checkpoint --release --bin bloomery-serve
RC build 0
$ target/release/bloomery-serve --version
bloomery-serve 0.3.11 (commit 0305ba7a48903eb58ff8f4684e945e36e5172895)

One plan per table cell, for each folder (nvidia/Qwen3.8-Flash-Next-FP4-Local at revision b9ce18a6, nvidia/Qwen3.8-Flash-Next-NVFP4 at fc694b54):

BLOOMERY_REF_MODEL=<folder> target/release/bloomery-serve --plan [--parallel 2|4|auto] [--slot-ctx 32768|65536|131072]
BLOOMERY_REF_MODEL=<folder> BLOOMERY_DRAFT=off target/release/bloomery-serve --plan [--parallel 4]

All 17 plans behind the table and the text exited 0. Each printed card_experts=24576 (every routed expert on the card), and the MTP draft stayed on in each plan that did not set BLOOMERY_DRAFT=off. Result lines for the FP4-Local folder:

none                              ctx rule=target ctx=262144 slots=1             need bytes=90479546236
--parallel 2                      ctx rule=target ctx=262144 slots=2             need bytes=98730257136
--parallel 4                      ctx rule=fitted ctx=225280 slots=4 ... host-short   need bytes=113158644184
BLOOMERY_DRAFT=off                ctx rule=target ctx=262144 slots=1             need bytes=88528537040
BLOOMERY_DRAFT=off --parallel 4   ctx rule=target ctx=262144 slots=4             need bytes=112421591084

and for the NVFP4 folder:

none                              ctx rule=target ctx=262144 slots=1             need bytes=94013247356
--parallel 4                      ctx rule=fitted ctx=167936 slots=4 ... host-short   need bytes=113305444824
BLOOMERY_DRAFT=off --parallel 4   ctx rule=fitted ctx=233472 slots=4 ... host-short   need bytes=113355872300

The draft costs quoted in the text are differences between these plans.

Hardware (if the change is for a machine)

nvidia-smi --query-gpu=name,driver_version --format=csv,noheader on the one DGX Spark:

NVIDIA GB10, 595.84

AI help

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

@github-actions github-actions Bot added dgx-spark The DGX Spark (aarch64, GB10) port documentation Improvements or additions to documentation labels Oct 31, 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: MUST_FIX: the context explanation mislabels explicitly requested contexts as memory-fitted.

Must fix

1. Distinguish explicit contexts from fitted contexts

docs/contrib/dgx-spark.md:162 includes the three explicit --slot-ctx rows in its claim. The context chooser assigns Rule::Set, and the formatter omits shortage fields for that rule. Readers following the explanation will look for diagnostics their plans never print. This is a kind B documentation defect with a mechanical fix.

Correcting this shared explanation fixes both new documentation entry points at once. Replace lines 162–163 with:

Only automatically reduced contexts report `rule=fitted` with shortage details; `--slot-ctx` reports `rule=set`.
The MTP draft stayed on in every row that did not set `BLOOMERY_DRAFT=off`, and no row printed a `draft yield`

Checked

Duplicates: 0 new functions, types or constants; no code duplication introduced.
Complexity: no Rust functions changed.
Silent failure: 0 new sites; documentation only.
Tests: none changed; mutation checks do not apply. Traced explicit slot contexts through slot selection, context choice and record formatting.
Gates: no pins, thresholds or tests changed.
Escape catalog: no C1–C4 patterns matched.

Notes

Dryer and crapper did not run because no Rust file changed.

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

Comment thread docs/contrib/dgx-spark.md Outdated
Comment on lines +162 to +163
A context under 262,144 was fitted: its `ctx` line says `rule=fitted` and names the bytes the plan one step above it
lacked. The MTP draft stayed on in every row that did not set `BLOOMERY_DRAFT=off`, and no row printed a `draft yield`

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.

The three --slot-ctx rows emit rule=set without shortage fields; only automatically reduced contexts emit rule=fitted.

Suggested change
A context under 262,144 was fitted: its `ctx` line says `rule=fitted` and names the bytes the plan one step above it
lacked. The MTP draft stayed on in every row that did not set `BLOOMERY_DRAFT=off`, and no row printed a `draft yield`
Only automatically reduced contexts report `rule=fitted` with shortage details; `--slot-ctx` reports `rule=set`.
The MTP draft stayed on in every row that did not set `BLOOMERY_DRAFT=off`, and no row printed a `draft yield`

…ft and memory

The Spark map's Qwen3.8 section covered the FP4-Local folder's run path and
speed, but not what a start chooses on either folder: how many slots, the
context each gets, whether the MTP draft stays on and how much of the
unified pool the load takes.

- dgx-spark.md 2.3 covers both checkpoint folders: where their experts sit,
  the KV format, and a table of slot counts and contexts (`--parallel` 1, 2
  and 4, `--parallel auto` with `--slot-ctx`, the draft off) with each
  plan's need, read by `bloomery-serve --plan` at 0305ba7 on one Spark.
- The MTP draft paragraph names its rule as the seat has it now: an image
  load drafts by the same rule, and a folder without the MTP layer serves
  without it. Its line references move to 0305ba7.
- numbers.md's DGX Spark rows and the README's GB10 install section point
  to the section.

@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.

Since the last review: item 1 is fixed at docs/contrib/dgx-spark.md:162. Explicit contexts are distinguished from fitted contexts.

Verdict: CLEAN: both revised sentences match the context chooser and the records it produces.

Checked

Duplicates: 0 new functions, types or constants; no dryer pairs available.
Complexity: no functions changed.
Silent failure: 0 new sites. An explicit context that exceeds memory is refused rather than silently fitted.
Tests: none changed; mutation checks do not apply. Traced explicit, target and fitted contexts through selection and formatting, including the setup record.
Gates: no pins, thresholds or tests changed.
Escape catalog: no C1–C4 patterns matched.

Notes

Dryer and crapper did not run because no Rust file changed.

🔨 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 008876a into midagedev:main Oct 31, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dgx-spark The DGX Spark (aarch64, GB10) port documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant