[PR #464] [CLOSED] ds4: allow choosing the DSpark drafter GPU group #542

Closed
opened 2026-10-29 21:26:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/464
Author: @LostVector
Created: 10/24/2026
Status: ❌ Closed

Base: main ← Head: upstream/dspark-group


📝 Commits (2)

  • 2d18844 Allow selecting a GPU group for the DeepSeek drafter
  • 4872019 docs: explain drafter GPU group placement and tradeoffs

📊 Changes

2 files changed (+34 additions, -0 deletions)

View changed files

📝 docs/SETTINGS.md (+17 -0)
📝 src/ds4/ds4_model.cu (+17 -0)

📄 Description

Choose which GPU group stores and runs DeepSeek's DSpark drafter. On a three-card setup, this lets the drafter use the third card and leaves more room for main-model experts on the tensor-parallel pair. The third card then has less room for its own main-model experts, so this is a placement option to measure on your hardware.

On our earlier three-R9700 research build, a fixed-cache coding case generated 21.21 tokens/s with third-card drafting versus 16.83/17.03 tokens/s without drafting (+24.5–26.0%). That comparison measures enabling MTP in that placement, not moving an already-enabled drafter between GPUs. It is not a measured v1.1.27 placement speedup. A second case failed its timing-drift gate, so these numbers do not establish a general gain.

Currently the drafter stays on the first group's lead GPU. This adds the opt-in DS4_DSPARK_GROUP environment setting, a zero-based GPU group index. For example, with three GPUs and --tp 2:

DS4_SPLIT=36,4 DS4_DSPARK_GROUP=1 ./build-hip/maya-ds4 \
  --pack /path/to/dspark-enabled-pack --tp 2 --dspark on --serve

That keeps the first 36 trunk layers on the TP2 pair, the final four on the singleton group, and places the drafter on the singleton group's lead. It does not tensor-parallelize the drafter. An explicit DS4_SPLIT is required so the override does not interact with automatic trunk partitioning. Malformed/out-of-range values and a missing explicit split fail loading; a startup message reports the selected group/device. Unset the option to restore the current placement. No defaults or kernels change.

Validation against upstream 4615f34 (v1.1.27) on Linux HIP/gfx1201, three R9700s:

  • Clean Release CMake build of maya-ds4 passes.
  • Native load checks reject a negative group, out-of-range group, malformed group, and missing explicit split.
  • Full-model load confirms the drafter on GPU 2 with trunk split 36/4. A 128-token greedy drafting-off/on/off smoke test completes cleanly, all three token sequences match, and drafting accepts 72 of 84 offered tokens. The same model stays loaded and later requests reuse the prompt, so these are correctness smoke checks, not speed comparisons.

Moving expert residency or execution devices can change floating-point results; this is not a full-model bit-exactness claim. NVIDIA and Windows runtime checks, broader quality tests, and an isolated first-group/third-group performance comparison remain outstanding.


🔄 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/mw00/project-maya/pull/464 **Author:** [@LostVector](https://github.com/LostVector) **Created:** 10/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `upstream/dspark-group` --- ### 📝 Commits (2) - [`2d18844`](https://github.com/mw00/project-maya/commit/2d1884429882daea281ccc6c58bd3a98b20f5017) Allow selecting a GPU group for the DeepSeek drafter - [`4872019`](https://github.com/mw00/project-maya/commit/487201996ee5beeadc92a3fa0d47eaad5e903cfa) docs: explain drafter GPU group placement and tradeoffs ### 📊 Changes **2 files changed** (+34 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/SETTINGS.md` (+17 -0) 📝 `src/ds4/ds4_model.cu` (+17 -0) </details> ### 📄 Description Choose which GPU group stores and runs DeepSeek's DSpark drafter. On a three-card setup, this lets the drafter use the third card and leaves more room for main-model experts on the tensor-parallel pair. The third card then has less room for its own main-model experts, so this is a placement option to measure on your hardware. On our earlier three-R9700 research build, a fixed-cache coding case generated **21.21 tokens/s with third-card drafting versus 16.83/17.03 tokens/s without drafting** (+24.5–26.0%). That comparison measures enabling MTP in that placement, **not** moving an already-enabled drafter between GPUs. It is not a measured v1.1.27 placement speedup. A second case failed its timing-drift gate, so these numbers do not establish a general gain. Currently the drafter stays on the first group's lead GPU. This adds the opt-in `DS4_DSPARK_GROUP` environment setting, a zero-based GPU **group** index. For example, with three GPUs and `--tp 2`: ```sh DS4_SPLIT=36,4 DS4_DSPARK_GROUP=1 ./build-hip/maya-ds4 \ --pack /path/to/dspark-enabled-pack --tp 2 --dspark on --serve ``` That keeps the first 36 trunk layers on the TP2 pair, the final four on the singleton group, and places the drafter on the singleton group's lead. It does not tensor-parallelize the drafter. An explicit `DS4_SPLIT` is required so the override does not interact with automatic trunk partitioning. Malformed/out-of-range values and a missing explicit split fail loading; a startup message reports the selected group/device. Unset the option to restore the current placement. No defaults or kernels change. Validation against upstream **4615f34 (v1.1.27)** on Linux HIP/gfx1201, three R9700s: - Clean Release CMake build of `maya-ds4` passes. - Native load checks reject a negative group, out-of-range group, malformed group, and missing explicit split. - Full-model load confirms the drafter on GPU 2 with trunk split 36/4. A 128-token greedy drafting-off/on/off smoke test completes cleanly, all three token sequences match, and drafting accepts 72 of 84 offered tokens. The same model stays loaded and later requests reuse the prompt, so these are correctness smoke checks, not speed comparisons. Moving expert residency or execution devices can change floating-point results; this is not a full-model bit-exactness claim. NVIDIA and Windows runtime checks, broader quality tests, and an isolated first-group/third-group performance comparison remain outstanding. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:26:36 +07:00
Sign in to join this conversation.
No labels
pull-request
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
mw00/project-maya#542
No description provided.