SparkGLM 0.4.0 · Release notes · Versioning. Run ./start.sh --version
for this checkout, or ./start.sh status for the version and image IDs on both ranks.
GLM-5.3-Flash on two or four NVIDIA DGX Sparks, served by the Atlas inference engine. One image supplies TP2 and TP4, Spark and Strict modes, prefix caching, and an OpenAI-compatible API. TP4 supports a switchless chain or an explicitly configured ring. The supplied profiles allow up to four concurrent requests with a per-request limit of the model's full 1M context; a TP2 profile also offers eight slots at 128K.
0.4.0 adds opt-in
DSpine2 (γ=16) speculative decoding (--drafter dspine2 or
SPARKGLM_DRAFTER=dspine2, backed by 0xSero/GLM-5.3-Flash-DSpine) on
Enntity/atlas spark (bb9e2b823), while keeping the Apache-2.0
incoai/GLM-5.3-Flash-DFlash2 (γ=8) drafter as the default. On two DGX
Sparks (SparkModelBench v2 385992b, December 3, 2026,
release scorecard), opt-in DSpine2
raises structured decode +17.8% (110.4 vs 93.7 tok/s), code decode +2.6–5.4%
(71.9 vs 68.2–70.0 tok/s), C8 aggregate concurrency +1.9% (82.5 vs 80.9 tok/s),
and cuts 12-task RigMark Quality wall time 11.0% (383.5 s vs 431.1 s, same
11/12 score), with identical distribution fidelity (1.53137 short / 0.69964
32K NLL) and 24/24 2-hop needles. The tradeoff is ~0.7 GB more resident
drafter memory (~250K fewer KV tokens in the shared pool) and 0xSero's model
card licensing terms (docs/LICENSING.md).
0.3.7 introduced the
Phases 1–4 engine optimizations on Enntity/atlas spark (4d9cccfbb,
head-to-head report,
v0.3.7 scorecard); TP4 profiles and
paths are updated and unit-tested, with live four-Spark qualification pending
four-Spark hardware. Spark, the default mode, uses calibrated FP4 conversions
and DFlash2 (or opt-in DSpine2); Strict preserves the checkpoint's weight formats.
git clone https://github.com/Enntity/sparkglm.git
cd sparkglm
cp .env.example .env # set WORKER to the other Spark's ssh destination (or the other three)
./start.shSparkGLM serves either of two checkpoints of the GLM-5.3-Flash architecture on
the same image. Pick one with --model (or SPARKGLM_MODEL in .env):
| GLM-5.3-Flash | Sage S2.1 Flash | |
|---|---|---|
| Start | ./start.sh (--model glm-5.3-flash, the default) |
./start.sh --model sage-s2.1-flash |
| Checkpoint | nvidia/GLM-5.3-Flash-FP4-Local | Enntity/Sage-S2.1-Flash-NVFP4, our calibrated NVFP4 of internlm/Sage-S2.1-Flash |
| Input | text, images, video | text, images, video |
| Served as | glm-5.3-flash-atlas |
glm-5.3-flash-atlas |
| Status | released | 109/109 live checks on a pair through LLooM; not yet run through ./start.sh |
Both use the same drafter, profiles and modes. Sage needs 0.3.6 or later and
Spark mode (the default); see limits. With
LLooM, the recipe takes the same --model values.
Select MODE=spark (default) or MODE=strict in .env, or run
./start.sh --mode strict for a TP2 pair. The per-node launcher accepts
--mode spark|strict on TP2 and TP4; managed containers use SPARKGLM_MODE,
also spark when unset. Every rank must use the same image, profile and mode.
| Mode | Target execution |
|---|---|
| Spark (default) | Uses calibrated A4 routed decode and DFlash2, with corrected round-to-nearest-even FP4 KDA decode and shared-expert weights. KDA prefill, MLA, dense projections and the vocabulary head retain checkpoint formats. |
| Strict | Preserves checkpoint weight formats and calibrated input scales, with A16 routed decode. Serial by default; the checkpoint's native MTP predictor is an explicit option. |
Drafter weight conversions use corrected rounding too. Spark disables shared-expert TP splitting on TP2 and TP4 because the split's partial-output rounding caused an arithmetic regression. The TP4 profile also disables it in Strict after a matched C4 control corrected an arithmetic answer; TP2 Strict's split setting is unchanged. Unsupported weight formats fail loading instead of silently converting. FP8 KV and prefill activation quantization remain in both modes; Strict is not a promise of bit-identical results across engines or prefill schedules.
For native MTP in Strict, pass --mode strict --strict-mtp to
install/start-node.sh on every rank, or set SPARKGLM_MODE=strict and
SPARKGLM_STRICT_MTP=1 in every managed container. Use a profile with at most
four active/admitted requests (4x1m, 4x512k, or 4x1m-tp4). It retains
prefix caching and the profile's request-context limit. C4 near 1M with a shared
prefix does not mean four independent full-window contexts fit in memory.
start.sh currently exposes mode selection but not the native-MTP option.
Disk cache directories are separated by mode; TP4 also separates chain and
ring directories from each other and from TP2. TP4 sharded KV spill/restore
uses the same --prefix-cache-dir option. Resident-prefix TP4 Strict smoke
and two-cycle disk-restore checks passed. All release profiles protect matched
prefix blocks from being rewritten during another request's prefill. See the
manual launcher instructions.
SparkGLM defaults to the Apache-2.0 incoai/GLM-5.3-Flash-DFlash2
drafter (γ=8). In Spark mode you can opt into 0xSero/GLM-5.3-Flash-DSpine
(γ=16, pinned at 2c0a63b9):
./start.sh --drafter dspine2 # or set SPARKGLM_DRAFTER=dspine2 in .envinstall/start-node.sh accepts --drafter dspine2 on every rank, and managed
containers (including LLooM) set SPARKGLM_DRAFTER=dspine2 alongside
DRAFTER_PATH. SparkGLM automatically downloads the pinned DSpine2 weights,
raises --dflash-gamma=16, and applies its calibrated confidence prior and
TP2 live-width pricing (beta=1.25, tau=0.38, dead_row_ms=2.2).
Measured December 3, 2026 on the same idle two-Spark pair (TP=2, profile 4x1m,
util=0.91, display carveout, 48 GiB NVMe prefix cache) with SparkModelBench v2
(385992b, low reasoning effort; full scorecard):
Metric (medians, n=5 decode / n=3 concurrency & prefill / n=1 quality) |
v0.4.0 · DSpine2 (--drafter dspine2) |
v0.3.7 · DFlash2 (H2H / release card) |
|---|---|---|
| Decode · code (tok/s) | 71.89 (5/5) |
68.22 / 70.04 (5/5) |
| Decode · prose (tok/s) | 40.06 (5/5) |
39.57 / 40.23 (5/5) |
| Decode · structured (tok/s) | 110.41 (5/5) |
93.72 / 93.34 (5/5) |
| Concurrency · C1 / C2 / C4 / C8 (agg tok/s) | 52.54 / 66.49 / 81.15 / 82.45 | 51.88 / 66.12 / 81.11 / 80.91 |
| Staggered C4 · 4×16K cold arrivals (wall, s) | 42.96 (4/4 streams, gap 2.90 s) | 43.21 / 42.77 (4/4 streams) |
| Cold prefill · 8K / 32K / 64K / 128K / 256K (tok/s) | 3,012 / 3,257 / 3,266 / 3,202 / 3,035 | 3,017 / 3,251 / 3,256 / 3,195 / 3,023 |
| RigMark Quality · 12 tasks (300 s budget) | 11/12 (383.5 s) | 11/12 (431.1 s) |
| 2-hop Needles · 16K–128K (24 queries) | 24/24 (222.7 s) | 24/24 (223.8 s) |
| Distribution fidelity · short / 32K NLL | 1.53137 / 0.69964 (0 non-finite) | 1.5314 / 0.6996 (0 non-finite) |
Tradeoffs: DSpine2 uses ~0.7 GB more resident memory per Spark than DFlash2
(~250K fewer resident KV tokens in the shared pool), and its Hugging Face model
card currently lists cc-by-nc-nd-4.0 (referencing incoai's earlier DFlash2
license before incoai's 2026-11-10 relicense to Apache-2.0). Review
docs/LICENSING.md before enabling it.
Measured consecutively on the same idle pair of NVIDIA DGX Sparks (TP=2, dual-rail ConnectX-7 RoCE v2) on December 1–2, 2026 with SparkModelBench v2 (serving lanes at 144d125 with shared trial salt glm53-tp2-h2h-20261201; 12-task quality, 2-hop needles, and prompt-logprob fidelity backfilled at 0272c09 / pinned at 385992b, RigMark protocol 1.3.0, RigMark Quality with alexellis/rigmark-quality#8, low reasoning effort). Alex Ellis and OpenFaaS Ltd publish RigMark and RigMark Quality under the MIT license; Enntity adds staggered C4, 2-hop long-context needles, and prompt-logprob distribution fidelity. Public Leaderboard · SparkModelBench · RigMark · RigMark Quality
This compares full published stacks on identical hardware: SparkGLM serves NVIDIA's QAD-calibrated FP4-Local with FP8 KV (1M context), KindlingAI gr8 v1.2.0 (TUNE=speed) serves exlr8 bit349 (~3.49 bpw) with int4 KV (262,144 context), and MiaAI-Lab 1104 (TensorFold 1.3.0 + 16 patches) serves 4-bpw EXL3 with FP8 KV (1M context).
Metric (medians, n=5 decode / n=3 prefill & concurrency / n=1 quality) |
SparkGLM v0.3.7 | MiaAI-Lab 1104 (TF 1.3.0) |
KindlingAI gr8 v1.2.0 |
|---|---|---|---|
| SparkIndex (0–100, 45% quality & fidelity / 55% serving) | 96.6 | 79.7 | 76.2 |
| RigMark Quality · 12 tasks (300 s budget) | 11/12 (431.1 s) | 11/12 (311.1 s) | 9/12* (308.4 s) |
| 2-hop Needles · 16K–128K (24 queries) | 24/24 (223.8 s) | 24/24 (331.9 s) | 24/24 (290.9 s) |
| Distribution fidelity · short / 32K NLL (Δ vs ref) | 1.5314 / 0.6996 (0.000 / 0.000) |
1.5240 / 0.6962 (-0.007 / -0.003) |
1.5188 / capped (-0.013 / —) |
| Decode · code / prose / structured (tok/s) | 68.2 / 39.6 / 93.7 | 62.0 / 34.5 / 89.7 | 63.8 / 36.6 / 88.2 |
| Decode completion gates | 15/15 | 15/15 | 15/15 |
| Cold prefill · 8K / 32K / 64K / 128K (tok/s) | 3,017 / 3,251 / 3,256 / 3,195 | 1,333 / 1,394 / 1,398 / 1,384 | 1,738 / 1,746 / 1,706 / 1,619 |
| Cold prefill · 256K (tok/s · TTFT) | 3,023 (86.7 s) | 1,361 (192.6 s) | exceeds 262K cap |
| Warm replay TTFT · 8K / 32K / 64K / 128K / 256K (s) | 0.15 / 0.16 / 0.17 / 0.18 / 0.20 | 6.14 / 23.51 / 46.93 / 94.88 / 192.39 | 4.71 / 4.96 / 5.26 / 5.86 / — |
| Staggered C4 · 4×16K cold arrivals (median wall, s) | 43.21 (4/4 streams) | 80.03 (4/4 streams) | 76.59* (3/4 visible) |
| Short-code concurrency · C1 / C2 / C4 / C8 (agg tok/s) | 51.9 / 66.1 / 81.1 / 80.9 | 50.3 / 68.0 / 90.2 / 89.5 | 50.1 / 64.0 / 81.9 / 82.2 |
*KindlingAI gr8 passed grading checks on 9/12 RigMark Quality tasks (failing node-idempotency, go-worker-pool, and statement-redact; upstream rigmark-quality marks model_match=false on all 12 due to its hardcoded Toilgate alias for glm-5.3-flash), rejects prompt-logprob requests past 1,024 tokens (leaving 32K fidelity unverified), and in staggered C4 (ALLOW_THINKING_OFF=1) emitted 400 reasoning tokens and 0 visible content tokens on Stream 2 across all 3 measured rounds. SparkGLM and Mia 1104 both failed only statement-redact. Mia 1104's launcher needed a dual-rail GID fix (NCCL_IB_ADDR_FAMILY=AF_INET + NCCL_IB_ROCE_VERSION_NUM=2 + TF_ROCE_HCA) to keep both ConnectX-7 rails active when one host's PCIe twins used asymmetric GID indices; see v2 quality & fidelity report and serving conditions and scope notes.
v0.4.0 DSpine2 scorecard · SparkModelBench v2 quality, needles & fidelity report · Serving head-to-head report, charts and scorecards · v0.3.7 release scorecard · v0.3.6 scorecard and 512K/1M prefill sweep
Across the 8K–256K standard suite on two Sparks, 0.3.7 raises cold prefill 5–12% over 0.3.6 (3,040–3,278 tok/s, with warm immediate replays at 0.15–0.19 s on 100% prefix-cache hits). The shaded region retains 0.3.6's extended sweep through 512K and ~1M tokens.
Spark mode, GPU clocks uncapped, two repetitions per workload. Every response stopped naturally below the 4,096-token allowance. These are medians, not best runs. The repository cards pair the v0.3.7 TP2 medians above with the retained October 2026 TP4 Ring medians below.
| Workload | TP2 (Oct 2026, tok/s) | TP4 chain (tok/s) | TP4 ring (tok/s) |
|---|---|---|---|
| Prose | 37.489 | 57.145 | 58.328 |
| Code | 67.166 | 104.147 | 106.368 |
| Structured | 89.752 | 137.936 | 141.363 |
TP2 ran the published October 2026 image from a fresh public clone. TP4 ran the qualified RC with identical executable, native libraries, launcher and profile bytes; the published image adds source-provenance metadata only. Both use the same quick RigMark-derived requests, low reasoning effort and timing calculation. Each chain/ring repetition has identical output, reasoning and stream hashes. Ring improves TP4 medians by 2.07–2.48%; two repetitions do not establish statistical significance. All repetitions, configurations and raw outputs.
The October 2026 TP2 Spark qualification measured a cold-64K prefill median of 3,008 tok/s (3,008.119 before rounding; 2,749 at 8K and 2,849 at 32K; receipts). 0.3.7 raises cold 64K prefill to 3,256–3,278 tok/s on the same hardware class.
Retained TP2 Kindling results use the adapted zero-thinking-budget harness,
8x128k, uncapped GPU clocks, and 512/768-token output limits: 80 measured
runs and 193 streams per mode including warmups. These are earlier qualified
measurements, not a rerun of the final release. Spark's shared-expert split
was already off in this profile.
| Workload | Spark (tok/s) | Strict serial (tok/s) |
|---|---|---|
| Prose | 42.194 | 25.759 |
| Code | 70.959 | 25.573 |
| Structured | 91.054 | 25.685 |
| Counting | 98.376 | 25.692 |
| Mixed C4, aggregate | 80.283 | 25.209 |
| Mixed C8, aggregate | 95.081 | 25.184 |
The retained report and all receipts preserve the original arithmetic and capacity failures. The subsequent focused fixes and final qualification resolve those affected checks; the historical report is not rewritten as a pass.
On TP4 ring, one matched native-MTP/serial sample per workload measured 41.531/39.888 tok/s prose, 53.066/39.586 code, and 57.021/39.991 structured, with identical output and reasoning hashes. Those samples precede the final prefix write-protection setting. Final-policy correctness, concurrent native MTP near 1M, and two forced disk-cache restores passed separately. The capacity check used four branches of a shared 1,046,988-token prefix; it does not show that four independent million-token contexts fit. Scope and evidence.
Historical measurements on two DGX Sparks joined by one 200G cable. Rows
marked † are the 2026-10-17 FP4-Local release: RigMark and ToolEvalBench on its image
c8ced64316bf, the other † rows on dev binaries of the same engine. The
unmarked rows ran images built from a fresh clone with the NVFP4 checkpoint. Receipts and caveats:
2026-10-17: FP4-Local, ToolEvalBench, kindling's benchmarks,
the shared engine,
RC4: faster single-stream decode, bit-exact with RC2,
RC2: KV shard, deterministic verify, faster MoE decode,
the display carveout's KV placement,
a faster verify step and cheaper warm turns,
RigMark decode, prefill and staggered arrivals on 2026-10-05,
RigMark short-code concurrency,
prefix cache on disk,
exact kernels and the prefix-cache policy,
index tails and 0.92 memory,
prefix caching
and the first Atlas release
(quality row).
| Workload | SparkGLM (Atlas) | Reference, same pair |
|---|---|---|
| Multi-turn conversation, 30–48K tokens: time to first token on turns 2+ (median) | 0.67 s | 17.6 s with caching off |
| Four concurrent ~204K-token sessions, cached follow-up turns † | 12/12 numbers retrieved (two cut to 3 digits by the probe's token cap) | |
| KV pool shared by all requests (0.91, display carveout, disk prefix cache on) † | 2.42–2.67M tokens (0.3.3, two starts), up to 1M per request; 2.18–2.28M on 0.3.2, 1.87–1.97M on 0.3.1 | 2.34M with the NVFP4 checkpoint, same engine |
| Same greedy output at 1 and 4 concurrent requests † | 8/8 prompts | 0/4 on 2026-10-09 morning |
| Replaying a 35K-token prompt † | 0.38 s (13.4 s cold) | |
| New session sharing a 24K system prompt with earlier ones: time to first token | 15.7 s | 36.2 s with the cache policy off |
| Idle session resuming after another session's 17 turns (median) | 2.5 s | 49.6 s with the cache policy off |
Cold prefill, 32K / 128K random words (kindling's prefill.py) † |
2,645 / 2,733 tok/s (2,886 / 3,002 with 16K chunks) | kindling vLLM TP=2 (published) 2,931 / 2,871 |
| Matrix: C1/C2 at 16K and 32K, C4 at 16K, 400 tokens each, cold (sum of walls) | 132.1 s | vLLM SparkGLM 206.6 s · Mia TensorFold v1.10 166.9 s |
| Staggered C4: four ~16K requests arriving 1 s apart, cold (median of 5) | 49.5 s | vLLM SparkGLM 70.5 s · Mia TensorFold v1.10 60.2 s · Mia EXL3 113.2 s |
| Staggered C4: four ~32K requests arriving 1 s apart, cold (median of 3) | 76.3 s | Mia TensorFold v1.10 100.1 s |
Single-stream decode, kindling's bench.py, code / prose / structured / counting (thinking off, 16 prompts each) † |
72.8 / 44.4 / 99.5 / 112.2 tok/s | kindling vLLM TP=2 (published) 66.2 / 42.6 / 94.7 / 97.2 |
Mixed streams, kindling's bench.py, 4 / 8 at once, aggregate † |
82.6 / 100.6 tok/s | kindling TP=2 (published) 82.6 / 109.6; 89 / 116 remeasured |
| RigMark decode, code / prose / structured (thinking on, low effort) † | 67.9 / 37.0 / 90.8 tok/s | RiNGSiDE vLLM TP2 (published) 56.5 / 33.0 / 83.4 · NVFP4 checkpoint (RC4) 72.3 / 38.3 / 91.7 |
| RigMark on 0.3.3, 2026-11-11: decode code / prose / structured (4,096 tokens, low effort) and cold 16K prefill | 66.0 / 38.1 / 89.0 tok/s, 2,865 tok/s | 0.3.2 with its default drafter, same pair, same day: 62.6 / 34.7 / 81.8 tok/s, 2,753 tok/s |
| RigMark cold prefill 8K / 32K / 64K: time to first token † | 3.21 / 11.89 / 22.67 s | RiNGSiDE 3.56 / 12.94 / 25.66 s · RC4 3.29 / 12.47 / 23.91 s |
| RigMark staggered arrivals, prefill first: newcomer time to first token at 2 / 4 † | 2.64 / 3.36 s | RiNGSiDE 4.70 / 5.15 s · RC4 2.80 / 3.54 s |
| RigMark short code, 1 / 4 / 6 streams, aggregate † | 47.8 / 72.2 / 81.4 tok/s | RiNGSiDE 44.0 at 1 stream, 97.3 at 6 · RC4 47.0 / 70.9 at 1 / 4 |
| Returning to a ~209K-token conversation evicted to disk (prefix cache on disk, 48 GB) | 1.2–1.5 s | about 82 s without it |
Strict JSON (response_format json_schema), ~2,000-token structured answer |
30–50 s, schema-valid | 135–155 s with masked serial decode |
| Strict JSON object with 96 required keys, temperature 0 | 39 s, 59 tok/s, valid | engine killed (out of memory) two releases ago |
| ToolEvalBench, 69 scenarios × 3 trials, temperature 0 † | 91.0 (91 in one trial on the release image) | NVIDIA's model card: FP4-Local 92.4, BF16 91.9 (an earlier 63-scenario version) |
| Quality probe: arithmetic / two-hop 24K needle | 39/40 · 12/12 † (the same as with NVFP4); 491/500 · 24/24 on the 500-item set (NVFP4) | every engine configuration we ran scored 484–495/500 |
These dated measurements do not describe the unified TP2/TP4 release, except
the rows that name a version. 0.3.3's results
compare it with 0.3.2 on the same pair, and
0.3.4's show its rows hold while a
thinking-off request goes from 19–27 s to about 3 s.
0.3.5's cover concurrent streams: four
JSON streams go from 43 to 68 tok/s combined and four free-text streams from
64 to 69, with the same tokens, and
prompts that arrive together prefill in
arrival order, so the first of four 16K-token prompts gets its first token in
5.9 s where it took 11.2 s.
0.3.6 fixes forced tool calls that a
model could answer as text; GLM-5.3-Flash's output is unchanged. Before it
became the release to install it was
installed through LLooM, run in Strict mode and with images, and run on four Sparks,
with output identical to 0.3.5's each time.
0.3.7 merges the
Phases 1–4 engine optimizations (Enntity/atlas 4d9cccfbb), raising TP2
decode 5–8%, cold prefill 5–12%, and KV pool capacity 27% while cutting boot
time from 54 s to 40 s
(release scorecard,
TP2 head-to-head). Rows
not re-run on 2026-10-17 keep their earlier receipts linked above. Against RC4 on the NVFP4
checkpoint, FP4-Local prefills 2–5% faster and RigMark decode is 1–6% slower:
the QAD weights change how often the drafter's proposals are accepted, so
decode speed is not an engine-only comparison
(details). Kindling's figures are for
their vLLM recipe with the NVFP4 checkpoint; ours ran their benchmark scripts
against FP4-Local (details). Our
profiles prefill in 8K chunks: 16K chunks are faster (about 7% on 0.3.3) but cost more than half the KV pool. Known gaps and open questions
are in docs/LIMITATIONS.md.
- Two DGX Spark (GB10, 128 GB) systems joined by direct ConnectX-7 links, or four systems connected as a switchless chain or ring. Each selected RDMA rail needs an IPv4 RoCE address and a matching link to its neighbour. A dual-rail ring needs both rails on the closing rank 3–rank 0 link too.
- Docker with the NVIDIA runtime on every node. The TP2
start.shlauncher also needs passwordlesssshto its worker, whose user can rundocker. - About 190 GB free on each Spark: the checkpoint takes 177.5 GB (165.3 GiB)
and the drafter 2 GB. The download is made once and copied to the other
Spark over the cable. No on-disk conversion is needed for FP4-Local. (The earlier NVFP4 checkpoint,
which
.envcan still select, takes 204 GB plus a 16 GB overlay.) - Nothing else using the GPUs' memory. GB10 memory is shared with the host, and the engine uses most of it.
- The GPU clock capped on every Spark: run
./start.sh clock-caponce (it asks forsudoon each). Uncapped, a long cold prefill can power a Spark off with nothing in any log. The cap costs about 3% of raw matmul throughput (results).
Run it on the Spark that will serve the API (rank 0). Each step is skipped when already done, so rerunning it just restarts the engine.
start.sh serves two Sparks (TP2) or four (TP4): WORKER in .env names the
other one or the other three. With four, it reads every Spark's ports and finds
whether they are cabled as a chain or a ring, so the order of the hosts doesn't
matter; a chain must start here, at one of its ends. TOPOLOGY=chain leaves a
ring's closing link unused.
Manual TP4 setup describes
the per-rank rails.
- Image. Pulls
ghcr.io/enntity/atlas-sparkglm:<tag>, whose tag is the git tree ofinstall/, so the image always matches your checkout. If it isn't published orBUILD=1is set, it builds the image from source instead (install/build.sh: Atlas at the commit pinned ininstall/atlas-source.json; 30–60 minutes cold). It then pulls or copies the image to the other Sparks. - Weights. Downloads
nvidia/GLM-5.3-Flash-FP4-Localand theincoai/GLM-5.3-Flash-DFlash2drafter at pinned revisions, and copies them to the other Sparks. It useshfwhen installed and a throwaway container otherwise. - Overlay, NVFP4 checkpoint only. FP4-Local needs no on-disk overlay. If
.envselects the NVFP4 checkpoint (below), this step converts the 864 BF16 MTP matrices Atlas needs to NVFP4 in an overlay on each Spark and verifies every payload (about a minute;install/convert.sh). - Serve. Starts the other ranks over ssh, then rank 0, and waits for health (about 2.5 minutes), then answers one smoke-test question.
Before pulling, downloading or starting anything, it checks that
gpu-clock-cap.service is active on every Spark and stops if not
(CLOCK_CAP=0 skips the check).
Other commands: ./start.sh clock-cap | stop | status | logs [worker [HOST]] | build | download | convert.
The API listens on rank 0's loopback, http://127.0.0.1:8893/v1, model
glm-5.3-flash-atlas, with no authentication. Put your own authenticated
proxy in front of it before exposing it.
curl -s http://127.0.0.1:8893/v1/chat/completions -H 'Content-Type: application/json' -d '{
"model": "glm-5.3-flash-atlas", "max_tokens": 2048,
"messages": [{"role": "user", "content": "Write a haiku about two small computers."}]}'Streaming, tool calls, JSON and structured output, images and short videos
are supported. GLM's checkpoint template opens reasoning whatever a request
says; its default is Max effort, with low/high selected through
reasoning_effort. From 0.3.4, Spark mode serves a request that turns
thinking off (chat_template_kwargs.enable_thinking: false or
reasoning_effort: "none") at Low effort under a 256-token cap, which in
practice is a few tokens of reasoning. Strict mode answers it as the
reference server does, at Max effort with no limit; THINKING_OFF=low or
reference in .env chooses either. Other requests get no reasoning cap.
max_tokens includes reasoning and can end a request before the answer
appears; an explicit thinking-token budget can cap the reasoning section.
See behavior limits.
For serial/speculative comparisons, /v1/completions accepts
disable_mtp: true. Blocking completions can request return_token_ids: true
for exact generated IDs in choices[].token_ids; streaming with this option
is rejected. Both default to false. Engine details
explain their limits.
When an agent repeats the same tool call and gets the same result, the engine adds a repeat notice to that result and lets the model think harder on that turn; it no longer blocks tool calls, which had left the model narrating the action it meant to take (RC4.2).
A tool-call guard, on by default, withholds tool calls
that match recognizable data-exfiltration patterns (cloud metadata probes,
listed callback hosts, credential transfers) and returns a fixed refusal. It
is a bounded pattern filter, not a network sandbox; TOOL_GUARD and exact host
exceptions are set in .env.
Profiles (PROFILE in .env):
4x1m(default): up to four requests with up to 1,048,576 tokens each, the model's full window.4x512k: up to four requests with up to 512K each.8x128k: up to eight requests with up to 128K each, for more concurrent short work.4x1m-tp4: the TP4 profile, the default whenWORKERnames three Sparks; four sequences, up to 1M tokens per request, with memory utilization 0.72. See the TP4 limits.
The context limit applies to each request; it does not reserve that much KV for every concurrent slot. At the TP2 pool size (2.4–2.7M tokens on 0.3.3), four full 1M-token requests cannot fit together. Requests wait when the pool lacks room.
All requests share one FP8-latent KV pool that also holds the prefix cache.
The figures in this section are historical TP2 measurements; release
capacity must be read from its own startup and load-test receipts.
For the TP2 launcher, the KV cache is split between the two Sparks (KV_SHARD, on by default): each
stores the latents of half the blocks, so the pool holds about 1.8x the tokens,
and the output is bit-identical to the unsplit pool's. On Sparks that run
nothing else, at GPU_MEMORY_UTILIZATION=0.91 with the display carveout and
the disk prefix cache (both below), the pool is 2.4–2.7M tokens with
FP4-Local on 0.3.3 (151,242–166,564 blocks over two starts; 0.3.2 holds 136,362–142,448, about 2.2M,
and 0.3.1 116,958–123,298, 1.87–1.97M). The 2.66M measured on 2026-10-17 predates the vision tower that
takes a whole video group on the encoding rank. Four concurrent 204K-token sessions left
rank 0 at 3.3 GB free at worst. Above
0.91, real traffic took our rank 0 below 1 GiB free
(docs/LIMITATIONS.md). Requests that don't fit wait for
room. Prefix caching keeps the 16 most recent conversations' recurrent state
warm.
nvidia/GLM-5.3-Flash-FP4-Local
@ 76348ddb is NVIDIA's quantization-aware distilled release: routed experts
in NVFP4 with losslessly compressed block scales, the KDA projections, dense
MLP and lm_head in MXFP8, the MLA projections and shared experts in FP8 with
128x128 block scales, and the MTP layer and vision tower already quantized. It
is 25 GiB smaller than NVIDIA's earlier NVFP4 release, so the KV pool gains
about 13%, and it needs no overlay.
The unified release selects precision through Spark and Strict modes. Both use checkpoint input scales. Strict keeps native projection weights and A16 routed decode; Spark permits the selected FP4 KDA/shared-expert conversions with corrected rounding and A4 routed decode. MLA, dense projections and the vocabulary head remain native in both. These policies replace the earlier blanket requantization and the intermediate native-format-only candidate. The current release evidence is separate from the 2026-10-17 historical measurements, which do not describe these mode presets. See fidelity limits.
The installer retains its earlier NVFP4 checkpoint override. It is outside
the unified Strict/Spark release qualification; required native-format checks still
apply at load. Prior prompt-logprob comparisons are historical.
To select it, add both lines to .env and rerun
./start.sh; it downloads the checkpoint and converts its overlay:
CHECKPOINT_REPO=nvidia/GLM-5.3-Flash-NVFP4
CHECKPOINT_REVISION=423acf37583782c51c142d145aef733d72943d93The same two lines select another GLM-5.3-Flash checkpoint, if it is laid
out as the engine loads it. They apply to --model glm-5.3-flash only; Sage is
--model sage-s2.1-flash (Two models).
TP4 now supports sharded KV spill/restore through
install/start-node.sh --kv-shard --prefix-cache-dir DIR on every rank,
with separate TP, topology and mode namespaces. The
TP4 Strict storage check passed two
eviction/restore cycles on all four ranks with exact cold/warm native/serial
outputs. It used a 2,048-block diagnostic GPU pool to force eviction and the
normal 48 GiB combined disk tier. The measurements and capacity figures
below are historical TP2 results.
When the KV pool fills up, the prefix cache drops the conversations used
least recently, and one that comes back is prefilled again from the start.
With PREFIX_CACHE_DIR set, each Spark writes what it drops to its own disk
instead and reads it back when the conversation returns. In one pass on
2026-09-30, with 25K-token conversations pushed out of the cache, the time to
first token of turn 2 went from 10.7 s to 0.91 s and the answers were
byte-identical. Each restore read its blocks in about 75 ms (7.8 GB/s). With
the KV shard (the default) each Spark spills and restores only the latents it
owns: on 2026-10-09 a 25K-token conversation came back in about 40 ms per
restore (5.2 GB/s), and turns 2-4 after three restores were byte-identical to a
run that never evicted, token logprobs included.
To turn it on, add to .env and rerun ./start.sh:
PREFIX_CACHE_DIR=/srv/sparkglm/prefix-cache # same path on every Spark, on its own disk
PREFIX_CACHE_GB=48 # GiB per Spark, 16-100 (default 48)start.sh creates kv/ and ssm/ in the directory on every Spark, refuses a
directory on tmpfs or without that much space free, and mounts it into each
rank. Half of the size holds KV blocks (6.66 KB per token unsplit, 3.7 KB per
Spark with the KV shard; 24 GiB holds 3.9M or 6.9M tokens). The other half holds the 78 MB
recurrent-state snapshots a restore starts from (24 GiB holds 330). A restore
needs both, so at 25K tokens the even split keeps about 150 conversations with
two snapshots each.
What it costs, per Spark:
- KV pool. The engine sets host memory aside for the tier and takes it
out of the pool: 236 MiB whatever the size (staging, and two snapshot
slots), plus 640 B for each 16-token block the KV half can hold, which is
6.2 MiB per GiB. At the default that is 383.8 MiB. On our pair at 0.93 the
pool lost about 4,000 of its 104,000 blocks, about 60K tokens (4%); at the
default 0.88 the same 60K tokens are about 10% of the pool. With the KV
shard each block costs each Spark about half as much memory, so the same
reservation takes about twice the tokens: at 0.91 with the carveout the pool
goes from 163,177 to 147,480 blocks (2.61M to 2.36M tokens). Each GiB added
to
PREFIX_CACHE_GBcosts about 500 more tokens. The fixed part is most of the cost, and 48 is the size we measured. - Disk. The KV half is reserved when the engine starts; the snapshot half fills as needed. Every token pushed out of the pool writes 6.66 KB. Nothing is kept across a restart: the engine deletes its files as soon as it has them open, and clears leftovers from a crash when it starts.
Each DGX Spark's firmware sets aside 2 GiB of memory for the display (the
DISPLAY_FRM carveout). Linux never sees it; the NVIDIA driver manages it as
the display's own memory pool, and on a headless Spark the display uses only
a few MiB of it. With DISPLAY_CARVEOUT=1, the engine asks the driver for
the rest (about 2042 MiB) and borrows it for the KV cache: it places whole
per-layer latent KV pools there, so the pool grows while system memory stays
exactly as it was. Because the driver hands it out, it never overlaps what
the display uses, and the GPU caches it like ordinary memory
(results/2026-10-14-vision-prefix-cache).
On our pair at 0.91 GPU memory utilization, the pool grows from 70,501 to 86,005 blocks per Spark (+19.4%, about 1.13M to 1.38M tokens). Cold prefill at 32K and 64K stays within 0.7% of the carveout off, and greedy outputs are unchanged.
To turn it on, add to .env and rerun ./start.sh:
DISPLAY_CARVEOUT=1 # default off; set 0 or delete the line to roll backWhat it takes:
- No extra container privilege. The engine starts through
spark display-carveout, which allocates the memory from the driver, takes a host lock and then starts the server. - One user per Spark. The lock in
/run/lock/sparkglmlets one process per host hold the carveout.start.shcreates the directory. - Driver. Every NVIDIA open GPU kernel module release from 580.76.05 to 615.78.08 provides it; the engine checks what the driver gives rather than its version. If the driver cannot lend it, the engine serves without the carveout and logs why.
- A headless Spark. The engine takes what the display is not using when it starts; a display attached later may find no room for its surfaces. We run ours headless.
This is SparkGLM-only: it ships in the SparkGLM layer of the engine fork, not
in the upstream Atlas series. The idea comes from kindling-spark-os's
dispram (see Credits).
Run the pinned SparkModelBench suite through
bench/run.sh. It runs Alex Ellis’s RigMark and RigMark Quality with pinned
settings, plus SparkGLM’s staggered C4 scenario.
Run the release suite · Archived benchmark commands
- By hand: every step of
./start.shas a separate command, in docs/INSTALL-MANUAL.md. - With LLooM: the recipe
linux-nvidia-dgx-spark-glm53-atlasputs SparkGLM behind LLooM's authenticated gateway, on two Sparks or four, with the same--modelvalues (docs/LLOOM.md).
Atlas is built from the public Enntity fork
on branch spark, currently pinned at commit
bb9e2b823e9bee777d072d8888349fa7ee3f7fd9 (tree
0f1025d0bca38c64c2c108d227e6eabea4e8105a) for SparkGLM 0.4.0. The exact
commit, tree, and kernel target (glm-5.3-flash) are pinned in
install/atlas-source.json; install/build.sh
refuses any other tree.
spark tracks upstream Atlas-Inf/atlas
main (merged through cb4dcf9a7) plus Enntity's DGX Spark optimizations and
serving fixes. Engine behavior, release history and switches
document each release pin, the Strict and Spark precision policies, and the
switches set by each profile. Historical
unified-release provenance,
shared-engine and
vision-prefix-cache
comparisons retain their original identities and scope.
SparkGLM started as an Atlas research project: GLM-5.3-Flash on two DGX Sparks with the Atlas engine. vLLM was far ahead at the time, so we moved to it. On vLLM we started from an early version of MiaAI-Lab's two-Spark EXL3 recipe and reworked it, mostly for concurrency. We then decided there was a lot we needed to fix at the engine level, and went back to Atlas. Atlas is now the only engine.
The vLLM version is retired. It is preserved at the tag
vllm-final and the
branch archive/vllm, including its results and qualification records.
The engine options SparkGLM turns on take their ideas from other projects. The code is ours unless docs/LICENSING.md says otherwise.
| Option | Idea from |
|---|---|
ATLAS_DFLASH_CONF_WIDTH |
knapcio's draft-shape truncation, GLM_DRAFT_TRUNC (knapcio/GLM-5.3-Flash-4x-DGX-Spark-TP4), whose calibration table (MIT) seeds ours; and the survival prefix product of D-Cut (arXiv 2607.14647) as Atlas-Inf implements it for MTP. We added online calibration, a fixed row price and a periodic full-width probe. |
ATLAS_GLM_DRAFT_TP |
MiaAI-Lab's DFLASH_DRAFT_TP (GLM-5.3-Flash-EXL3-2x-DGX-Sparks) and TensorFold's two-rank drafter (ashhart/TensorFold) |
ATLAS_GLM_PC_EVICT |
Reederey87's prefix-cache eviction policy (glm53-flash-exl3-2x-dgx-spark) |
ATLAS_GLM_PC_BRANCH |
Marconi's branch-point admission (Pan et al., MLSys 2025, arXiv:2411.19379) |
ATLAS_GLM_STRICT_SPEC |
vLLM's speculative decoding with structured outputs (#14702) and its reasoning-boundary fix (#44297): per-position grammar masks over the draft window, the bonus row included, with the matcher rolled back after rejected drafts. We added per-rank masking for the vocab-split verify head. |
ATLAS_GLM_CANONICAL_VERIFY |
Batch-invariant kernels, from Thinking Machines Lab's "Defeating Nondeterminism in LLM Inference" (Horace He, 2025): a row's result must not depend on the rows computed beside it. We apply it to every op a DFlash verify row touches, at every verify width. |
ATLAS_KDA_FLASH_PREFILL (FlashKDA's FP32 recurrence) |
vLLM's FlashKDA fork keeping the recurrent state in FP32 fragments between tiles, narrowed to BF16 only for the MMA operand (vllm-project/FlashKDA#13, Matt Mastracci). We also keep the state FP32 across calls, split every MMA operand into BF16 hi/lo pairs and compute the gate, beta, inverse and sums in FP32, to reduce deviation from the FP32 token recurrence; the exact native library and model-level behavior require their own qualification. |
DISPLAY_CARVEOUT |
kindling-spark-os's dispram (kindlingai/kindling-spark-os, by mmastrac, coffee-the-dev and adapt-ai-systems; they credit an earlier NVIDIA developer forum post by emihuang). Our implementation was re-derived from the open GPU kernel modules and needs no daemon. |
Measurement: RigMark by Alex Ellis
(run from othexmr's fork with the staggered-arrival suite), the published
RiNGSiDE
figures, kindlingai/glm-5.3-flash-gx10's
bench.py and prefill.py and its published figures,
tool-eval-bench by
SeraphimSerapis, mmastrac's
published figures and benchmark method (for earlier receipts), and MiaAI-Lab's
decode prompts.
AGPL-3.0-only (LICENSE); third-party components keep their own
licenses (NOTICE, docs/LICENSING.md). The model
weights are not distributed here. FP4-Local is under the NVIDIA Open Model
Agreement. The default DFlash2 drafter is Apache-2.0 at the pinned revision
(its publisher relicensed it on 2026-11-10; earlier revisions were CC BY-NC-ND 4.0).
The opt-in DSpine2 drafter (0xSero/GLM-5.3-Flash-DSpine) currently declares
CC BY-NC-ND 4.0 on its model card and is only downloaded when you opt in. Check
each checkpoint's terms before downloading.


