mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #347] DeepSeek-V4.1-Flash EXL3 on Windows: prefill ~100 t/s against the Maya-S GGUF's ~500 t/s #138
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#138
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?
Originally created by @21387A on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/347
tl;dr
This continues #280 (closed as fixed in v1.1.17). The chunking does work here - the engine logs
prompts in chunks of 8192- but on this machine the EXL3 quant of DeepSeek-V4.1-Flash reads prompts 4-5x slower than the Maya-S GGUF.The box: Windows 11, two RTX 3090s (65% power limit), Threadripper 3990X (AVX2), 256 GB DDR4-2866, page file 128 GB, v1.1.20. Every run below:
--tp 2 --max-context 131072 --dspark none --vision off, temperature 0, the same 31,024-token text file as the prompt, 32 tokens out.--mmap-experts off(CPU lane copied into RAM)--mmap-experts on(in place)DS4_FLOW=0The engine's own lines, EXL3 2.9:
VRAM is full - 554 and 566 MiB free a card - so there is no room to move more experts into VRAM at this context.
The same prompt on EXL3 3.5:
27% more bytes on the lane, 41% more time for the same 31,024 tokens - the prompt grows with the lane.
DS4_PROF=1on the EXL3 2.9 run:Maya-S GGUF, same prompt,
--mmap-experts on:A second, longer prompt on the same server (34,138 tokens) read at 89.8 t/s against 96.3 for this one - going over the lane again is not cheaper the second time.
The time also follows the number of chunks at one prompt length: 4 chunks 304 s,
--prefill-chunk 16384(2 chunks) 198 s,--prefill-chunk 32768(1 chunk) 131 s. The 32K chunk is not a fix (short prompts then take 1.74 s against 1.54 s warm, and the VRAM pool shrinks from 2715 to 1881 experts a card) - it only shows where the cost sits.That leaves a starved link, which is also what the TUI shows: while a Maya-S GGUF prompt runs, its PCIe reading (per GPU) shoots up to 24 - 26 GB/s; while an EXL3 prompt runs - it gets to 4-5 GB/s, never rising above 8 GB/s max.
The knobs that touch that path, one run each on an 8,898-token prompt: default 161.3 s,
DS4_RING_MB=1600159.3 s,DS4_READERS=16161.8 s,DS4_PF_ALL=1155.5 s, the three together 160.8 s. None of them helps - but with the bigger ring our/metricssampling saw PCIe reach 12.7 GB/s up and 21.5 GB/s down, so the link has room: there is not enough data arriving to send.My concerns:
DS4_FLOW=0, while the EXL3 ones work out to about 1.1 GB/s a GPU if each 8K chunk reads its half of the lane. What is different about the EXL3 read, and can it be brought to the GGUF's rate? That would be the prefill fix at the default chunk size.DS4_FLOW_STATScover EXL3 as well? It prints nothing for EXL3 today, so a report can show only times, never the bytes or the read waits.Minor and unrelated to the above:
maya-report.txthas no DeepSeek speed lines at all (its picker matches only GLM's lines), so every DS4 report arrives with "(nothing)" under speeds. Attached: maya-report.txt@21387A commented on GitHub (Oct 22, 2026):
Same prompt, same flags, now on v1.1.22 — the Windows Engram changes in this release (#361, #362) moved both paths, and the gap narrowed from 7.4x to 5.6x, but it is still there.
Box and flags as above: Windows 11, 2x RTX 3090, Threadripper 3990X, 256 GB DDR4-2866,
--tp 2 --max-context 131072 --dspark none --vision off, temperature 0, the same 31,024-token text file, 32 tokens out, default 8192-token chunks. Both runs are the first request on a freshly started server.--mmap-experts offThe engine's lines, v1.1.22, EXL3 3.5bpw:
Maya-S GGUF, same prompt on the same version:
So v1.1.22 is a real gain for the EXL3 path as well (+54% on the same prompt), but the shape of the problem has not changed. The same 205.0 GB lane, read in four passes of 8192 tokens, still moves at about 1.5 GB/s a GPU, against the GGUF's 3.75 GB/s; the prompt time still follows the lane, which is why the 32K chunk "helped" in the first report — fewer passes over the same bytes.
Both concerns from the first post still stand.