mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #515] [CLOSED] DeepSeek prompt path: copy the helper's pooled experts instead of reading them from disk (MAYA_DS4_FLOW_HELPER) #571
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#571
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/515
Author: @pepuscz
Created: 10/26/2026
Status: ❌ Closed
Base:
main← Head:pr/ds4-up-d-flow-helper📝 Commits (10+)
8c8e72fds4: DS4_HELPER on a group - a member other than 0 holding any helper or recent-slot field refuses the loada5067f3docs: the helper on a tensor-parallel group's layers - MAYA_DS4_HELPER with MAYA_DS4_TP_GGUF_UNEVEN001d578ds4: DS4_HC_FUSE - a decoded token's hc_split and hc_pre_norm in one launch, the attention input rounded therefddc0f2ds4: DS4_ROUTE_FUSE - a decoded token's router stage on the lead in two launches instead of four8e9e97bds4: DS4_ROUTE_FUSE - nothing published after a launch that did not go in; one eligibility check before any enqueueed91be7ds4: DS4_FLOW_HELPER - the prompt's experts the helper holds copied out of its pool, not read from the files3be770ads4: DS4_FLOW_HELPER_CHECK by prompt run, DS4_FLOW_HELPER_FAIL, IoQueue device-copy testbc36845docs: the prompt flow's experts out of the helper's pool - MAYA_DS4_FLOW_HELPER and MAYA_DS4_FLOW_HELPER_CHECK4182dd3ds4: DS4_AR2_DECODE - the decode windows' all-reduces in ar2_kernel's exact mode94e6547docs: a group of two's all-reduces in one pipelined launch - MAYA_DS4_AR2 and MAYA_DS4_AR2_DECODE📊 Changes
9 files changed (+2362 additions, -71 deletions)
View changed files
📝
docs/SETTINGS.md(+57 -1)📝
src/ds4/ds4_gguf.cu(+18 -2)📝
src/ds4/ds4_gguf.cuh(+14 -0)📝
src/ds4/ds4_kernels.cu(+434 -0)📝
src/ds4/ds4_kernels.cuh(+76 -0)📝
src/ds4/ds4_model.cu(+1478 -64)📝
src/ds4/ds4_pool.hpp(+13 -3)📝
tests/ds4_gguf_test.cu(+121 -1)➕
tests/ds4_pool_test.cpp(+151 -0)📄 Description
Part of #510 (PR D of 9: A, B, C, C2, D, E, F, G, H). Stacked on #514: until that merges, this PR also shows its commits; this PR's own are the last ones listed. Glad to rebase as
mainmoves.What. While a prompt is read, the flow streams each chunk's experts to the cards. Experts the helper (#415) already holds in its pool are still read from the model's files.
Change.
MAYA_DS4_FLOW_HELPER=1(default off): such an expert is copied into staging out of the helper's memory instead. The same bytes, so the same results; the decode is not touched. On a group each member copies its own part of the lead's pool entry.MAYA_DS4_FLOW_HELPER_CHECK=N: the load's first N prompts compare every such copy with the files (each read again, so those prompts aren't timed); a difference fails the prompt.DS4_FLOW_HELPER_FAIL=copy|check(tests): a failed copy behaves as a failed read; an altered file byte must fail the check.ds4_pool_test: IoQueue's device-copy jobs.Tested on one box, 2x RX 7900 XTX (gfx1100) + Radeon 8060S (gfx1151), HIP: this PR's head builds on its own (each PR of the series was built in order), and the full series passed its load checks and
--bench(numbers in #510). Not built or run on CUDA.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.