[PR #31] [MERGED] Speculative decode on more than two GPUs #290

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

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/31
Author: @ksanislo
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @mw00

Base: main ← Head: multi-gpu-spec


📝 Commits (1)

  • 5ad06ac glm spec: the pipelined speculative decode on a split of more than two parts (head/tail groups)

📊 Changes

5 files changed (+130 additions, -35 deletions)

View changed files

📝 README.md (+3 -2)
📝 include/strata/core/glm_model.hpp (+7 -0)
📝 maya.py (+1 -2)
📝 src/core/glm_fast_path.cu (+118 -30)
📝 src/core/glm_model.cu (+1 -1)

📄 Description

On 3+ GPUs the NextN block is not loaded and spec_ready() needs exactly two parts, so decode runs every GPU in turn with no drafting.

  • The two halves become two groups of parts: the head group runs the draft position while the tail group finishes the current token. STRATA_GLM_SPEC_HEAD sets the head group's size (default: half).
  • The NextN block loads on the last part of any split.
  • Two GPUs: unchanged code path.
  • README: Tuning row; "two GPUs or more" for drafting.

Measured - 4x Tesla T4, Maya-S, 32K, maya.py --bench, v1.0.16 + this branch, interleaved:

decode prefill 2K / 8K
this PR 22.6 / 22.2 tok/s 219 / 416, 217 / 411
main (STRATA_GLM_NO_MTP=1) 15.0 / 15.1 tok/s 219 / 417, 218 / 415

+49% decode, prefill unchanged. Parity and server tests pass. Greedy output varies run to run here with or without this change (prompt-path expert placement). bench + report attached.

Not tested: AMD, more than 4 GPUs.


🔄 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/31 **Author:** [@ksanislo](https://github.com/ksanislo) **Created:** 10/9/2026 **Status:** ✅ Merged **Merged:** 10/9/2026 **Merged by:** [@mw00](https://github.com/mw00) **Base:** `main` ← **Head:** `multi-gpu-spec` --- ### 📝 Commits (1) - [`5ad06ac`](https://github.com/mw00/project-maya/commit/5ad06acacb2062d494600ab294e85ffc98dd8922) glm spec: the pipelined speculative decode on a split of more than two parts (head/tail groups) ### 📊 Changes **5 files changed** (+130 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -2) 📝 `include/strata/core/glm_model.hpp` (+7 -0) 📝 `maya.py` (+1 -2) 📝 `src/core/glm_fast_path.cu` (+118 -30) 📝 `src/core/glm_model.cu` (+1 -1) </details> ### 📄 Description On 3+ GPUs the NextN block is not loaded and `spec_ready()` needs exactly two parts, so decode runs every GPU in turn with no drafting. - The two halves become two groups of parts: the head group runs the draft position while the tail group finishes the current token. `STRATA_GLM_SPEC_HEAD` sets the head group's size (default: half). - The NextN block loads on the last part of any split. - Two GPUs: unchanged code path. - README: Tuning row; "two GPUs or more" for drafting. **Measured** - 4x Tesla T4, Maya-S, 32K, `maya.py --bench`, v1.0.16 + this branch, interleaved: | | decode | prefill 2K / 8K | |---|---:|---:| | this PR | 22.6 / 22.2 tok/s | 219 / 416, 217 / 411 | | main (`STRATA_GLM_NO_MTP=1`) | 15.0 / 15.1 tok/s | 219 / 417, 218 / 415 | +49% decode, prefill unchanged. Parity and server tests pass. Greedy output varies run to run here with or without this change (prompt-path expert placement). bench + report attached. Not tested: AMD, more than 4 GPUs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:23:51 +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#290
No description provided.