Skip to content

docs: the Spark and RTX 5090 tables hold one value a cell at main e7180ea9, the Spark page's plan and speed tables follow, and stale citations point at the current code - #1132

Merged
midagedev merged 9 commits into
midagedev:mainfrom
juliankang4:dgx-spark-q38-docs-spark-cleanup
Nov 2, 2026

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

README, 서빙 가이드, DGX Spark 문서의 표와 인용을 현재 코드에 맞게 고치고 Spark 전용 페이지를 새로 만든 문서 PR입니다.

What and why

Merged PRs left several documents out of date: the README's Spark and RTX 5090 tables, docs/serving.md, the DGX Spark pages and a number of code citations. This PR brings them to the code at main e7180ea9.

  • README: the Spark and RTX 5090 tables take one value a cell, one row per model and prompt kind (code, English prose, Korean prose), at 512 and 4,096 prompt ids.
  • docs/serving.md is a numbered serving guide. New docs/dgx-spark.md serves Qwen3.8 on one Spark: install, folder choice, slots, context and memory, the MTP draft, speed. The KV cache default is f16 and --parallel auto is covered.
  • docs/contrib/dgx-spark.md, docs/contrib/new-model.md, docs/numbers.md, docs/models.md, docs/evaluating.md, docs/BUILD.md, docs/README.md and docs/contrib/mac.md follow: links, section numbers, path:line citations (each checked at the commit its page pins), and the shared owners new-model.md now names.
  • crates/hf/src/catalog/rows.rs and tools/catalog.tsv: the two Qwen3.8 folder rows cite docs/dgx-spark.md for their sizes. Both are string literals; the committed print and the catalog stay equal.

Release notes: internal: the README tables, the serving guide and the DGX Spark pages match the code at main e7180ea9.

Code shape

The review reads these first. A box left unticked needs one line of why.

  • 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. tools/catalog.tsv is the committed copy of hf::catalog::print(), and the test below compares the two.

What I ran

Upstream base 7805413cd8fc6de01d051ecc794dc304401f399a, PR head e0b0aa5ca873a640c3cf56372297ca07bfd5c163.

Catalog test, the only code the diff touches (the string literals in rows.rs and the copy in tools/catalog.tsv):

$ cargo test -p bloomery-hf --lib the_committed_print_is_the_catalog
running 1 test
test catalog::tests::the_committed_print_is_the_catalog ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 171 filtered out; finished in 0.00s

--plan on a DGX Spark, for the plan table in docs/dgx-spark.md section 4. Models: nvidia/Qwen3.8-Flash-Next-FP4-Local at b9ce18a6887e18c089fdea8509a33e63429a3300 and nvidia/Qwen3.8-Flash-Next-NVFP4 at fc694b54fb0174e0913e6adf86691ef85a4ead47, checked against the folder SHA256SUMS:

b50dbc52a0c83b0cd2a44a372c1fb6b5e0e6827d22f2611c97d4d030f92f6b28  FP4-Local/config.json
5fa166bbb1cf25adda455117563efa72a2072272001f459eedece131ffc913e1  FP4-Local/model.safetensors.index.json
deef67a61f3311faf051b23dc4192f442c7fee4f9cd2f38cbcbe4da55c763a80  NVFP4/config.json
331ad11d57c8bc374554579977198084e0d4d0933d5b3558f125f6f670aba0e8  NVFP4/hf_quant_config.json
660414e8300728ba80062e6a3c81cb76a65e2ab136ac9e9ceb450ba0c51c3c0d  NVFP4/model.safetensors.index.json
$ ./target/release/bloomery-serve -m "$FP4_LOCAL" --parallel 4 --plan
ctx rule=target ctx=262144 slots=4 total=1048576 limit=262144 (trained)
parallel rule=slots slots=4 slot_ctx=262144 total=1048576 from=flag pass=one
plan ... card=GB10 experts=card ctx_max=262144 host_experts=5878 card_experts=18698
$ ./target/release/bloomery-serve -m "$FP4_LOCAL" --parallel auto --slot-ctx 131072 --plan
ctx rule=set ctx=131072 slots=8 total=1048576 limit=262144 (trained)
parallel rule=slots slots=8 slot_ctx=131072 total=1048576 from=auto pass=one
plan ... card=GB10 experts=card ctx_max=131072 host_experts=12576 card_experts=12000
$ ./target/release/bloomery-serve -m "$NVFP4" --parallel 4 --plan
ctx rule=target ctx=262144 slots=4 total=1048576 limit=262144 (trained)
parallel rule=slots slots=4 slot_ctx=262144 total=1048576 from=flag pass=one
plan ... card=GB10 experts=card ctx_max=262144 host_experts=7140 card_experts=17436

All 16 plans (two folders, eight settings each) exited 0 and match the table in section 4.

Speed numbers in the README tables, measured at main e7180ea9 on one request, greedy, 128 generated tokens, median of three rounds, MTP on. Server and client, as run for the DGX Spark FP4-Local folder (the other models use the same lines with their own -m):

$ env BLOOMERY_DRAFT=mtp BLOOMERY_HOST_ROOM=96G BLOOMERY_MTP_WIDTH=cost ./target/release/bloomery-serve -m "$MODEL_FP4L" --host 127.0.0.1 --port 18731 --parallel 1 --ctx-size 16896
$ python3 tools/sitting/client.py load --port 18731 --ids "$CODE_IDS" --prompt-len 512 --n-predict 128 --count 1 --conc 1 --offset 0 --bound 0 --label fp4l-mtp-0 --temperature 0 --out fp4l-mtp-0-timed-code-fn-client.jsonl --window-plan sitting-windows.json --eos-shift 128

Prefill and decode use server timings; first token uses the client clock. FP4-Local folder, 512 ids, DGX Spark, from the saved run:

code:          prefill 1316.86 tok/s, decode 59.111 tok/s, first token 393.265 ms
English prose: prefill 1651.17 tok/s, decode 54.7548 tok/s, first token 314.392 ms
Korean prose:  prefill 1447.09 tok/s, decode 49.3637 tok/s, first token 358.683 ms

Hardware (if the change is for a machine)

DGX Spark:

$ nvidia-smi --query-gpu=name,driver_version --format=csv,noheader
NVIDIA GB10, 595.84
| NVIDIA-SMI 595.84                 Driver Version: 595.84         CUDA Version: 13.3     |

RTX 5090 machine, for the RTX 5090 README table:

NVIDIA GeForce RTX 5090, 595.99.02
| NVIDIA-SMI 595.99.02              Driver Version: 595.99.02      CUDA Version: 13.2     |

AI help

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

… Qwen3.8 on one Spark, and stale pages follow the code

serving.md is rewritten for a reader who installed the release: sections 1 to 8 are the start, a first request, slots
and context, drafts, placement, memory, settings and running it as a service; sections 9 to 12 are reference (seats,
images and embeddings, every route and field, limits). Each fact is stated once, and the pages that linked its old
anchors point at the new ones.

docs/dgx-spark.md is the user page for a DGX Spark: the release's GB10 archive and arm64 image, the two Qwen3.8
checkpoint folders, slots, context and memory, the MTP draft and speed. Its performance and --plan cells are marked
TBD-SITTING until the next measurement fills them. contrib/dgx-spark.md keeps the port map and points to it.

Stale text fixed: the README's GB10 install (0.3.11 ships the archive and image), the Qwen3.8 long-prompt cut that no
longer excepts drafted slots, the unset draft's yield to a plan that holds no context, the NVMe tier's model list,
an arena on a unified card since the split dial counts the cards' share, and the local-mode lever's name. The old
Spark and RTX 5090 Status rows move to numbers.md with their releases.
…80ea, the Spark page's plan and speed tables follow, and stale citations point at the current code
@github-actions github-actions Bot added dgx-spark The DGX Spark (aarch64, GB10) port documentation Improvements or additions to documentation model The CPU engine and model files: crates/model, models, hf, gguf, tokenizer, jinja tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo labels Nov 2, 2026
@juliankang4
juliankang4 marked this pull request as ready for review November 2, 2026 08:40

@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: No must-fix findings remain.

Non-blocking

⚠ Complete the benchmark evidence: README.md:252. The PR body gives timing output for three FP4-Local Spark cases at 512 ids; the tables cover four models, three prompt kinds and two lengths on both cards. Attach the remaining server/client commands and their output, exact GGUF files and measured source commits to satisfy CONTRIBUTING.md's evidence requirements and make the values reproducible.

Checked

  • Duplicates: no new Rust items. The two edited catalog evidence strings match their committed TSV entries.
  • Complexity: no Rust function bodies changed.
  • Silent failure: 0 added error-handling sites or defaults.
  • Tests: no tests added or changed; mutation review is inapplicable. No build or GPU gate was run during validation.
  • Gates: no thresholds, pins, tests or gate clauses changed.
  • Review rules: missing benchmark evidence remains advisory. No C1–C4 escape applies to this finding; no ledger lessons are in force.

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

@juliankang4

juliankang4 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

@midagedev Thanks for all the reviews this round. The automated review passed, and I do have merge rights here, but documentation is something I think a maintainer should read before it lands, so I have not merged it. When there is a moment, I would be grateful for a look, and if nothing seems off, for a merge.

(AI 코딩 에이전트가 작성한 코멘트입니다.)

@midagedev
midagedev merged commit b0be3ad into midagedev:main Nov 2, 2026
11 checks passed
@midagedev

Copy link
Copy Markdown
Owner

Read the pages: the relative links all resolve at the PR head, and the new Spark page and the serving guide read well. Merged. Thank you.

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 model The CPU engine and model files: crates/model, models, hf, gguf, tokenizer, jinja tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants