mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #257] feat(glm): DFMULTI shared multi-token verification, ragged windows, 32-row arena #431
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#431
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/257
Author: @btothec
Created: 10/17/2026
Status: 🔄 Open
Base:
main← Head:feat/dfmulti-shared-verification📝 Commits (4)
8804221feat(glm): DFMULTI shared multi-token verification, ragged windows, 32-row arena498a8d1feat(glm): fused per-row KDA staging gather for the DFMULTI rows patha16e51cfeat(glm): EXL3 trellis helper - the secondary GPU owns complementary experts8ecb74afix(glm): include exl3.hpp in remote_experts.hpp (the header names ExpertLayout)📊 Changes
22 files changed (+1751 additions, -101 deletions)
View changed files
📝
include/strata/core/glm_dflash.hpp(+11 -0)📝
include/strata/core/glm_model.hpp(+36 -1)📝
include/strata/core/remote_experts.hpp(+7 -0)📝
include/strata/kernels/glm_fast.hpp(+19 -3)📝
serve/server.py(+55 -26)📝
serve/test_server.py(+36 -0)📝
serve/web/app.css(+5 -2)📝
serve/web/app.js(+9 -3)📝
serve/web/index.html(+7 -3)📝
src/core/glm_dflash.cu(+246 -2)📝
src/core/glm_fast_path.cu(+24 -10)📝
src/core/glm_model.cu(+1 -0)📝
src/core/glm_multi.cu(+29 -2)📝
src/core/glm_rows.cu(+571 -11)📝
src/core/remote_experts.cpp(+44 -0)📝
src/kernels/cuda/glm_fast.cu(+70 -13)📝
src/program/generate.cpp(+304 -17)📝
tests/glm_mv_nt_test.cu(+10 -8)➕
tests/test_dflash_multi_depth_contract.py(+31 -0)➕
tests/test_exl3_helper_contract.py(+60 -0)...and 2 more files
📄 Description
Summary
The several-conversation scheduler (
STRATA_GLM_SEQS > 1) previously decoded without DFlash, verifying one target token per context per step. This adds genuine shared multi-token speculative verification on one GPU:STRATA_GLM_DFMULTI_SOLO_DEPTH/STRATA_GLM_DFMULTI_PAIR_DEPTH/STRATA_GLM_DFMULTI_DEPTH), others take exactly one row in the same call. The one-row fallback path remains for steps where nothing forms a window.kMaxMvNt, CUDA fused 32-column kernel; HIP keeps chunked widths above 8).glm_mv_nt_testcovers the fused path bit-for-bit in typed and generic modes (568 cases).STRATA_GLM_DFMULTI_AHEAD=1, default off): the next window's drafter block is kicked on the drafter stream after a commit, waited for at the top of the next step. Measured neutral on a one-GPU rig; kept for split rigs where the drafter stream can overlap real target work.STRATA_GLM_DFMULTI_TRACE).Measurements (RTX PRO 6000 Blackwell, EXL3-3.05bpw + DFlash2, single GPU)
Test plan
python3 tests/test_glm_multi_window_contract.py(12 cases) andpython3 tests/test_dflash_multi_depth_contract.pypython3 -m unittest discover -s tests -p 'test_*.py'(13 cases) and the server suite (91 cases)./build/glm_mv_nt_testtyped + generic parity, plus--bench, for the 32-column kernel🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.