mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #464] [CLOSED] ds4: allow choosing the DSpark drafter GPU group #542
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#542
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
2d18844Allow selecting a GPU group for the DeepSeek drafter4872019docs: 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_GROUPenvironment setting, a zero-based GPU group index. For example, with three GPUs and--tp 2: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_SPLITis 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:maya-ds4passes.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.