mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #521] DeepSeek EXL3 on Windows: start fails with "pinning the CPU lane's experts (4787 MiB) failed" when the experts fit in RAM #212
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#212
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 @anbow1 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/521
Summary
DeepSeek-V4.1-Flash-1017, LibertAIDAI EXL3 2.9 bpw, one RTX 5090 32 GB, 191 GB RAM, Windows 11.
The engine copies the CPU lane's experts into RAM (the auto check finds they fit), then stops while pinning them:
Maya-S (GGUF) on the same PC works well (24.0 tok/s over 41,848 tokens).
Cause (as far as I can read the code)
src/ds4/ds4_model.cu~2582: with--mmap-expertsauto, a safetensors pack setsfile_experts = falsewhen the expertsVRAM does not take fit
ram_avail()besidekRamMargin(8 GB). Here that is ~170 GB of the 191 GB.load_expertsputs them in anonymous host maps, one per layer (host_maps, ~4.7 GB each).chunk > 0(the default on one GPU, 2048) every host map goes throughcudaHostRegister, and the firstfailure ends the start.
fails. The chunk size does not matter: any
chunk > 0pins all of them.Workarounds that start
--prefill-chunk 0: no pinning, the experts stay in RAM, but prompts drop to ~37 tok/s (1,054 tokens in 28 s).--mmap-experts on: the experts are read in place from the files instead.Suggested fix (any of)
cudaHostRegister, keep the rest unpinned (or unregister and fall back to the staged path) with a warning,instead of failing the start.
file_experts = true(orchunk = 0) by itself and say so in the log.Environment
tools/ds4/pack.pyfrom PR #481 (without it the EXL3 pack does not build)--ds4-quant exl3, context 65536, one GPU@mw00 commented on GitHub (Oct 27, 2026):
Thank you for tracing this to
cudaHostRegister. From v1.1.30 a failed pin no longer stops the start: when Windows will not lock every layer's copied experts, they stay in RAM unpinned and the engine prints a warning saying so. The answers are the same; prompts copy those experts through the driver's staging, so they are slower than fully pinned. If prompt speed matters more,--mmap-experts on(reading the experts in place from the files) is still an option. We have no DeepSeek EXL3 setup on Windows to reproduce the failure, so this is checked by builds on Linux and Windows only. Please tell us how the start goes on your 5090 with--prefill-chunkback at its default.