mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #428] [CLOSED] ds4: Maya_DS4_LOAD_THREADS and Maya_DS4_LOAD_INTERLEAVE for the expert load (cold load 81.3 -> 60.9 s here) #525
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#525
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/428
Author: @Ross-Yang-94
Created: 10/23/2026
Status: ❌ Closed
Base:
main← Head:ds4-load-threads📝 Commits (1)
8688ad2ds4: MAYA_DS4_LOAD_THREADS and MAYA_DS4_LOAD_INTERLEAVE for the expert load📊 Changes
3 files changed (+52 additions, -1 deletions)
View changed files
📝
README.md(+11 -0)📝
docs/SETTINGS.md(+15 -0)📝
src/ds4/ds4_model.cu(+26 -1)📄 Description
<html>What
Two opt-in settings for the expert load (
place_expertsinsrc/ds4/ds4_model.cu):MAYA_DS4_LOAD_THREADS(default 12): the threads that read the experts' regions.MAYA_DS4_LOAD_INTERLEAVE(default off): the files round-robin - the first expert of each file, then the second, ... - so the threads read several files at once (a pack split over two drives streams both).Both default to today's behaviour: nothing changes unless asked. The code reads
STRATA_DS4_LOAD_*(the alias mapsMAYA_*to it), as the other DS4 settings do.Why
The load reads the pack's expert regions one file after another. With 43 files and 15,744 experts, a single file's regions are read in sequence and the disk is the bottleneck. Interleaving the files lets several of them stream at once; more threads help on a machine with the cores.
Measurements
RTX 6000D 85 GB (PCIe 5.0 x16), Threadripper PRO 9965WX (24C/48T), 251 GB RAM, NVMe; DeepSeek-V4.1-Flash-1017-EXL3-2.9bpw, 512K context, v1.1.25 + this patch.
Cold: the container stopped,
echo 3 > /proc/sys/vm/drop_caches, then started; the engine's ownds4: loaded inline, median of three runs each, in both orders:-25% with both. The spread was 79.8-91.3, 46.1-70.4 and 59.3-62.3 s: the load is disk-bound and varies run to run, so the medians are what to compare. The absolute numbers also depend on how much of the pack the page cache holds (the engine's own RAM squeezes it): a restart with a cold cache took 217 s here.
Decode and prefill are untouched: the settings only change the order and the thread count of the load.
Docs
A row in the README's Tuning table and a section in
docs/SETTINGS.md.Note
This is a local patch I have carried since v1.1.21; it is not in v1.1.25. Happy to change the names, the defaults or the placement if you prefer another shape.
</html>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.