[GH-ISSUE #422] [BUG] EXL3 versions with --mmap-experts off and DS4_ENGRAM_RAM: 1, DS4_REQUIRE_ALL_RAM: 1 #167

Closed
opened 2026-10-29 21:21:56 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @bandito1 on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/422

Hi,

Setup:
AMD Ryzen Threadripper PRO 3975WX 32-Cores
512GB RAM DDR4 (8x64GB)
4x RTX 3090 24GB (4x16 PCIE lane)
OS: Proxmox, LXC debian 13

When I run Maya with DS4_ENGRAM_RAM: 1, DS4_REQUIRE_ALL_RAM: 1 env parameters EXL3 models, some layers working from SSD. ~0.52Mb/s in my case.
If I run GUFF models, all working from memory, no SSD stream.

Other "bug" is: --mmap-experts off not recognized, just only config file. So I can't run --setup with DS4_ENGRAM_RAM: 1, DS4_REQUIRE_ALL_RAM: 1, because need also mmap-experts off, but I can't run.

root@gpu-1:~/project-maya# ./maya.sh --mmap-experts off usage: maya.py [-h] [--backend {cuda,hip}] [--setup] [--check] [--no-start] [--yes] [--plain] [--download-model] [--model {Maya-S-v2-IQ2_XXS,Maya-S24,Maya-M,Maya-M-Derisked,Maya-L,EXL3-3.05bpw,EXL3-4.05bpw,DeepSeek-V4.1-Flash-1017}] [--model-dir MODEL_DIR] [--ds4-quant {gguf-q8,gguf-q4,maya-s,maya-m,maya-xs,exl3,exl3-3.5}] [--draft {mtp,dflash2}] [--no-vision] [--gguf-dir GGUF_DIR] [--models-dir MODELS_DIR] [--gpu GPU] [--gpus GPUS] [--context CONTEXT] [--parallel N] [--vram-reserve-mib N] [--port PORT] [--host HOST] [--api-key API_KEY] [--env KEY=VALUE] [--nvcc NVCC] [--host-compiler HOST_COMPILER] [--llama-dir LLAMA_DIR] [--rebuild] [--repack] [--report] [--bench] [--calibrate] [--speed-calibration] [--drafting {measure,on,off}] [--no-speed-calibration] [--config CONFIG] maya.py: error: unrecognized arguments: --mmap-experts off

Originally created by @bandito1 on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/422 Hi, Setup: AMD Ryzen Threadripper PRO 3975WX 32-Cores 512GB RAM DDR4 (8x64GB) 4x RTX 3090 24GB (4x16 PCIE lane) OS: Proxmox, LXC debian 13 When I run Maya with DS4_ENGRAM_RAM: 1, DS4_REQUIRE_ALL_RAM: 1 env parameters EXL3 models, some layers working from SSD. ~0.52Mb/s in my case. If I run GUFF models, all working from memory, no SSD stream. Other "bug" is: --mmap-experts off not recognized, just only config file. So I can't run --setup with DS4_ENGRAM_RAM: 1, DS4_REQUIRE_ALL_RAM: 1, because need also mmap-experts off, but I can't run. `root@gpu-1:~/project-maya# ./maya.sh --mmap-experts off usage: maya.py [-h] [--backend {cuda,hip}] [--setup] [--check] [--no-start] [--yes] [--plain] [--download-model] [--model {Maya-S-v2-IQ2_XXS,Maya-S24,Maya-M,Maya-M-Derisked,Maya-L,EXL3-3.05bpw,EXL3-4.05bpw,DeepSeek-V4.1-Flash-1017}] [--model-dir MODEL_DIR] [--ds4-quant {gguf-q8,gguf-q4,maya-s,maya-m,maya-xs,exl3,exl3-3.5}] [--draft {mtp,dflash2}] [--no-vision] [--gguf-dir GGUF_DIR] [--models-dir MODELS_DIR] [--gpu GPU] [--gpus GPUS] [--context CONTEXT] [--parallel N] [--vram-reserve-mib N] [--port PORT] [--host HOST] [--api-key API_KEY] [--env KEY=VALUE] [--nvcc NVCC] [--host-compiler HOST_COMPILER] [--llama-dir LLAMA_DIR] [--rebuild] [--repack] [--report] [--bench] [--calibrate] [--speed-calibration] [--drafting {measure,on,off}] [--no-speed-calibration] [--config CONFIG] maya.py: error: unrecognized arguments: --mmap-experts off`
Author
Owner

@mw00 commented on GitHub (Oct 23, 2026):

Thanks! In v1.1.26 --mmap-experts auto|on|off is a setup option: ./maya.sh --setup --mmap-experts off writes it into the DeepSeek config and later setups keep it (before, a new --setup dropped it). Given on a normal start it is written into the config too.

DS4_REQUIRE_ALL_RAM covers the GGUF quants' expert copies (docs/SETTINGS.md); the EXL3 quants read their experts in place, so with EXL3 some layers can still come from the SSD - we are looking at giving EXL3 the same all-in-RAM option.

<!-- gh-comment-id:6373122505 --> @mw00 commented on GitHub (Oct 23, 2026): Thanks! In v1.1.26 `--mmap-experts auto|on|off` is a setup option: `./maya.sh --setup --mmap-experts off` writes it into the DeepSeek config and later setups keep it (before, a new `--setup` dropped it). Given on a normal start it is written into the config too. `DS4_REQUIRE_ALL_RAM` covers the GGUF quants' expert copies (docs/SETTINGS.md); the EXL3 quants read their experts in place, so with EXL3 some layers can still come from the SSD - we are looking at giving EXL3 the same all-in-RAM option.
Author
Owner

@mw00 commented on GitHub (Oct 27, 2026):

Following up on our earlier answer: since v1.1.26 (c8cb6ea), ./maya.sh --setup --mmap-experts off writes the option into the DeepSeek config, and later setups keep it. With it, the EXL3 quants copy every CPU-lane expert into RAM at load - the log says N routed experts on the CPU lane (X GB of RAM, ...) - so nothing is read from the SSD after that. DS4_REQUIRE_ALL_RAM only matters for the GGUF quants' copies. (On a 2-socket PC, v1.1.33 also fixes an OOM kill at load with this setting: #507.) Closing - please reopen if the latest release still reads experts from the SSD with --mmap-experts off.

<!-- gh-comment-id:6448813658 --> @mw00 commented on GitHub (Oct 27, 2026): Following up on our earlier answer: since v1.1.26 (`c8cb6ea`), `./maya.sh --setup --mmap-experts off` writes the option into the DeepSeek config, and later setups keep it. With it, the EXL3 quants copy every CPU-lane expert into RAM at load - the log says `N routed experts on the CPU lane (X GB of RAM, ...)` - so nothing is read from the SSD after that. `DS4_REQUIRE_ALL_RAM` only matters for the GGUF quants' copies. (On a 2-socket PC, v1.1.33 also fixes an OOM kill at load with this setting: #507.) Closing - please reopen if the latest release still reads experts from the SSD with `--mmap-experts off`.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mw00/project-maya#167
No description provided.