Skip to content

docs: dgx-spark.md is the contributor's map in eleven sections, with the numbers the Spark measurements proved wrong struck through beside their measured values - #101

Merged
juliankang4 merged 2 commits into
midagedev:mainfrom
juliankang4:dgx-spark-doc-dgx-spark-rewrite
Oct 13, 2026

Conversation

@juliankang4

@juliankang4 juliankang4 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

Part of #13. This rewrites docs/contrib/dgx-spark.md for a contributor who owns a Spark and reads it for the first
time: it opens with where the port stands and what to do first, and ends with the open items and your answers. Every
number a Spark measurement proved wrong stays in place, struck through, with the measured value and its comment beside
it.

This is the second of the docs rewrites you left to us in
#13 (comment), after the local-check.md one, and it does what
that comment asks. It also takes the rows you offered from #41 and #42 (the card's sm_121 items, the open list and
the P/E row). Where the page says which numbers can be published, it follows the rule of 8fb237f2: a Spark number
with its evidence can be published in the Spark's own table, and a table never mixes cards.

The pull request has two commits, so the number fixes can be read apart from the move.

  1. Numbers only (abc58d22). The section numbers are the old ones. 37 strikes, each with its new value and link
    (table below). The byte term now uses 208.8 GB/s, measured on b289130a, which has gpu: on an integrated device, a decode gemv warp asks L2 for its whole row before the walk #27's row prefetch. The older
    177.5 GB/s is kept beside it as the rate of 04d0c0ae, the build before gpu: on an integrated device, a decode gemv warp asks L2 for its whole row before the walk #27, not struck: the same build read 177.8
    again in the b289130a session. The commit also adds the GB10 ISA row, the 213 of 215 functions with the same SASS,
    the GLM header read and the one-write-in-flight link readings with strict ordering. Section 2's cost table is split
    into a 3090 table and a Spark table, since the Spark side now holds measured values.

  2. Eleven sections (5bb99b6a). The page is reordered:

    1. Where the port stands: one row per phase, its state on 2026-10-13, and what is left and whose it is.
    2. Build and first run on a Spark.
    3. The machine (the old section 1).
    4. Gates and timing on your own Spark. The local mode and timing text now lives in local-check.md sections 3 and
      5. Here only the Spark-specific points remain: the fixture path, the card names, gate-ptx-spill and the A/A ruler.
    5. Decode on one Spark: the cost model against the measurements (the old section 2).
    6. The card (old 3.2).
    7. One pool: the double count and the pool invariant as dgx-spark: P2, a unified machine plans against one pool; the census reads an integrated device's room from MemAvailable #16 landed it (old 3.3 and 3.6).
    8. Models larger than the pool, P4 (old 7), with what was measured.
    9. Several Sparks, P5 (old 8). The design stays in this file. 9.1 to 9.6 are the facts, shape, split, transport and
      first step; 9.7 to 9.9 are marked "Reference" (the derived bands, the scaling criteria, the nodes_scale gate).
    10. Still open: every open item with its owner, then a "Closed" list that keeps the old open list's strikes.
    11. Maintainers' decisions (old 5). Answers 1 to 14 keep their numbers and your wording. Each has one italic status
      line under it. Answers 15 to 21 are from your 2026-10-13 comments, in English.

    Appendix A holds the P0 site map (old 3.1). It also holds the sparkprep table and the order inside P0. P0 is done,
    so the map is kept as a record, and its memory-ordering paragraph now cites the audit.

    The second commit also brings the page up to date with what landed or was measured since b289130a:

Some things are left as they were on purpose:

  • The [derived] bands and criteria of 9.7 and 9.8 are not recomputed. They still use their first inputs (BW 219,
    NVMe 6.77, assumed ρ). A note above them says so. The placement half's nodes_scale derivation script recomputes
    them (answer 20).
  • Your NVIDIA link-facts table (9.1) is unchanged. The fabric and probe numbers sit in a separate table under it.
  • Struck text keeps its original wording, section numbers included, so a struck "section 2" means the old section 2.

Where other docs cite this page by line or old section number, this PR points them at the new sections:
sparkdec.md (4 places), tierengine.md (5), local-check.md (7) and the module comment of
crates/gpu-gates/src/bin/link_probe.rs ("section 8.9" is now 9.6). A doc's citations of its own sections are left to
that doc's pull request. local-check.md also gains one sentence under its open question 1: answer 19 settles it for
S7's devmap clause.

Docs this page now disagrees with, left for you or for their own pull requests:

Numbers struck through. Each new value carries its conditions in the page.

Where (new section) Struck Now Measurement
5, Spark table byte time 8.3 ms at 80 % of 273 GB/s [assumed 80 %] 9.5 ms at the measured 208.8 GB/s on b289130a [derived]; 11.1 ms at 177.5 GB/s on 04d0c0ae #17, #17
5, Spark table rest of the step 2.6 ms or 4.4 ms gaps between kernels 0.076 ms a step; 2.75 ms inside the gemv kernels #17, #17
5, timeline 6.7 to 8.3 ms byte term; the 2.6 to 4.4 ms rest overlapped 9.5 ms (11.1 ms at 04d0c0ae) [derived]; the rest sits inside the gemv kernels as above
5, the one term "our gemv kernels' own rate is still unread" 208.8 GB/s (208.3 to 211.4) on b289130a, inside the expected 200 to 235; 177.5 at 04d0c0ae #17
3 the ISA [unverified] asimd, asimddp, i8mm, bf16, sve, sve2, svei8mm, svebf16, atomics, read on two Sparks #13
8.1 (iii) under (i) "by the 4 KiB translations"; (ii) "[predicted]" (i) 233.3, (ii) 223.6 and 235.1 with WRITECOMBINED, (iii) 157.4 GB/s; 2 MiB pages 159.2 #13
8.1, 7.1, 9.7 the Spark's NVMe rate [unverified] 11.16 GB/s (4 TB Gen5, 1 MiB preads, QD 16); about 4.0 GB/s (1 TB Gen4 DRAM-less, about 1 MB parts, QD 8) #13, #71
9.2 16.8 MB / 11.6 GB/s = 1.4 ms against 16.8 MB / 219 GB/s = 77 µs 16.8 MB / 13.63 GB/s = 1.2 ms against 16.8 MB / 208.8 GB/s = 80 µs [derived] the 3 MiB rail rate (9.1) and section 5
9.2 a link copy of an expert, 0.7 to 1.4 ms at 11.6 GB/s a rail 0.6 to 1.2 ms at 13.63 GB/s [derived] the 3 MiB rail rate (9.1)
9.7 BW 219 GB/s (band 200 to 235) 208.8 GB/s on b289130a (177.5 on 04d0c0ae) #17
9.7 rest 2.6 to 4.4 ms a token inside the gemv kernels (section 5) as above
9.7 GLM Sh 1.4 GB 1.60 GB: shared expert 1.12, dense FFN of layers 0 to 2 0.48, from a header read #13
9.7 S₁ unmeasured on a Spark 1,038.3 and 1,054.5 tok/s, Qwen3.8 UD-Q4_K_XL, 4,087 and 4,092 tokens, v0.3.0 serving defaults, MTP draft on #46
9.7, 10 V4.1's ρ₁ and ρ₂ assumptions two rows: 0.736 and 0.960 (ranked fixed set), 0.943 and 0.994 (LRU) #13
Appendix A P/E row: "the 10 E-cores gate every barrier", "M in P3" no decode or prefill step on the default path uses the pool #41

GLM's A band (4.7 to 8.2 GB) is not struck, since the header read (7.36 GB) falls inside it; the read is written beside
the band, and the open item that called the band wide moves to "Closed".

The other strikes are statements, not numbers. They are [unverified] marks that a run settled: sm_121 PTX (#42),
the direct-link latency and cuStreamWaitValue32 on a NIC-written page (#44), and the protocol's Arm memory order
(#13). Also struck: the libibverbs question,
settled in #44's review, and old "still open" items. The old list's struck BW item now sits in "Closed" with both
rates. The file has 41 strikes after the second commit.

The c_node value on GB10 (0.553 µs, 9.7) comes from
#13 row 6. That comment does not name the
commit. The run was on main 23ee2100 at SM 2,372 to 2,424 MHz, as
#13 records.

Code shape

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

  • No second copy. Local mode and timing are described once, in local-check.md. Section 4 here points there.
    The link figures sit in 9.1's table and BW in section 5; other sections cite them there.
  • Model code holds only architecture facts. No code.
  • Dead code is gone. The old phase table, the "Where it stands" block and the old "Not verified" list are now
    sections 1 and 10. Answered "maintainers first" items are struck or rewritten as their result.
  • No silent failure. No code.
  • Comments state what is true now. The one code comment touched, link_probe.rs:1, names the new section. The
    page states the tree at b289130a, and older citation bases are named in its header.
  • No relaxed gate.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up. (Only a comment line
    changed in Rust; just mac-static below.)

Duplication found or removed (path:line), or "none": docs/contrib/dgx-spark.md 3.4 and 3.5 at b289130a (the
local mode and timing design that local-check.md now holds) are replaced by section 4's pointers.

What I ran

On a Mac with the pinned nightly, at 5bb99b6a (on main 517e0a74). Each line is cut after its
time; the lint step counts 41 warnings, equal to tools/lint-ratchet.txt:

$ just mac-static upstream/main
mac-static: fmt-check rc 0 in 22 s
mac-static: lint rc 0 in 5 s
mac-static: combos rc 0 in 9 s
mac-static: check-arch rc 0 in 33 s
mac-static: check-comments rc 0 in 35 s
mac-static: check-defaults rc 0 in 3 s
mac-static: check-levers rc 0 in 26 s
mac-static: check-loads rc 0 in 5 s
mac-static: check-ptx-names rc 0 in 1 s
mac-static: check-records rc 0 in 21 s
mac-static: check-recipes rc 0 in 75 s
mac-static: check-rustflags rc 0 in 0 s
mac-static: check-unsafe rc 0 in 9 s
mac-static: check-waits rc 0 in 1 s
mac-static: ok

Checks on the text itself:

  • Every relative link in the four changed docs resolves to a file in the tree. No link uses an anchor.
  • Every issuecomment- link this PR adds was fetched with gh api and belongs to the issue or PR it names (25 links).
  • Every strike from the first commit is still in the second (whitespace aside).
  • git grep finds no citation of this page by line number or by an old section number.

No gate was run. The only Rust change is the section number in the module comment at
crates/gpu-gates/src/bin/link_probe.rs:1 ("section 8.9" is now 9.6, "First step, and what it measured", the section
that describes this probe), so there is no gate output, and the review bot will label the PR needs-gpu by its path,
which holds its approval during the release freeze (#97).

Hardware (if the change is for a machine)

None for this change. The measurements it cites were taken on one or two DGX Sparks (GB10, 128 GB, DGX OS 7.6.0,
driver 595.84), one with a 4 TB Gen5 drive and one with a 1 TB Gen4 drive. Each comment linked above lists its
conditions.

AI help

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

…wrong and writes the measured value and its comment beside each (midagedev#13)
…where the port stands to the maintainers' decisions, and the docs that cite it point at the new sections
@juliankang4

Copy link
Copy Markdown
Collaborator Author

컨트리뷰트 체크 완료 했으니 머지합니다

@juliankang4
juliankang4 merged commit 65adbda into midagedev:main Oct 13, 2026
4 of 5 checks passed
@juliankang4 juliankang4 added dgx-spark The DGX Spark (aarch64, GB10) port documentation Improvements or additions to documentation gpu The card engine: crates/gpu*, crates/app labels Oct 13, 2026
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 gpu The card engine: crates/gpu*, crates/app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant