mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #359] [MERGED] DeepSeek: leave two cores free beside the CPU lane (decode 42 -> 68.5 tok/s here) #487
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#487
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/359
Author: @OscarSheng
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @mw00
Base:
main← Head:ds4-lane-free-cores📝 Commits (1)
4e6d807DeepSeek: leave two cores free beside the CPU lane📊 Changes
1 file changed (+10 additions, -0 deletions)
View changed files
📝
src/ds4/ds4_model.cu(+10 -0)📄 Description
What it changes:
pools_forkeepsMAYA_DS4_LANE_FREEcores (default 2; 0 = as before) out of the first pool,beside the service thread's, unless
--cpu-threadsis given.Why: with a worker on every other core spinning between a token's layers (for 20 ms after its last job), the thread
that launches the decode's kernels waited for a core. The lane's start-up timing measures the pool alone, so it did not
see this.
What it leaves alone:
--cpu-threads(an explicit count wins); the lane's kernels.Measured (same setup as the "1 ms timer resolution" PR, with that PR on):
MAYA_DS4_LANE_FREE=0(as before: 19 workers on 20 cores)Prompts unchanged. Worker counts on v1.1.19 (600 tokens): 19 -> 28.3, 18 -> 47.2, 17 -> 55.5, 11 -> 53.4, 7 -> 52.1.
Open: measured on one CPU (20 cores, no SMT) under Windows only. If you prefer, it can default to 0 off Windows until
someone measures Linux.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.