14 KiB
Strata on the NVIDIA DGX Spark (Linux, ARM64)
The DGX Spark is a small desktop box with a GB10 chip: a Blackwell GPU (compute capability 12.1, 48 SMs) and 20 Arm CPU cores that share 128 GB of memory. Strata 0.2.7.1 runs Qwen3.8-Flash-Next on it. This page says what works, how to install it, what the Spark does with its memory, and how the speeds were measured. It was tested on one Spark (Ubuntu 24.04, driver 580.173, CUDA 13.0). Nothing here is known to work on another ARM machine.
What works, and what does not
- Works: Qwen3.8-Flash-Next IQ3_S and the NVFP4 GPTQ pack (64K context, every expert in the GPU's cache),
the Terminal (
strata launch,strata update,strata serve) and the engine packages of the signed feed. - Not built for ARM: the desktop app (no AppImage; use the Terminal), the HIP, SYCL and CPU-only engines, and the Q2_0 and Gyro packs, whose CPU kernels are x86-only (the engine refuses them at start). Picture reading is compiled in and was not tried on the Spark.
- Not tested: contexts above 128K, more than eight chat slots (four and eight were measured: "Several chats at once" below), a long soak.
strata doctor --livelists the GB10 with no memory figure, becausenvidia-smireports none for it.
Install with the Terminal
curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh
strata launch
install.sh unpacks the Terminal into ~/.local/share/strata (no administrator rights) and checks the release's signed feed. strata launch
fetches the linux-aarch64 engine package, shows what each model needs, downloads the one you choose and starts it. Pick Qwen3.8-Flash-Next
IQ3_S (84 GB download) or the NVFP4 pack. The engine package needs glibc 2.39 or newer
(Ubuntu 24.04, DGX OS 7) and NVIDIA driver 580.65 or newer.
Install from a source checkout
./setup.sh --setup --family qwen --model IQ3_S --context 65536 --vision no --yes --no-start --data-dir ~/Strata-data
./setup.sh --setup --family nvfp4 --model NVFP4 --context 65536 --vision no --yes --no-start --data-dir ~/Strata-data
--data-dir must be a folder you can write (the default, next to the checkout, may be under /home, which a normal user cannot create).
Setup finds the GB10, calls it unified memory, takes the engine from the feed (or compiles it with engine/spark/build_engine.sh when the release
has none) and writes the run config with the settings measured on this part:
| Setting | Why |
|---|---|
--mmap-experts |
the experts are read from the model files in place, so the GPU's cache holds all 24,576 of them instead of a second copy in RAM |
--prefill auto:32768 |
a 32,768-token prompt chunk; the automatic 8,192 measured 2 to 6% slower here |
--mtp-q4 all |
the draft layer as 4-bit copies: +3.5% decode, the answers do not change because the target checks every draft |
--mtp-hnorm stream |
one norm per hyper-connection stream in the draft layer: draft acceptance 0.60 to 0.63, +4.3% decode |
Setup prints --draft-vocab en as a tip and does not set it: it measured +3.1% decode on English prompts, and it would cut the Chinese,
Japanese and Korean drafts.
Start a model with its run script (./run-iq3_s.sh) or ./setup.sh.
Build the engine yourself
You need the CUDA 13.0 toolkit (/usr/local/cuda; DGX OS has it), cmake, ninja and Python 3.10 or newer.
python3 -m venv terminal/.venv-build
.venv-build/bin/pip install -r terminal/requirements.txt -r terminal/requirements-build.txt
PATH="$PWD/.venv-build/bin:/usr/local/cuda/bin:$PATH" PYTHON="$PWD/.venv-build/bin/python" JOBS=16 sh engine/spark/build_engine.sh
cp -r out-spark/engine ./engine
About 3 minutes for the engine. out-spark/engine/ holds strata, strata-vision, the CUDA libraries and a BUILD.json.
BUILD_VISION=0 leaves the picture reader out. tools/packaging/build_cuda_linux_aarch64.sh runs this build and makes the engine package
for the feed (packaging/README.md). A model on a Q2_0 pack cannot run: its CPU kernels need AVX-512.
What the Spark does with its memory
The GPU's memory and the CPU's are the same 121.6 GB, so a model's experts are held once. With --mmap-experts there is one copy: the model
file's pages, which the GPU cache uses.
| IQ3_S | NVFP4 GPTQ | |
|---|---|---|
| Expert bytes | 50.3 GB | 68.0 GB |
| Expert cache | 24,576 of 24,576 slots, 46.84 GiB | 24,576 of 24,576 slots, 63.29 GiB |
| n-gram table | 28.8 GB, locked in RAM (--ple-io ram) |
51.2 GB, read from the SSD |
| Context | 64K, 8-bit KV, 32,768 cells streamed | same |
| Free memory at start | about 1 GiB | about 1.2 GiB |
The NVFP4 table does not fit in RAM beside the page cache the 68 GB expert file needs. Locking it measured 137 tok/s on a 4K prompt and 26 tok/s decode, against 1,252 and 39 without. Leave it on the SSD (setup does).
Speeds
Measured on the release-candidate engine package of 0.2.7.1 with terminal/tools/dgx_bench.py: fresh 4K, 16K and 32K prompts at temperature 0, 256-token
answers, 64K context, the model's own run config, four samples a cell in two blocks (on, off, off, on), medians. "Table off" is
STRATA_SM121_PERF=0. One Spark, 27 October 2026; the figures move a few percent between sessions.
| Model | Table | Prompt tok/s (4K / 16K / 32K) | Decode tok/s (4K / 16K / 32K) |
|---|---|---|---|
| Qwen3.8-Flash-Next IQ3_S | on (default) | 1,296 / 1,680 / 1,735 | 45.5 / 46.5 / 46.5 |
| Qwen3.8-Flash-Next IQ3_S | off | 1,203 / 1,416 / 1,276 | 48.5 / 45.3 / 45.2 |
| Qwen3.8-Flash-Next NVFP4 | on (default) | 1,408 / 1,670 / 1,698 | 42.8 / 40.5 / 40.1 |
| Qwen3.8-Flash-Next NVFP4 | off | 1,156 / 1,350 / 1,353 | 41.0 / 41.2 / 38.4 |
The table makes prompts faster: IQ3_S 1.20x over the three sizes (90% interval 1.12 to 1.31; 1.08x at 4K, 1.19x at 16K, 1.36x at 32K), NVFP4 1.24x (1.14 to 1.36). It does not change decode speed in this check: 0.996x (0.97 to 1.02) on IQ3_S, with the 4K cell 0.94x, and 1.02x (1.00 to 1.05) on NVFP4. The first run of the port (26 October) had measured +5% each for the two decode switches; this check did not see it.
Several chats at once ("parallel" is 4 on a Spark for strata launch; the setup script leaves it off): IQ3_S, 2K-token prompts, 128-token cap,
the aggregate tokens per second over all clients: 8 clients 35.6, 16 clients 41.7, 32 clients 47.3 at 4 slots; 32 clients 54.2 at 8 slots. With
a prompt of its own and a hidden code for each client, every answer named its own code and nobody else's (8 clients at 4 slots, 16 clients at 8
slots), and none failed or hung.
The six speed defaults of this part
On a GB10 the engine switches on six settings that were measured here, and prints them at every start. STRATA_SM121_PERF=0 (or
STRATA_DEFAULTS=026, which gives back everything 0.2.7.1 changed) turns the whole set off; a switch you set yourself is kept.
| Switch | What it does | Measured on this Spark |
|---|---|---|
STRATA_PF_FUSED=1 |
the fused IQ prompt kernels | IQ3_S prompt +10 to 27% |
STRATA_PF_FUSED_KQ=1 |
the same fused prompt kernels for the K-quant experts of Unsloth's UD-Q4_K_XL files (Q4_K or Q5_K gate/up, Q5_1 or Q8_0 down), instead of llama.cpp's MMQ; STRATA_PF_FUSED_KQ=0 gives them back |
UD-Q4_K_XL prompt 1.10x at 2K, 1.26x at 4K, 1.18x at 8K, 1.53x at 20K (median of 10 paired runs; single runs scatter between 0.5x and 2x) |
STRATA_PREFILL_NVFP4=w4a4 |
NVFP4 prompt matrix product with FP4 activations | NVFP4 prompt +16% |
STRATA_HC_UPMIX=1 |
the hyper-connection read's up projection and mix in one kernel | decode +5.4% |
STRATA_SIDE_MIXER=2 |
input-only QSA/GDN work on branches of the verify graph | fixed-work IQ3_S decode +6.7% (30 October) |
STRATA_SPEC_COST=1 |
the draft window follows what a draft costs | decode +4.7% |
Two more settings of the 12.0 cards' set are on for a GB10 after 0.2.16, in the engine's own kernel rules (they are not in the printed list):
STRATA_ATTN_DAILY=1 (the decode attention of the verify windows) and STRATA_GR_DOWN_TG=2 (the hyper-connection down read, two tokens a block row; the
GB10 has 48 SMs). Both give the same bits as the kernels they replace (IQ3_S, six prompts, first-token logits and generated tokens equal to the old
path's, and the same under the BASE-05 token baseline). IQ3_S with the DFlash2 drafter, three paired rounds on a rented Spark, decode tokens/s against
the old default (chat / code / JSON / agent turn): STRATA_ATTN_DAILY +0.3 / +0.9 / +0.7 / +1.2%, STRATA_GR_DOWN_TG -0.1 / +0.7 / +1.1 / +0.9%
(JSON and agent turns faster in 3 of 3 pairs for both). The other switches of the 12.0 set (STRATA_GU_SWIGLU, STRATA_GR_UP75, STRATA_GR_UP_WIDE,
STRATA_SMALL_UNR, STRATA_DF_PDL, and the load ordering STRATA_GR_V3_PF) measured level or slower on this part and stay off here; setting one
yourself still works. STRATA_SM121_PERF=0 (or STRATA_DEFAULTS=026) turns the two new ones off with the rest of the GB10 set.
What the first three switches do to the answers. The fused prompt path and the FP4 activations round differently from the paths they replace,
and the other three do not touch the text (the fused hyper-connection read gives bit-identical logits; the side mixer changes only graph scheduling;
the cost-aware window only chooses
which drafts to try, and the target checks every draft). 24 short greedy prompts gave 24 identical answers on IQ3_S and on NVFP4. On
24 long prompts (1.5K to 24K tokens, the first-token logits compared with the switches off, STRATA_DUMP_FIRST_LOGITS) the distribution
does move: IQ3_S mean KL 0.019 (largest 0.082), NVFP4 0.032 (largest 0.126); the most likely token changed on 2 of 24 prompts for each, in
IQ3_S's case a near tie both times (0.20 against 0.20, 0.15 against 0.14); and a 24-token greedy answer stayed the same on 1 of 6 prompts. Two runs
of the same setting gave identical logits, so the difference is the switches, not noise. All of the IQ3_S difference comes from the fused
prompt path, and all of the NVFP4 difference from w4a4. On the 61-task quality suite (long-document retrieval, extraction of up to 72 exact rows, summaries, code, JSON, agent loops with tools), run through the server with the switches on and off: IQ3_S passed 56 tasks on and 51 off, NVFP4 56 on and 52 off. Retrieval found all 63 facts in every run, and no agent loop made an invalid tool call. The extraction facts were equal on IQ3_S (621 of 642 both ways); on NVFP4 one 40-row register lost a row with the switches on (616 against 621 of 642). One summary in each model gained or lost a flagged name or figure. Answers differ in wording on 21 of 61 tasks (IQ3_S) and 25 of 61 (NVFP4), and the wins and losses go both ways, so read the suite as "no loss we could measure", not as an improvement. The same setting run twice gave identical answers, so every difference comes from the switches. If you want the answers of 0.2.7, set STRATA_SM121_PERF=0: you keep the other
Spark settings and lose the prompt speed-up. For the K-quant switch (UD-Q4_K_XL, 48 prompts of 2K and 4K tokens, 256 forced tokens each) the forced-token KL against the FP16 prompt path's text is 0.895 times that of MMQ (interval 0.81 to 0.99; the most likely token agrees with the FP16 path in 96.3% of positions against 95.7%), and the same text came out twice, byte for byte, on both sides.
With "parallel": 4 (the default) the original four-switch set adds up: 32 clients at 2,000-token prompts read 41.3 tok/s with those four on
and 35.7 with all four off. The side mixer was not part of that check. At "parallel": 8 the two original decode switches cost about 3.5%
each; set STRATA_HC_UPMIX=0 STRATA_SPEC_COST=0 there.
Hy4-Flash across two Spark hosts
Hy4-Flash can split its routed experts between two Spark GPUs. The coordinator reads standard input and owns attention, KV, Engram, vision and sampling. The second rank loads its share of the routed experts. The coordinator sums the returned contributions in router slot order.
Build with CUDA 13, MPI, NCCL and the zstd headers and library. Use the same NCCL version at build time and runtime. Put the binary and the verified model pack at the same paths on both hosts. Place the Engram and optional vision shards on the coordinator.
cmake -S engine/src/hy4flash/run -B build-hy4 -G Ninja \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=121-real \
-DSTRATA_HY4_DISTRIBUTED=ON
cmake --build build-hy4 --parallel
ctest --test-dir build-hy4 --output-on-failure
cmake --build build-hy4 --target strata-hy4-slot-order-test
./build-hy4/strata-hy4-slot-order-test
Configure the MPI hosts and NCCL interface for the link between the Spark units.
Run one rank per host with one visible CUDA device on each rank. In this example,
spark-a and spark-b resolve to addresses on that link.
mpirun --host spark-a:1,spark-b:1 --map-by ppr:1:node --stdin 0 \
-x NCCL_SOCKET_IFNAME -x NCCL_IB_HCA \
/shared/path/strata-hy4 --mpi-experts --serve \
--native /shared/path/Hy4-Flash-SQ-96.strata \
--engram /shared/path/Hy4-Flash-Engram-Q8.strata \
--max-context 8192 --chunk 512 --draft off
When enabling NCCL diagnostics, export NCCL_DEBUG_FILE with a writable path
such as /tmp/hy4-nccl-%h-%p.log and add -x NCCL_DEBUG_FILE to the launch.
Standard output carries the engine protocol. For HTTP
serving, configure an executable wrapper that uses MPI for --serve and runs the
binary directly for metadata commands such as --info and --export-tokenizer.
Set HY4_CUDA_GRAPH=1 on the coordinator to capture the GPU work in decode
and verification windows of up to eight rows. Each segment runs between MPI
expert exchanges. This also enables graphs for the DFly2 drafter.
--session-reuse 1 enables reuse for
prompts that extend the cached prefix. --draft dfly2 enables DFly2 on packs
that contain the drafter. Add --vision FILE on an image-capable configuration.
What this does not cover
Qwen3.8-Flash-Next decode on the 48-SM GB10 is limited by the GPU's work, about 930 kernel launches per token. No configuration switch measured here moved it more than a few percent. A DFlash2 drafter is slower here than the MTP drafter (37 against 45 tok/s) and is not used. Teacher-forced quality over long text and task suites was run only for the prompt path (above).