[GH-ISSUE #497] Speed report: 4x Tesla V100 32GB, DeepSeek-V4.1-Flash UD-Q4_K_XL (501 GB) — 31 tok/s at 64K on v1.1.27, and a correction on systemd-oomd #199

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

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

UD-Q4_K_XL on four V100s, v1.1.27, ./maya.sh --bench (greedy, thinking off),
--tp 2, DSpark on. Three runs at 64K:

Run CSV Photosynthesis Canvas Mean Prefill 8K Prefill 2K Load
1 34.0 20.7 35.1 29.9 176 76 93 s
2 32.9 27.3 37.5 32.6 176 71 81 s
3 30.5 25.7 36.4 30.9 175 66 66 s

~31 tok/s decode, 176 prefill at 8K. Against UD-Q8_K_XL on the same machine and
version (26.7 / 178), Q4 is about 16% faster to write and identical to read. The two
quants are only 7 GB apart on disk and share the same 202.8 GB MXFP8 Engram shard.

Prose routes worse than code here

The three bench prompts split consistently: the two code prompts average 32.5 and
36.3 tok/s, the prose one 24.6 - about 30% slower, in all three runs. The same
ordering shows up on Maya-S and on GLM Maya-S-v2 on this machine, just less sharply.
If the shipped expert profile is built on a code-leaning corpus, prose prompts would
route to the RAM tier more often. Not something I can verify from outside, but the
effect is reproducible.

256K context

Changing --max-context to 262144 and nothing else:

  • loads in the same 64-74 s, no memory trouble
  • live: 25.6 tok/s decode, 143 tok/s prefill on a 7,199-token prompt
  • VRAM in use 117.6 of 128 GB, 4,778 experts cached (down from 5,283 for the Q8 at
    64K), RAM 210.2 GB
  • VRAM hit 76.3%, CPU lane 61.68 experts/token - far more CPU work than Maya-S
    needs here (96.6% hit, 8.92/token)
  • "Where the experts live": 4,778 VRAM, 10,582 pinned RAM, 0 SSD only, disk reads
    0.10 MB/token

So the whole 501 GB model sits in VRAM + RAM with the SSD out of the loop, but only a
quarter of the experts are on the cards. Prefill is what limits the long window in
practice: at 143 tok/s a full 256K prompt is ~30 minutes to read.

Correction to #467: systemd-oomd still bites on v1.1.27

That report said v1.1.27 no longer triggers the oomd kill. That was wrong - the Q8's
188 GB tier simply sits under the threshold. UD-Q4_K_XL needs ~196-205 GB and is
killed every time on stock Ubuntu 22.04:

Oct 25 14:14:06 systemd-oomd[1092]: Killed /user.slice/user-1000.slice/
user@1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-....scope
due to memory pressure for /user.slice/user-1000.slice/user@1000.service
being 61.54% > 50.00% for > 20s with reclaim activity
systemd[8220]: vte-spawn-....scope: systemd-oomd killed 32 process(es) in this unit

It happens inside --setup's own speed calibration, so a fresh install of this
model fails partway through on a stock system: the window vanishes, --dspark on is
left inherited from the previous config rather than measured, and the setup log ends
at [1/2] without drafting ... still starting (80 s). Nothing in dmesg, no error
anywhere except the journal. The machine had ~500 GB free throughout; it is sustained
page-cache reclaim driving PSI, not exhaustion.

Same machine, same version, same stock settings:

Model CPU-lane tier Result
UD-Q8_K_XL 188.0 GB loads fine
UD-Q4_K_XL 196.1-205.6 GB killed

Workaround: sudo systemctl stop systemd-oomd before starting. All the numbers above
were measured with it stopped.

A warning in --check when oomd is active and the tier is large would cover it, the
way the Windows page-file warning does in #20.

Machine

  • 4x Tesla V100-PCIE-32GB (128 GB VRAM), PCIe Gen3 x16, driver 580.178.04, CUDA 12.8
  • 2x Xeon E5-2630 v4, 40 threads, 2 NUMA nodes
  • 504 GB DDR4-2133
  • Samsung 990 PRO 4 TB NVMe (PCIe 3.0, 3,436 MB/s read)
  • Ubuntu 22.04

The three DeepSeek quants on this machine, for comparison

Model Size Decode Prefill 8K
Maya-S (v1.1.26, --mmap-experts off) 339 GB 41.4 556
UD-Q4_K_XL (v1.1.27) 501 GB 31 176
UD-Q8_K_XL (v1.1.27) 508 GB 26.7 178

Maya-S is still the fastest by a wide margin here, and its prefill is 3x either
unsloth quant.

Originally created by @HansStrupat on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/497 UD-Q4_K_XL on four V100s, v1.1.27, `./maya.sh --bench` (greedy, thinking off), `--tp 2`, DSpark on. Three runs at 64K: | Run | CSV | Photosynthesis | Canvas | Mean | Prefill 8K | Prefill 2K | Load | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | 1 | 34.0 | 20.7 | 35.1 | 29.9 | 176 | 76 | 93 s | | 2 | 32.9 | 27.3 | 37.5 | 32.6 | 176 | 71 | 81 s | | 3 | 30.5 | 25.7 | 36.4 | 30.9 | 175 | 66 | 66 s | **~31 tok/s decode, 176 prefill at 8K.** Against UD-Q8_K_XL on the same machine and version (26.7 / 178), Q4 is about 16% faster to write and identical to read. The two quants are only 7 GB apart on disk and share the same 202.8 GB MXFP8 Engram shard. ## Prose routes worse than code here The three bench prompts split consistently: the two code prompts average 32.5 and 36.3 tok/s, the prose one 24.6 - about 30% slower, in all three runs. The same ordering shows up on Maya-S and on GLM Maya-S-v2 on this machine, just less sharply. If the shipped expert profile is built on a code-leaning corpus, prose prompts would route to the RAM tier more often. Not something I can verify from outside, but the effect is reproducible. ## 256K context Changing `--max-context` to 262144 and nothing else: - loads in the same 64-74 s, no memory trouble - live: 25.6 tok/s decode, 143 tok/s prefill on a 7,199-token prompt - VRAM in use 117.6 of 128 GB, 4,778 experts cached (down from 5,283 for the Q8 at 64K), RAM 210.2 GB - **VRAM hit 76.3%, CPU lane 61.68 experts/token** - far more CPU work than Maya-S needs here (96.6% hit, 8.92/token) - "Where the experts live": 4,778 VRAM, 10,582 pinned RAM, **0 SSD only**, disk reads 0.10 MB/token So the whole 501 GB model sits in VRAM + RAM with the SSD out of the loop, but only a quarter of the experts are on the cards. Prefill is what limits the long window in practice: at 143 tok/s a full 256K prompt is ~30 minutes to read. ## Correction to #467: systemd-oomd still bites on v1.1.27 That report said v1.1.27 no longer triggers the oomd kill. That was wrong - the Q8's 188 GB tier simply sits under the threshold. UD-Q4_K_XL needs ~196-205 GB and is killed every time on stock Ubuntu 22.04: > Oct 25 14:14:06 systemd-oomd[1092]: Killed /user.slice/user-1000.slice/ > user@1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-....scope > due to memory pressure for /user.slice/user-1000.slice/user@1000.service > being 61.54% > 50.00% for > 20s with reclaim activity > systemd[8220]: vte-spawn-....scope: systemd-oomd killed 32 process(es) in this unit It happens **inside `--setup`'s own speed calibration**, so a fresh install of this model fails partway through on a stock system: the window vanishes, `--dspark on` is left inherited from the previous config rather than measured, and the setup log ends at `[1/2] without drafting ... still starting (80 s)`. Nothing in `dmesg`, no error anywhere except the journal. The machine had ~500 GB free throughout; it is sustained page-cache reclaim driving PSI, not exhaustion. Same machine, same version, same stock settings: | Model | CPU-lane tier | Result | | --- | ---: | --- | | UD-Q8_K_XL | 188.0 GB | loads fine | | UD-Q4_K_XL | 196.1-205.6 GB | killed | Workaround: `sudo systemctl stop systemd-oomd` before starting. All the numbers above were measured with it stopped. A warning in `--check` when oomd is active and the tier is large would cover it, the way the Windows page-file warning does in #20. ## Machine - 4x Tesla V100-PCIE-32GB (128 GB VRAM), PCIe Gen3 x16, driver 580.178.04, CUDA 12.8 - 2x Xeon E5-2630 v4, 40 threads, 2 NUMA nodes - 504 GB DDR4-2133 - Samsung 990 PRO 4 TB NVMe (PCIe 3.0, 3,436 MB/s read) - Ubuntu 22.04 ## The three DeepSeek quants on this machine, for comparison | Model | Size | Decode | Prefill 8K | | --- | ---: | ---: | ---: | | Maya-S (v1.1.26, `--mmap-experts off`) | 339 GB | 41.4 | 556 | | UD-Q4_K_XL (v1.1.27) | 501 GB | 31 | 176 | | UD-Q8_K_XL (v1.1.27) | 508 GB | 26.7 | 178 | Maya-S is still the fastest by a wide margin here, and its prefill is 3x either unsloth quant.
Author
Owner

@HansStrupat commented on GitHub (Oct 26, 2026):

ds4-q4-bench.txt
ds4-q4-bench-2.txt
ds4-q4-bench-3.txt

<!-- gh-comment-id:6405536527 --> @HansStrupat commented on GitHub (Oct 26, 2026): [ds4-q4-bench.txt](https://github.com/user-attachments/files/33941924/ds4-q4-bench.txt) [ds4-q4-bench-2.txt](https://github.com/user-attachments/files/33941925/ds4-q4-bench-2.txt) [ds4-q4-bench-3.txt](https://github.com/user-attachments/files/33941923/ds4-q4-bench-3.txt)
Author
Owner

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

Thank you - the three DeepSeek quants on the same four V100s make a clear comparison, and they're now one row in the speed table for the next release (Maya-S 41.4, UD-Q4_K_XL 31, UD-Q8_K_XL 26.7 tokens/s).

Thanks especially for the systemd-oomd correction. A setup that vanishes with nothing in dmesg is hard to diagnose, and today neither --check nor the docs mention it. We're keeping this issue open until there's a warning for it. Until then, stopping systemd-oomd before the start is the workaround.

<!-- gh-comment-id:6446359683 --> @mw00 commented on GitHub (Oct 27, 2026): Thank you - the three DeepSeek quants on the same four V100s make a clear comparison, and they're now one row in the speed table for the next release (Maya-S 41.4, UD-Q4_K_XL 31, UD-Q8_K_XL 26.7 tokens/s). Thanks especially for the systemd-oomd correction. A setup that vanishes with nothing in `dmesg` is hard to diagnose, and today neither `--check` nor the docs mention it. We're keeping this issue open until there's a warning for it. Until then, stopping `systemd-oomd` before the start is the workaround.
Author
Owner

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

v1.1.34's --check and setup warn when systemd-oomd is running on Linux. docs/SETUP.md ("Linux: systemd-oomd") explains why it can end the session while a large RAM tier loads, and how to stop it for a run or exempt user sessions. Thanks for the correction and the journal lines. Closing.

Released in v1.1.34: https://github.com/mw00/project-maya/releases/tag/v1.1.34

<!-- gh-comment-id:6456007233 --> @mw00 commented on GitHub (Oct 27, 2026): v1.1.34's `--check` and setup warn when `systemd-oomd` is running on Linux. docs/SETUP.md ("Linux: systemd-oomd") explains why it can end the session while a large RAM tier loads, and how to stop it for a run or exempt user sessions. Thanks for the correction and the journal lines. Closing. Released in **v1.1.34**: https://github.com/mw00/project-maya/releases/tag/v1.1.34
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#199
No description provided.