mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #577] Speed report: 1x L40S 48 GB + 32-core Xeon + 504 GB RAM, v1.1.32 - six models side by side: DeepSeek-V4.1-Flash 43 tok/s, GLM-5.3-Flash Q4 / Q5 / Q8 26 / 22 / 18, MiniMax-M3.1-Flash Maya-S 23 / EXL3 17 #240
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#240
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 @talisp on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/577
In short
We ran every model we have on the same box, the same Maya (v1.1.32) and the same benchmark, one after the other on one afternoon. The box has one 48 GB GPU and a lot of RAM, so in every case most of the model sits in RAM and the CPU computes part of each token. DeepSeek-V4.1-Flash is the clear winner here: 43 tok/s decode and 78/78 on our 3D tasks. GLM-5.3-Flash comes next and reads long prompts the fastest of all (~2,000 tok/s at 185K tokens): 26 tok/s with UD-Q4_K_XL, 22 with UD-Q5_K_XL, 18 with Q8_0. MiniMax-M3.1-Flash is the slowest. Maya-S decodes 40% faster than the EXL3 (23 against 17 tok/s), but it scored lower on the 3D tasks (60/78 against 67/78), and both read long prompts at only 270-670 tok/s.
What we take from it, for a box like this one (one big GPU, lots of RAM, a fast server CPU):
DS4_STREAM=0(#551).Why DeepSeek is the fastest here, though on paper it is the biggest
First, a naming trap: "UD-Q8_K_XL" doesn't mean DeepSeek runs in 8 bits. DeepSeek ships its routed experts in FP4 (MXFP4;
"expert_dtype": "fp4"in itsconfig.json), and Unsloth's "UD-Q8_K_XL" keeps them exactly as shipped. "Q8" is the name of Unsloth's quality tier, and it applies to the rest: the Engram tables are 8-bit (MXFP8), and the other weights are BF16, up-cast from DeepSeek's FP8. It's the same story as MiniMax's "UD-Q8_K_XL" in #559. So the DeepSeek we ran is, in its experts, the original 4-bit model. The MiniMax and GLM quants are re-quantized: MiniMax from its original NVFP4, and GLM from its original FP8.Second, a quarter of DeepSeek's "size" is a dictionary, not weights it computes with. DeepSeek-V4.1-Flash has ~748B parameters: a 552B backbone plus 196B of Engram tables (two hash tables, in layers 1 and 14, each ~384M rows × 256 values; 203 GB of the file). An Engram table isn't multiplied like a weight matrix. The model hashes the last few tokens (an n-gram) and looks up the matching rows, like looking a word up in a dictionary. Each token reads 48 rows of 264 bytes, i.e. ~13 KB out of 203 GB. The rows depend only on the token ids, so Maya asks for them as soon as the tokens are known. It reads them from the model's files on the SSD on its own threads, keeps a small row cache (≤ 256 MB), and has them ready before layer 1 / layer 14 needs them. So the 203 GB never has to be in RAM or VRAM. On this box the engine holds ~297 GB of experts (26 GB in VRAM, 270 GB in RAM) and leaves the Engram tables on the disk.
Third, per token DeepSeek computes fewer weights than MiniMax, even though its backbone is bigger. DeepSeek's backbone (552B) is larger than all of MiniMax (~428B), and it does take more memory here (~297 GB against ~194 GB for the EXL3). But each token uses only a small part of it, and DeepSeek's part is the smaller one:
All the numbers, configs and logs follow, written so another person (or an LLM) can pick a model from them.
Technical notes
Machine
posix_fadvise(DONTNEED)) while no engine mapped them, so no start ran on a full page cache (see #565).Benchmark
reasoning_effort: low. The numbers are the server's owntimings.finish_reason: length. "Decode" is the mean of the six. Then one more 400-token answer after a ~40K-token prompt.cache_n: 0). The real token counts depend on the tokenizer, and are listed below.Configs
--max-context 262144 --tp 2 --threads on --cpu-threads 28 --mmap-experts off --dspark onDS4_STREAM=0 DS4_REQUIRE_ALL_RAM=1 DS4_STREAM_WIN=0 DS4_LAND=0 DS4_STREAM_ZC=0 MAYA_DS4_SLOT_KEEP=1 MAYA_DS4_SLOT_CAP=8--max-context 524288 --expert-cache auto --prefill auto --kv-streaming on --expert-profile data/expert-profile-glm.bin(whatmaya.sh --setup --yes --gguf-dir ... --context 524288wrote)--max-context 262144 --kv-streaming on --vision on --dspark on --cpu-threads 27 --chunk 8192 --profile data/expert-profile-mm3.bin--cpu-threads 27on maya-mm3: it gives 28 threads, which leaves 4 cores free. That was the fastest setting here (#552).Speed (v1.1.32)
--kv int8) gave 22.8 tok/s and 1,267 / 1,717 / 1,867 tok/s. That is the same within noise.Where the weights sit, and the CPU lane (start-up logs)
an expert 0.13-0.21 msan expert 0.118 ms on the CPU vs 0.607 ms over PCIe0.143 ms vs 0.736 ms0.203 ms vs 1.069 msan expert 0.30 ms (+0.25 ms each more), 0.59 ms to copy - 1 staged0.37-0.55 ms (+0.27-0.29 ms each more), 1.14 ms to copy - 0 or 1 stagedHost memory (
/proc/<engine>/statusafter the load, andfree -g)3D task quality (26 tasks a round)
Per category, out of 5 / 8 / 2 / 5 / 5 / 1:
DS4_STREAM=0);Compared with other reports here
Machine-readable summary
Related issues from this box
DS4_STREAM=0.Thanks a lot for Maya, and for how quickly the fixes keep landing. Having three big MoE models run on one 48 GB card at all is pretty great. Happy to run any branch or measurement on this box.
@talisp commented on GitHub (Oct 28, 2026):
An addition to this report: Qwen3.8-Flash-Next on Maya and on Strata 0.2.7, same weights, same box. Maya v1.1.34 added CYBER-FROST-3.8-PS (a cybersecurity fine-tune of Qwen3.8-Flash-Next, one Q5_K_M GGUF of 112.5 GB), so we ran it on both engines.
Result: Strata decodes it ~70% faster (134.7 tok/s on average against 78.9 on Maya). Maya reads long prompts faster (3,780 against 2,740 tok/s at 190K tokens). Per generated token both do the same work: about the same expert lookups, cache hit rate and draft acceptance. Maya's Qwen engine is 0.1.27 and Strata's is 0.1.52, so it looks like the decode work Strata has done since then. Asked for it in #604. We ruled out the n-gram (PLE) table reads and the KV format (below).
Strata 0.2.7 doesn't load this GGUF as published: it keeps the NextN/MTP layer inside (block_count 49). We made a copy with only the header changed (tensor data byte-identical) and reported it there: Niko1221/Strata#4449. Maya loads the original file as is.
Decode and prompt reading (tok/s)
One start per row, the model files' page cache dropped before each. Decode is the mean of six code prompts (600 tokens each, temperature 0); prompts of 11.4K, 46.9K and 190.4K tokens.
--ple-row-cache 320001536(the whole table)--ple-io mmap--ple-io mmap --kv fp16--mtpfrom the 0.1.45 setup)--spec 4), VRAM in use (~43.4 GB).--ple-io ram, 26.8 GiB, chosen by its residency policy); Maya reads it from the SSD (--ple-io direct, the default; it has only direct and mmap). A row cache as big as the table changed nothing (81.32), so that's not it. Maya's KV is int8 and Strata's fp16; fp16 on Maya changed nothing either. Maya keeps 10,882 experts in VRAM (32.2 GiB), Strata 11,667 (34.5 GiB).What Maya can't run here
--nativedoesn't findtoken_embd(#150). Maya's Qwen path runs only its pinned single-file model.Setup
1× NVIDIA L40S-48Q (vGPU, 48 GB), Xeon Platinum 8580 VM (32 vCPUs, no SMT), ~504 GB RAM, Ubuntu 22.04, Linux 6.8, CUDA 12.9.
maya-cyber-frost.jsonas the v1.1.34 setup wrote it:--spec 4 --prefill auto --expert-cache auto --max-context 262144 --kv int8 --mtp <pack>/mtp --expert-profile <pack>/expert-profile.bin.--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 262144 --kv fp16 --kv-resident 32768 --conversation-cache-mib 32768 --conversation-cache-slots 4 --conversation-cache-min-tokens 4000 --vram-reserve-mib 700,STRATA_ROUTE_TAIL_SKIP=0.