[PR #5119] [Engine] split: the all-cards engine builds and runs on sm_70 (V100), opt-in #5313

Open
opened 2026-11-07 16:34:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/5119
Author: @buserror
Created: 11/3/2026
Status: 🔄 Open

Base: main ← Head: pr/split-sm70


📝 Commits (1)

  • 80384ac [Engine] split: the all-cards engine builds and runs on sm_70 (V100), opt-in

📊 Changes

5 files changed (+186 additions, -24 deletions)

View changed files

📝 docs/SPLIT_ENGINE.md (+15 -5)
➕ docs/SPLIT_ENGINE_V100.md (+84 -0)
📝 src/split/CMakeLists.txt (+4 -3)
📝 strata_control/split_engine.py (+40 -16)
📝 tests/split/test_split_engine.py (+43 -0)

📄 Description

Problem and result

The all-cards split engine is auto-selected only on sm_86/sm_120 and requires all experts in VRAM. A 2x V100-PCIE-32GB pair (sm_70) carries 71.7 GiB of routed experts in 64 GiB, so Auto correctly keeps the layer split. The engine itself is not sm_80-only: it has an FNX_ARCH < 80 path (mma.sync.aligned.m8n8k4) and a host expert cache. With this change --split-engine on starts it on an sm_70 pair, using the arena's host cache for the overflow.

Result on 2x V100-PCIE-32GB, 393216 context, 26 GiB host cache: 247K intake 1872-1892 tok/s against 987-996 for the layer split (about 1.9x, roughly double the intake); generation at 247K 70-82 tok/s against 49-66 (about 20-40% higher, depending on the seed); warm repeat 1.45-1.49 s against 4.75-4.82; short warm 132-133 tok/s against 63-85. Auto stays on the layer split.

None yet. This is a new opt-in path and would benefit from a maintainer scope decision. The V100 measurements and the build/host-cache recipe are in docs/SPLIT_ENGINE_V100.md.

Approach

  • CMake: link m/stdc++ on the split targets (CUDA 12.9 + gcc-12 chose gcc as the linker; sm_70 stopped on exp / std::runtime_error).
  • Rule: add sm_70 to BUILT_ARCHS, keep TESTED/Auto unchanged. An explicit --split-engine on accepts an sm_70 pair and records the architecture and a longer context as untested.
  • Memory: when the experts do not fit, the rule sizes FNX_EXPERT_RAM_GIB from the VRAM overflow and split_config keeps FNX_ARENA=1 instead of forcing all experts into VRAM. The base config's --rope-scale is passed through (393216 needs 1.5). Auto still refuses the same setup.
  • Docs: docs/SPLIT_ENGINE.md points at the V100 opt-in; docs/SPLIT_ENGINE_V100.md has the build, the host-cache range and the tile check.
  • Tests: opt-in only, the host cache needs RAM, split_config writes arena/rope, and Auto leaves the config alone.

Validation

Passed:

  • Built the split target for sm_70 on the PR branch (6ffae2d4), 2x V100-PCIE-32GB, CUDA 12.9, gcc-12: ninja -C build-split strata-split-2 split_moe_tile_test.
  • python3 -m pytest tests/split tests/terminal/test_split_engine_flag.py tests/terminal/test_split_parallel.py -q: 92 passed, 5 subtests passed.
  • The engine ran through the normal server with the generated config: 393216 context, 6 lanes, 26 GiB host cache, FNX_ARENA=1; 247K intake 1872-1892 tok/s, warm repeat 1.45-1.49 s (247210 tokens reused), short warm 132-133 tok/s. The direct engine read the same prompt at 2305 tok/s. The rule and split_config are identical between the end-to-end test commit and this one; the later edits are the module docstring, the two docs and the tests.
  • The tile test ran on a V100: Q5_1/Q8_0 exact; Q4_K/Q5_K within the documented f16 scale-rounding (max|d| 1e-4).

Failed:

  • None observed.

Not run:

  • Quality/answer parity: the split arithmetic differs from the layer split's; upstream reports 29/61 identical suite answers. Not re-run here.
  • Three/four V100 cards, a host without LimitMEMLOCK=infinity, Windows/macOS, and a shared GPU.
  • CUDA/HIP/SYCL builds other than the 2x V100 CUDA sm_70 split.

Limits

  • Opt-in only; Auto keeps the layer split on sm_70.
  • Needs LimitMEMLOCK=infinity (the engine locks the 29.5 GB embedding table) or a privileged container.
  • The split engine has no clock-clamp hook: it idled at 1380 MHz / 41 W and 40 W per card.
  • The host cache and answers are a deployment/trade-off: 26 GiB of experts in RAM; the arithmetic is not bit-identical to the layer split.

🔄 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/5119 **Author:** [@buserror](https://github.com/buserror) **Created:** 11/3/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `pr/split-sm70` --- ### 📝 Commits (1) - [`80384ac`](https://github.com/Niko1221/Strata/commit/80384ac4d5a991982279d3db9db83da2a474cdc3) [Engine] split: the all-cards engine builds and runs on sm_70 (V100), opt-in ### 📊 Changes **5 files changed** (+186 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `docs/SPLIT_ENGINE.md` (+15 -5) ➕ `docs/SPLIT_ENGINE_V100.md` (+84 -0) 📝 `src/split/CMakeLists.txt` (+4 -3) 📝 `strata_control/split_engine.py` (+40 -16) 📝 `tests/split/test_split_engine.py` (+43 -0) </details> ### 📄 Description ## Problem and result The all-cards split engine is auto-selected only on sm_86/sm_120 and requires all experts in VRAM. A 2x V100-PCIE-32GB pair (sm_70) carries 71.7 GiB of routed experts in 64 GiB, so Auto correctly keeps the layer split. The engine itself is not sm_80-only: it has an `FNX_ARCH < 80` path (`mma.sync.aligned.m8n8k4`) and a host expert cache. With this change `--split-engine on` starts it on an sm_70 pair, using the arena's host cache for the overflow. Result on 2x V100-PCIE-32GB, 393216 context, 26 GiB host cache: 247K intake **1872-1892 tok/s** against 987-996 for the layer split (**about 1.9x, roughly double the intake**); generation at 247K **70-82 tok/s** against 49-66 (**about 20-40% higher**, depending on the seed); warm repeat **1.45-1.49 s** against 4.75-4.82; short warm **132-133 tok/s** against 63-85. Auto stays on the layer split. ## Related discussion None yet. This is a new opt-in path and would benefit from a maintainer scope decision. The V100 measurements and the build/host-cache recipe are in `docs/SPLIT_ENGINE_V100.md`. ## Approach - CMake: link `m`/`stdc++` on the split targets (CUDA 12.9 + gcc-12 chose gcc as the linker; sm_70 stopped on `exp` / `std::runtime_error`). - Rule: add sm_70 to `BUILT_ARCHS`, keep `TESTED`/Auto unchanged. An explicit `--split-engine on` accepts an sm_70 pair and records the architecture and a longer context as untested. - Memory: when the experts do not fit, the rule sizes `FNX_EXPERT_RAM_GIB` from the VRAM overflow and `split_config` keeps `FNX_ARENA=1` instead of forcing all experts into VRAM. The base config's `--rope-scale` is passed through (393216 needs 1.5). Auto still refuses the same setup. - Docs: `docs/SPLIT_ENGINE.md` points at the V100 opt-in; `docs/SPLIT_ENGINE_V100.md` has the build, the host-cache range and the tile check. - Tests: opt-in only, the host cache needs RAM, `split_config` writes arena/rope, and Auto leaves the config alone. ## Validation **Passed:** - Built the split target for sm_70 on the PR branch (6ffae2d4), 2x V100-PCIE-32GB, CUDA 12.9, gcc-12: `ninja -C build-split strata-split-2 split_moe_tile_test`. - `python3 -m pytest tests/split tests/terminal/test_split_engine_flag.py tests/terminal/test_split_parallel.py -q`: 92 passed, 5 subtests passed. - The engine ran through the normal server with the generated config: 393216 context, 6 lanes, 26 GiB host cache, `FNX_ARENA=1`; 247K intake 1872-1892 tok/s, warm repeat 1.45-1.49 s (247210 tokens reused), short warm 132-133 tok/s. The direct engine read the same prompt at 2305 tok/s. The rule and `split_config` are identical between the end-to-end test commit and this one; the later edits are the module docstring, the two docs and the tests. - The tile test ran on a V100: Q5_1/Q8_0 exact; Q4_K/Q5_K within the documented f16 scale-rounding (`max|d|` 1e-4). **Failed:** - None observed. **Not run:** - Quality/answer parity: the split arithmetic differs from the layer split's; upstream reports 29/61 identical suite answers. Not re-run here. - Three/four V100 cards, a host without `LimitMEMLOCK=infinity`, Windows/macOS, and a shared GPU. - CUDA/HIP/SYCL builds other than the 2x V100 CUDA sm_70 split. ## Limits - Opt-in only; Auto keeps the layer split on sm_70. - Needs `LimitMEMLOCK=infinity` (the engine locks the 29.5 GB embedding table) or a privileged container. - The split engine has no clock-clamp hook: it idled at 1380 MHz / 41 W and 40 W per card. - The host cache and answers are a deployment/trade-off: 26 GiB of experts in RAM; the arithmetic is not bit-identical to the layer split. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#5313
No description provided.