[PR #1077] [CLOSED] feat(arm): build and run Strata on aarch64, including DGX Spark #3008

Closed
opened 2026-11-04 02:04:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1077
Author: @johnlockejrr
Created: 10/6/2026
Status: ❌ Closed

Base: main ← Head: aarch64-dgx-spark


📝 Commits (10+)

  • f4e96d5 tests: gdn_rec_head also compares the PP (variant 4) and two-column (variant 5) recurrence kernels, bitwise
  • 16bc95a prefill: STRATA_HCD_EXACT=1 - the HC down projection by a WMMA kernel with hipBLASLt solution 1176/1177 k order (StaggerU included), bitwise
  • 502fcef #606: the fused SwiGLU q8_1 quantizers keep the block's scale and sum finite too
  • 64d0136 cache: preserve checkpoints when split allocation fails
  • a0d0056 prefill: fused-expert exact wins (table16 via direct selector, float4 moe_combine, LDS alias + occupancy)
  • 5f5452b serve: park_current's try covers the checkpoint split too (#752): a host OOM skips parking
  • 8b19a38 Layer split: --vram-reserve-later-mib, a separate reserve for the later cards
  • ea83d0d Resident RAM mode with a layer split
  • d2d981f setup: the low-RAM mode's resident variant on several GPUs (#642)
  • cd62e5e serve: a split's stage-0 GPU profile line keeps its text (#848); later stages say which stage

📊 Changes

19 files changed (+610 additions, -99 deletions)

View changed files

📝 CMakeLists.txt (+68 -31)
📝 Dockerfile (+17 -3)
📝 README.md (+1 -0)
➕ docs/DGX_SPARK.md (+117 -0)
➕ include/strata/platform/cpu_relax.hpp (+20 -0)
📝 setup.py (+99 -18)
📝 src/core/expert_source.cpp (+6 -0)
📝 src/core/graph.cpp (+2 -3)
📝 src/core/mtp.cpp (+3 -11)
📝 src/core/session.cpp (+4 -9)
📝 src/core/verify.cpp (+15 -15)
📝 src/kernels/cpu/expert_layout.cpp (+35 -1)
📝 src/kernels/cpu/pool.cpp (+4 -4)
➕ src/kernels/cpu/portable.cpp (+185 -0)
📝 src/kernels/cpu/router_dot_parity.cpp (+4 -0)
📝 src/program/generate.cpp (+12 -3)
📝 tools/test_setup_golden.py (+1 -0)
📝 tools/test_setup_unsloth.py (+15 -1)
📝 tools/vision/CMakeLists.txt (+2 -0)

📄 Description

Summary

  • Builds and runs on aarch64. On a DGX Spark (GB10, sm_121) the engine is compiled in Docker, every expert stays in the unified-memory cache, and setup does not add a RAM budget.
  • Integrated-GPU cache sizing was already in 0.1.40. This is the aarch64 build, the NEON CPU path, and the Spark setup/Docker path.
  • x86 builds are unchanged. AVX kernels are not compiled on ARM.

Test plan

  • x86 setup unit tests (golden, Unsloth, older GPUs, Strix Halo, AMD)
  • DGX Spark, Docker image strata: uname -m is aarch64, binary is a 54 MB AArch64 ELF, BUILD.json archs [121], vision none
  • UD-IQ4_XS, context 262144: GPU line NVIDIA GB10, 122 GB unified memory, compute capability 12.1; unified memory: no RAM budget; expert cache 24576 experts, 55.43 GiB; server ready on :8080
  • Chat reply: 37 tokens at 47.0 tok/s
  • BetterBench still running; numbers to follow

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1077 **Author:** [@johnlockejrr](https://github.com/johnlockejrr) **Created:** 10/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `aarch64-dgx-spark` --- ### 📝 Commits (10+) - [`f4e96d5`](https://github.com/Niko1221/Strata/commit/f4e96d55b6f13622bae6b3ded2f81ca16cbd78f6) tests: gdn_rec_head also compares the PP (variant 4) and two-column (variant 5) recurrence kernels, bitwise - [`16bc95a`](https://github.com/Niko1221/Strata/commit/16bc95ab3e5293a6dd557ad0ec7e2a5eef23640a) prefill: STRATA_HCD_EXACT=1 - the HC down projection by a WMMA kernel with hipBLASLt solution 1176/1177 k order (StaggerU included), bitwise - [`502fcef`](https://github.com/Niko1221/Strata/commit/502fcef6ff29325427ecfb5409b242ac7bea18e1) #606: the fused SwiGLU q8_1 quantizers keep the block's scale and sum finite too - [`64d0136`](https://github.com/Niko1221/Strata/commit/64d01362bee3aa109fb340d9b4144a62d9192522) cache: preserve checkpoints when split allocation fails - [`a0d0056`](https://github.com/Niko1221/Strata/commit/a0d00560fdb3bd728001cac756e223b12e3a09e9) prefill: fused-expert exact wins (table16 via direct selector, float4 moe_combine, LDS alias + occupancy) - [`5f5452b`](https://github.com/Niko1221/Strata/commit/5f5452bec6fabe7c76b44af2397b29daac95feb4) serve: park_current's try covers the checkpoint split too (#752): a host OOM skips parking - [`8b19a38`](https://github.com/Niko1221/Strata/commit/8b19a38a57a80ee9c2bd03d677d8b55fc961d34b) Layer split: --vram-reserve-later-mib, a separate reserve for the later cards - [`ea83d0d`](https://github.com/Niko1221/Strata/commit/ea83d0dc5ef3fd481c53ee6bd99dd8016e10ce78) Resident RAM mode with a layer split - [`d2d981f`](https://github.com/Niko1221/Strata/commit/d2d981f5b2841cfcefcc88872730785b9d23bd78) setup: the low-RAM mode's resident variant on several GPUs (#642) - [`cd62e5e`](https://github.com/Niko1221/Strata/commit/cd62e5e07f5efa6be42a8ccfbbc82b78f6abfe93) serve: a split's stage-0 GPU profile line keeps its text (#848); later stages say which stage ### 📊 Changes **19 files changed** (+610 additions, -99 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+68 -31) 📝 `Dockerfile` (+17 -3) 📝 `README.md` (+1 -0) ➕ `docs/DGX_SPARK.md` (+117 -0) ➕ `include/strata/platform/cpu_relax.hpp` (+20 -0) 📝 `setup.py` (+99 -18) 📝 `src/core/expert_source.cpp` (+6 -0) 📝 `src/core/graph.cpp` (+2 -3) 📝 `src/core/mtp.cpp` (+3 -11) 📝 `src/core/session.cpp` (+4 -9) 📝 `src/core/verify.cpp` (+15 -15) 📝 `src/kernels/cpu/expert_layout.cpp` (+35 -1) 📝 `src/kernels/cpu/pool.cpp` (+4 -4) ➕ `src/kernels/cpu/portable.cpp` (+185 -0) 📝 `src/kernels/cpu/router_dot_parity.cpp` (+4 -0) 📝 `src/program/generate.cpp` (+12 -3) 📝 `tools/test_setup_golden.py` (+1 -0) 📝 `tools/test_setup_unsloth.py` (+15 -1) 📝 `tools/vision/CMakeLists.txt` (+2 -0) </details> ### 📄 Description ## Summary - Builds and runs on aarch64. On a DGX Spark (GB10, sm_121) the engine is compiled in Docker, every expert stays in the unified-memory cache, and setup does not add a RAM budget. - Integrated-GPU cache sizing was already in 0.1.40. This is the aarch64 build, the NEON CPU path, and the Spark setup/Docker path. - x86 builds are unchanged. AVX kernels are not compiled on ARM. ## Test plan - [x] x86 setup unit tests (golden, Unsloth, older GPUs, Strix Halo, AMD) - [x] DGX Spark, Docker image `strata`: `uname -m` is aarch64, binary is a 54 MB AArch64 ELF, `BUILD.json` archs `[121]`, vision none - [x] `UD-IQ4_XS`, context 262144: GPU line `NVIDIA GB10, 122 GB unified memory, compute capability 12.1`; `unified memory: no RAM budget`; expert cache `24576 experts, 55.43 GiB`; server ready on `:8080` - [x] Chat reply: 37 tokens at 47.0 tok/s - [ ] BetterBench still running; numbers to follow --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:04:51 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3008
No description provided.