Skip to content

docs: dgx-spark.md states the first JIT cost on the Spark's Arm cores (3.2) and answers the fixture header and aarch64 fill questions (3.4, 6) from #13 - #69

Merged
midagedev merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-doc-arm-jit
Oct 12, 2026

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

What and why

docs/contrib/dgx-spark.md 3.2 marks the first JIT cost on the Spark's Arm cores [unmeasured], and your reply asked for the reading from #13 to replace it. The same reply says those readings also close the two fixture questions that sections 3.4 and 6 still list as open, so this answers them too, with the matching open question in local-check.md.

What changes

3.2: one Spark, driver 595.84. A first start of bloomery-serve with Qwen3.6-35B-A3B Q4_K_M and an empty CUDA_CACHE_PATH took 10.5 to 11.8 s to listening, and a later start with the cache in place took 4.1 s. The text gives the start without the cache minus the start with it, 6.4 to 7.7 s (median 6.5 s), as an estimate of the JIT cost, marked [derived]. The first pair's difference is 1.2 to 1.3 s larger than the other two. That extra is not user CPU time (that start's system time was 2.1 to 2.2 s higher), and I did not measure its cause, so the text says so. Beside it, for comparison and not as a bound, the text gives oxart_jit on the binary's whole .oxart section (311 entries) in the same conditions: 8.7 to 8.8 s with an empty cache, which also counts the file read, the context creation and the attribute reads, and 0.4 s with the cache in place, so 8.3 to 8.4 s by the same subtraction. The first start is inside the 10 to 25 s the sentence already cites from README.release.md.

3.4 and 6: fixture generate reads no tensor data from the source, but it opens each source file through the loader's bounds check, which refuses a tensor that ends past the end of the file (crates/gguf/src/lib.rs:957 at e659f4fe). On qwen38, the real shards and the same shards cut at the data offset and grown back to their full length as holes gave the same bytes, and the cut shards left short were refused. No length in between was tried. So a header grown to the file's length as a sparse file is enough, which is what fixture fetch writes, at the size the repo lists. The text adds that the shortest length the check passes is the end of the last tensor, which the header gives ([derived]), and the publish list gains each shard's length. On aarch64 the fill matches the x86_64 pins: the digest test passes with all 12 pinned cases, and fixture fetch glm5next run twice wrote identical bytes, with shard 1 equal to FIXTURE_SHA256. The sentence in 3.4 that called the header question [unverified] is replaced. In section 6 the two items leave the "Still open" list, and its first sentence now names the readings in 3.2 and 3.4 as well as those of section 1.

local-check.md: the fixture paragraph (line 91) says the headers are grown to each file's listed length, because the loader refuses a file too short to hold its tensors. Open question 2 gets an "Answered 2026-10-12, the second half" line in the form of the first half's.

The section 2 line about the host CPU's cost of a graph launch and the sampler is also [unmeasured]. It is a different quantity and the #13 runs did not measure it, so it stays. Section 3.1 is not touched. You have not replied on the 3.1 reading in #13 yet; when you do, its lines can go into this pull request or a separate one, as you prefer.

Code shape

  • No second copy. Documentation only.
  • Model code holds only architecture facts. No code changes.
  • Dead code is gone. The [unmeasured] and [unverified] marks these readings settle are removed, and so are the two items in section 6 and the open half of local-check.md's question 2.
  • No silent failure. No code changes.
  • Comments state what is true now. No code changes.
  • No relaxed gate. No band, tolerance or lint moves.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up. Nothing Rust is touched.

Duplication found or removed (path:line), or "none": none.

What I ran

On the branch, based on main e659f4fe, with tools/contrib-check.sh --tier t0 --only '^check-' (every tools/check-*.sh):

check-arch rc=0 7s
check-comments rc=0 6s
check-defaults rc=0 1s
check-levers rc=0 4s
check-loads rc=0 52s
check-ptx-names rc=0 0s
check-recipes rc=0 520s
check-rustflags rc=0 0s
check-unsafe rc=0 1s
check-waits rc=0 0s
DONE tier=t0 total=10 red=0 wall=591s

This ran on a Mac (the host line reads Darwin arm64) with no GNU timeout, so the units ran unbounded.

The change is Markdown only (3.2, 3.4 and 6 in dgx-spark.md, and two places in local-check.md), so no gate applies. The numbers are not new here: the runs, their conditions and the cold and warm pairs are in the linked comment. I checked the two code citations, crates/gguf/src/lib.rs:957 and crates/model/src/bin/fixture.rs:24-27, at main e659f4fe.

Hardware (if the change is for a machine)

The JIT reading was taken on one DGX Spark (GB10, cc 12.1), driver 595.84, kernel 6.17.0-1032-nvidia, CPU governor performance, load average under 1 before each run, with the binary run on the host, outside the container, so the host driver did the JIT. The fixture work was on aarch64: the build and the digest test ran in the nvidia/cuda:13.3.1-devel-ubuntu24.04 container on main dd187c1d; the two fixture fetch glm5next runs ran on the host with that build's fixture binary; the qwen38 fetch and generate runs ran in the container on main f1b89351. The conditions are in the linked comment. This pull request runs nothing on a Spark.

… (3.2) and answers the fixture header and aarch64 fill questions (3.4, 6) from midagedev#13

3.2: the `[unmeasured]` first JIT cost becomes the reading from midagedev#13: one Spark,
driver 595.84, a first start of bloomery-serve with Qwen3.6-35B-A3B Q4_K_M and
an empty CUDA_CACHE_PATH against a later start with the cache in place. The
difference is given as an estimate of the JIT cost. oxart_jit on the binary's
whole .oxart section, timed the same way, stands beside it as a comparison.

3.4 and 6: fixture generate reads no tensor data, but the loader refuses a
source file too short to hold its tensors, so a header grown to the listed file
length as a sparse file is enough, which is what fixture fetch writes. The fill
on aarch64 matches the x86_64 pins. The publish list gains each shard's length,
and section 6 names the readings of 3.2 and 3.4 and drops the two answered items.

local-check.md: the fixture paragraph says the headers are grown to the listed
length, and open question 2 is marked answered.
@midagedev
midagedev merged commit 90eb18e into midagedev:main Oct 12, 2026
1 check passed
@juliankang4 juliankang4 added dgx-spark The DGX Spark (aarch64, GB10) port documentation Improvements or additions to documentation 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants