mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #508] maya deepseek v4.1 xs model bench report #208
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#208
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 @yjyz1011 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/508
Maya
version 1.1.28, commit
6afa5252026-10-25, Python 3.13.14, win32System
Windows-2022Server-10.0.20348-SP0
GPUs
index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu
0, NVIDIA A40, 46068 MiB, 45350 MiB, 616.92, 4, 16, 16, 300.00 W, 63
1, NVIDIA A40, 46068 MiB, 45350 MiB, 616.92, 4, 16, 16, 300.00 W, 64
CPU and RAM
Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz
Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz, 112 threads, AVX-512
RAM 255.6 GB, 136.8 GB available now, page file 128 GB
Disks
FriendlyName MediaType BusType Size
AVAGO XF-SAS3508 SSD RAID 7675999944704
Engine build
{"archs": [86], "nvcc": "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin\nvcc.exe", "host_compiler": null, "date": "2026-10-26 21:05"}
Setup maya-ds4.json
model DeepSeek-V4.1-Flash-1017, context 262144, GPUs [0, 1], images on, settings {"STRATA_DS4_Q8_BATCH": "1", "STRATA_DS4_PIN_BY_NEED": "1"}
model folder E:\unsloth-llama-cpp\models\peasantsmith\DeepSeek-V4.1-Flash-1017-Maya-GGUF: 339.5 GB of GGUF, 5525 GB free, not a hard disk
Engine log maya-ds4.log: the speed and memory lines (last 80 of 12)
ds4: a GEMV call's int8 inputs rounded in one launch (DS4_Q8_BATCH)
ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers)
ds4: the one-GPU decode path (in-place pulls, windows streamed, landings): off (v1.1.27's path: not Linux + NVIDIA + one GPU)
ds4: the experts VRAM leaves over (~99.5 GB) are read in place from the model's files (copied into RAM after the GPUs' share when the RAM holds them all; --mmap-experts on keeps them in place) (255.7 GB of RAM free to keep them: the most-routed 99.5 GB read ahead; prompts in chunks of 8192)
ds4: 9074 of the CPU lane's 9074 experts copied into RAM (99.9 GB, 1 NUMA part) in 55.2 s
ds4: CUDA0 layers [0, 42]: weights 4.48 GB, experts 38.23 GB (3174 of 7680 in VRAM), caches 0.15 GB, 577 MiB free
ds4: CUDA1 layers [19, 39] + head: weights 4.73 GB, experts 38.52 GB (3496 of 8064 in VRAM), caches 0.14 GB, 577 MiB free
ds4: 9074 routed experts on the CPU lane (99.9 GB): 9074 copied into RAM (1 NUMA parts), the rest in place in the model's files; 16 threads
ds4: CUDA0 prompt attention on the tensor cores (sm_86)
ds4: CUDA0 busy experts (64 rows or more) as FP16 GEMMs, 1024 rows a piece, FFN up to 2304 (77 MB)
ds4: CUDA1 prompt attention on the tensor cores (sm_86)
ds4: CUDA1 busy experts (64 rows or more) as FP16 GEMMs, 1024 rows a piece, FFN up to 2304 (77 MB)
Engine log maya-ds4.log: the last 25 lines
[maya] answering: 317 of max 512 tokens, 25.7 tok/s, 17 s
[maya] answering: 345 of max 512 tokens, 25.8 tok/s, 18 s
[maya] answering: 373 of max 512 tokens, 25.9 tok/s, 19 s
[maya] answering: 402 of max 512 tokens, 26.1 tok/s, 20 s
[maya] answering: 431 of max 512 tokens, 26.2 tok/s, 21 s
[maya] answering: 466 of max 512 tokens, 26.7 tok/s, 22 s
[maya] answering: 499 of max 512 tokens, 27.0 tok/s, 23 s
[maya] done: 512 tokens in 24 s (27.2 tok/s) (length, cancel=False), expert cache 88.3% hit
[maya] thinking reached its budget (1 tokens): closed, answering
[maya] answering: 36 of max 512 tokens, 36.8 tok/s, 1 s
[maya] answering: 76 of max 512 tokens, 37.9 tok/s, 2 s
[maya] answering: 108 of max 512 tokens, 35.4 tok/s, 3 s
[maya] answering: 144 of max 512 tokens, 35.5 tok/s, 4 s
[maya] answering: 178 of max 512 tokens, 35.1 tok/s, 5 s
[maya] answering: 211 of max 512 tokens, 34.6 tok/s, 6 s
[maya] answering: 242 of max 512 tokens, 34.0 tok/s, 7 s
[maya] answering: 277 of max 512 tokens, 34.1 tok/s, 8 s
[maya] answering: 309 of max 512 tokens, 33.7 tok/s, 9 s
[maya] answering: 342 of max 512 tokens, 33.6 tok/s, 10 s
[maya] answering: 374 of max 512 tokens, 33.3 tok/s, 11 s
[maya] answering: 407 of max 512 tokens, 33.3 tok/s, 12 s
[maya] answering: 438 of max 512 tokens, 33.1 tok/s, 13 s
[maya] answering: 470 of max 512 tokens, 33.0 tok/s, 14 s
[maya] answering: 505 of max 512 tokens, 33.2 tok/s, 15 s
[maya] done: 512 tokens in 15 s (33.2 tok/s) (length, cancel=False), expert cache 97.2% hit
Tuning notes (what worked on this box, and what did not)
Final config (all measured, single-variable, 3-run median on 96-token decode /
3K-token prefill):
--tp 2 --mmap-experts off --cpu-threads 16 --dspark on,env
MAYA_DS4_Q8_BATCH=1 MAYA_DS4_PIN_BY_NEED=1. Result: 40.2 -> 48.9 tok/smedian decode vs this version's defaults, 643-685 tok/s prefill at 3K.
--mmap-experts off(+93% decode on v1.1.25): the default reads CPU-laneexperts in place from the model's files; copying all 9,071 of them (99.9 GB)
into RAM first was the single biggest win. RAM is not the constraint here
(256 GB, copies take 100 GB). Verified again on v1.1.28.
MAYA_DS4_Q8_BATCH=1(+15%): batches a GEMV call's int8 rounding into onelaunch - answers are bit for bit the same, so it is free speed. Keep always.
MAYA_DS4_PIN_BY_NEED=1(+5.8%): Windows locks about half of RAM at best;this pins the copied experts layer by layer (most-routed first) so the GPU
pulls those in place instead of bouncing through the staging buffer.
--dspark on: the engine's own measure kept it (33.6 vs 23.0 tok/s without,~70% drafts accepted). Worth it on every config tried.
--cpu-threads 16: the setup's calibration skips the thread sweep - sweepit yourself. 28 (all logical CPUs) = no gain, 12 = -5%; 16 also copies every
expert into RAM where 28 left a tail in the files.
--max-context 262144: user choice; expert residency is unaffected(3174/7680 + 3496/8064 in VRAM, caches 0.15 GB).
What did NOT help here (for comparison on other boxes):
DS4_FAT_ROWS=128: decode -23% with prefill unchanged; on sm_86 the default64 rows already matches the GEMM shape.
MAYA_DS4_DSPARK_CUM=0.4: -5.6%; the default 0.5 was measured optimal here.MAYA_DS4_RAM_SKIP_W=0.10: no gain (46.6 vs 48.9) and answers change - thewin on edge-of-RAM boxes disappears once every expert sits in RAM/VRAM and
the CPU lane is ~5% of the work.
MAYA_DS4_DRAFT_DEV=1: parse error on a 2-GPU group (expects member ids).one GPU; on Windows TP2 this build is on par with v1.1.26 for decode and
+12% prefill (FAT_ROWS / prompt-skip), on par with v1.1.25 otherwise.
DS4_ENGRAM_RAM(Linux only - a Windows request fails bydesign),
MAYA_DS4_HELPER(no spare VRAM on either card), the disk-skipknobs (0% SSD reads once the experts are in RAM).
@mw00 commented on GitHub (Oct 27, 2026):
Thank you for the single-variable tuning notes - they're useful for every Windows multi-GPU box. Your tuned result is going into the DeepSeek speed table for the next release: 2x A40, 48.9 tokens/s, ~664 tokens/s at 3K.
One check: the title says Maya-XS, but the log's expert sizes and the 339.5 GB folder look like Maya-S, so we listed it as Maya-S. Tell us if that's wrong and we'll fix the row.
On your points:
--calibrate(not the setup's speed calibration) measures the CPU-lane threads for DeepSeek, and v1.1.31 makes it follow the tensor-parallel groups the engine really forms (#435). We've notedMAYA_DS4_Q8_BATCHandMAYA_DS4_PIN_BY_NEEDon Windows as candidates for the defaults. Closing as done.