mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #279] [MERGED] ds4: warn at start when prompts run in 16-token windows (tensor parallel collapsed, threads off) #442
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#442
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/279
Author: @waxinz
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @mw00
Base:
main← Head:ds4-prefill-windows-warning📝 Commits (1)
d458260ds4: warn at start when prompts run in 16-token windows (tensor parallel collapsed, threads off)📊 Changes
2 files changed (+11 additions, -2 deletions)
View changed files
📝
docs/SETUP.md(+5 -1)📝
src/ds4/ds4_model.cu(+6 -1)📄 Description
The problem
On a multi-GPU split whose tensor parallel collapses to one GPU per layer group, DS4 prefills every prompt in windows of 16 tokens — about 10x slower on long prompts than the chunked path — with almost no hint.
Maya-S GGUF hits this on every rig: the routed experts' FFN is n_ff 2304 wide, and 2304 does not split into 256-value blocks x2, so the setup's
--tp 2always falls back:With tp effectively 1 and
--threadsoff,par = o.threads || tp > 1is false (src/ds4/ds4_model.cu,load()), sochunk = 0— andModel::feedthen sends every prompt, however long, tofeed_windows(16 tokens a pass). The only hint isprompts in chunks of 0buried at the end of the experts-in-place log line; a rig where every expert fits in VRAM prints nothing at all.Measured (7x RTX 3090, Maya-S GGUF read in place, 262144 ctx, cold caches)
--threads on-> chunks of 8192Decode unchanged (44-66 tok/s either way). Same answers either way — the flag only switches the prompt path (chunks vs windows compute the same feed; no quant or kernel change).
The change
src/ds4/ds4_model.cu: when the prompt chunk ends up 0, print a loud warning at start with the fix (--threads onfor 8192-token chunks).docs/SETUP.md: one sentence in the DeepSeek GGUF section.No behavior change unless the operator acts on the warning; no new settings; no new CUDA calls (AMD mapping untouched).
Verification
ds4_model.cucompiles clean with the project's nvcc flags (CUDA 12.6, sm_86).--threads onfix side has been running production there since this morning.Alternative worth considering (not in this PR)
maya.pycould emit--threads onin the generatedmaya-ds4.jsonby default, since for the Maya-S GGUF the TP collapse is the rule rather than the exception. Left out to keep this change minimal — happy to add it here or as a follow-up if preferred.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.