[GH-ISSUE #534] Speed report: RTX 4000 Ada 20 GB, Windows 11 - v1.1.25 + --prefill-chunk 16384 is the fastest Maya-XS config (20K prompt at 816 tok/s) #214

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

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

Speed report: RTX 4000 Ada 20 GB, Windows 11 — v1.1.25 + --prefill-chunk 16384 is the fastest Maya-XS config (20K prompt at 816 tok/s)

A speed report for the configuration this issue list has no entry for: a single 20 GB Ada card on Windows,
DeepSeek-V4.1-Flash Maya-XS with DSpark.

The box

GPU NVIDIA RTX 4000 Ada, 20 GB (sm_89), one card
CPU / RAM Xeon w7-3455 24c/48t, 255 GB DDR5
OS Windows 11, CUDA 13.0, driver 597
Model Maya-XS (DeepSeek-V4.1-Flash-1017-GGUF\Maya-XS\maya-ds4), DSpark on, --dspark-conf 0.65
Engine maya-ds4 v1.1.29 (and the saved v1.1.25 build for the A/B)
Protocol 12 warm-ups + 8 x 200 tokens, median of the last 6; unload+load before each series; prefill measured on synthetic prompts of 3,563 and 18,743 tokens, max_tokens 150, reasoning_effort low

The finding: the prompt chunk is the whole game on a 20 GB card

--max-context 262144 --tp 1 --threads on in all rows:

engine --prefill-chunk experts in VRAM prefill 3.8K prefill 20K decode
v1.1.29 4096 958 235.0 517.5 21.12
v1.1.29 8192 (setup default) 958 238.3 509.8 19.85
v1.1.29 12288 958 225.4 548.4 20.24
v1.1.29 16384 958 213.3 503.7 20.35
v1.1.29 20480 0 314.7 900.1 13.90
v1.1.25 16384 1007 300.8 830.6 19.99
v1.1.25 20480 0 304.2 844.2 13.76

The configuration to use on a 20 GB Ada (in maya-ds4.json terms):

exe: build/maya-ds4-v1125.exe          # the v1.1.25 build
--pack <Maya-XS/maya-ds4> --max-context 262144 --tp 1 --threads on \
  --prefill-chunk 16384 --dspark on --dspark-conf 0.65 --mmap-experts off

Re-measured with the long protocol: decode 20.96 tok/s, prefill 3.8K 322.1, prefill 20K 815.7, 1007 experts
in VRAM. Against the setup's default (v1.1.29 + chunk 8192 + --mmap-experts auto): prefill 20K +60%,
prefill 3.8K +35%, decode +5.6%
.

Why (and what it says about #438)

  • --mmap-experts is not involved: on v1.1.29, auto and off both copy the 14,786 CPU-lane experts into RAM
    (102.2 GB) and both read the 20K prompt at ~509 tok/s.
  • The chunk has two regimes, not a slope: at <= 16384 the expert cache keeps ~958-1007 experts and the prompt
    reads at ~500 (v1.1.29) or ~790-830 (v1.1.25); at >= 20480 the prompt slabs take that VRAM, the log says
    experts 0.00 GB (0 of 15744 in VRAM), the prompt jumps to ~900 and the decode collapses to ~13.9.
  • Bisected the v1.1.25 -> v1.1.26 range: the prefill cliff is exactly c8cb6ea ("DeepSeek prompts up to 1.5x
    faster on NVIDIA V100s..."), 783 tok/s at 8d071a1 before it, 162 after; the expert count drops 1007 -> 958
    in that commit. Reported in #438 with the table.

So for a 20 GB card the v1.1.25 build with a larger chunk is, as of v1.1.29, still the fastest DeepSeek
configuration we have found: it keeps the experts in VRAM and reads long prompts at DRAM speed.

Happy to test any new tag on this box (it reproduces the numbers above between runs within ~3%).

Originally created by @pietroMastro92 on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/534 # Speed report: RTX 4000 Ada 20 GB, Windows 11 — v1.1.25 + `--prefill-chunk 16384` is the fastest Maya-XS config (20K prompt at 816 tok/s) A speed report for the configuration this issue list has no entry for: a **single 20 GB Ada** card on Windows, DeepSeek-V4.1-Flash **Maya-XS** with DSpark. ## The box | | | | --- | --- | | GPU | NVIDIA RTX 4000 Ada, 20 GB (sm_89), one card | | CPU / RAM | Xeon w7-3455 24c/48t, 255 GB DDR5 | | OS | Windows 11, CUDA 13.0, driver 597 | | Model | Maya-XS (`DeepSeek-V4.1-Flash-1017-GGUF\Maya-XS\maya-ds4`), DSpark on, `--dspark-conf 0.65` | | Engine | `maya-ds4` v1.1.29 (and the saved v1.1.25 build for the A/B) | | Protocol | 12 warm-ups + 8 x 200 tokens, median of the last 6; unload+load before each series; prefill measured on synthetic prompts of 3,563 and 18,743 tokens, `max_tokens 150`, `reasoning_effort low` | ## The finding: the prompt chunk is the whole game on a 20 GB card `--max-context 262144 --tp 1 --threads on` in all rows: | engine | `--prefill-chunk` | experts in VRAM | prefill 3.8K | prefill 20K | decode | | --- | ---: | ---: | ---: | ---: | ---: | | v1.1.29 | 4096 | 958 | 235.0 | 517.5 | 21.12 | | v1.1.29 | 8192 (setup default) | 958 | 238.3 | 509.8 | 19.85 | | v1.1.29 | 12288 | 958 | 225.4 | 548.4 | 20.24 | | v1.1.29 | 16384 | 958 | 213.3 | 503.7 | 20.35 | | v1.1.29 | 20480 | **0** | 314.7 | 900.1 | 13.90 | | **v1.1.25** | **16384** | **1007** | **300.8** | **830.6** | **19.99** | | v1.1.25 | 20480 | 0 | 304.2 | 844.2 | 13.76 | **The configuration to use on a 20 GB Ada** (in `maya-ds4.json` terms): ``` exe: build/maya-ds4-v1125.exe # the v1.1.25 build --pack <Maya-XS/maya-ds4> --max-context 262144 --tp 1 --threads on \ --prefill-chunk 16384 --dspark on --dspark-conf 0.65 --mmap-experts off ``` Re-measured with the long protocol: **decode 20.96 tok/s, prefill 3.8K 322.1, prefill 20K 815.7**, 1007 experts in VRAM. Against the setup's default (v1.1.29 + chunk 8192 + `--mmap-experts auto`): **prefill 20K +60%, prefill 3.8K +35%, decode +5.6%**. ## Why (and what it says about #438) - `--mmap-experts` is not involved: on v1.1.29, `auto` and `off` both copy the 14,786 CPU-lane experts into RAM (102.2 GB) and both read the 20K prompt at ~509 tok/s. - The chunk has **two regimes**, not a slope: at <= 16384 the expert cache keeps ~958-1007 experts and the prompt reads at ~500 (v1.1.29) or ~790-830 (v1.1.25); at >= 20480 the prompt slabs take that VRAM, the log says `experts 0.00 GB (0 of 15744 in VRAM)`, the prompt jumps to ~900 and the decode collapses to ~13.9. - Bisected the v1.1.25 -> v1.1.26 range: the prefill cliff is exactly `c8cb6ea` ("DeepSeek prompts up to 1.5x faster on NVIDIA V100s..."), 783 tok/s at `8d071a1` before it, 162 after; the expert count drops 1007 -> 958 in that commit. Reported in #438 with the table. So for a 20 GB card the v1.1.25 build with a larger chunk is, as of v1.1.29, still the fastest DeepSeek configuration we have found: it keeps the experts in VRAM *and* reads long prompts at DRAM speed. Happy to test any new tag on this box (it reproduces the numbers above between runs within ~3%).
Author
Owner

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

Long-context check on the same config (added for completeness):

  • 54,083-token prompt read at 1,070.1 tok/s (50.5 s), well above the 20K figure above — the chunked path likes
    the bigger prompt, as expected.
  • Accuracy at that length: a needle (7Q2X-91VK) planted in the middle of the 54K prompt came back exactly
    right in an 11-token answer (reasoning_effort low, temperature 0).

So the v1.1.25 + --prefill-chunk 16384 configuration is not just the fastest one here, it also holds the
needle at 54K on this box. Numbers for the record:

context prefill decode needle
3.8K 322.1 20.96 -
20K 815.7 20.96 -
54K 1,070.1 - correct
<!-- gh-comment-id:6431789460 --> @pietroMastro92 commented on GitHub (Oct 27, 2026): Long-context check on the same config (added for completeness): - **54,083-token prompt read at 1,070.1 tok/s** (50.5 s), well above the 20K figure above — the chunked path likes the bigger prompt, as expected. - **Accuracy at that length**: a needle (`7Q2X-91VK`) planted in the middle of the 54K prompt came back exactly right in an 11-token answer (`reasoning_effort low`, temperature 0). So the v1.1.25 + `--prefill-chunk 16384` configuration is not just the fastest one here, it also holds the needle at 54K on this box. Numbers for the record: | context | prefill | decode | needle | | ---: | ---: | ---: | --- | | 3.8K | 322.1 | 20.96 | - | | 20K | 815.7 | 20.96 | - | | 54K | **1,070.1** | - | **correct** |
Author
Owner

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

One more knob turned up after the report above, on the same config: --dspark-conf 0.50 instead of the
setup's 0.65.

--dspark-conf decode prefill 3.8K prefill 20K
0.65 (setup default) 20.96 322.1 815.7
0.50 22.89 325.4 806.6
0.80 20.16 322.3 818.0

So on this box, with the winning config, 0.50 gives +9.2% decode. Worth noting: in an earlier night, with the
setup's config (--prefill-chunk 8192 --mmap-experts auto), 0.65 beat 0.50 - the drafter confidence has to be
re-tuned when the prompt configuration changes, it is not a fixed "best value".

Final config here: v1.1.25 build, --prefill-chunk 16384 --dspark on --dspark-conf 0.50 --mmap-experts off,
decode 22.89, prefill 3.8K 325 / 20K 807 / 54K 1,070, needle at 54K correct.

<!-- gh-comment-id:6431879827 --> @pietroMastro92 commented on GitHub (Oct 27, 2026): One more knob turned up after the report above, on the same config: **`--dspark-conf 0.50`** instead of the setup's 0.65. | `--dspark-conf` | decode | prefill 3.8K | prefill 20K | | ---: | ---: | ---: | ---: | | 0.65 (setup default) | 20.96 | 322.1 | 815.7 | | **0.50** | **22.89** | 325.4 | 806.6 | | 0.80 | 20.16 | 322.3 | 818.0 | So on this box, with the winning config, **0.50 gives +9.2% decode**. Worth noting: in an earlier night, with the setup's config (`--prefill-chunk 8192 --mmap-experts auto`), 0.65 beat 0.50 - the drafter confidence has to be re-tuned when the prompt configuration changes, it is not a fixed "best value". Final config here: v1.1.25 build, `--prefill-chunk 16384 --dspark on --dspark-conf 0.50 --mmap-experts off`, decode 22.89, prefill 3.8K 325 / 20K 807 / 54K 1,070, needle at 54K correct.
Author
Owner

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

Thank you for the clean protocol and the bisect - finding the exact commit saves a lot of guessing. Your v1.1.29 row (Maya-XS, 21.1 tokens/s, 518 tokens/s at 20K) goes into the DeepSeek speed table for the next release, the first single 20 GB card there.

The prompt regression itself is followed in #438, where your bisect is; we'll continue there. The --dspark-conf 0.50 finding is useful too: the drafter's confidence bar depends on the rest of the setup. Closing this one so the discussion stays in one place.

<!-- gh-comment-id:6446353335 --> @mw00 commented on GitHub (Oct 27, 2026): Thank you for the clean protocol and the bisect - finding the exact commit saves a lot of guessing. Your v1.1.29 row (Maya-XS, 21.1 tokens/s, 518 tokens/s at 20K) goes into the DeepSeek speed table for the next release, the first single 20 GB card there. The prompt regression itself is followed in #438, where your bisect is; we'll continue there. The `--dspark-conf 0.50` finding is useful too: the drafter's confidence bar depends on the rest of the setup. Closing this one so the discussion stays in one place.
Author
Owner

@pietroMastro92 commented on GitHub (Oct 28, 2026):

Two more results on the same box, both from the 256K / several-requests questions:

1. 256K context works and stays accurate

model context prompt result
DeepSeek Maya-XS 262144 237,083 tok ~789 tok/s read, needle 7Q2X-91VK answered correctly
GLM-5.3-Flash Maya-S24 262144 (was 122880) 237,062 tok ~829 tok/s read, needle answered correctly

The server refuses an over-length prompt cleanly ("maximum context length is 262144 tokens ... requests are
never truncated"), so 256K is safe to use.

The GLM's higher context is not free, measured back to back in the same session:

ctx 122.880 ctx 262.144 delta
decode 16.47 15.83 -4%
prefill 3.8K 339.3 293.5 -13%
prefill 20K 700.2 670.4 -4%

2. Several requests at once (--parallel, the v1.1.34 feature) - measured

Same prompt, 200 tokens, warm-ups, then N sequential requests vs N simultaneous ones; speedup is aggregate
tokens/s parallel / aggregate sequential. On this 20 GB card:

stack mechanism speedup
GLM-5.3-Flash engine --parallel 2 1.14x
GLM-5.3-Flash engine --parallel 3 0.76x
DeepSeek Maya-XS engine --parallel 2 0.82x

Two practical notes for anyone trying it:

  • --parallel must be an engine argument (in the config's args), not a parallel key in the config and
    not a server flag: with the key only, /props stays at slots: 1.
  • On a 20 GB card where the experts live in RAM, parallelism does not pay for DeepSeek: the two slots
    share the same RAM bandwidth and each runs slower, so the aggregate falls 18% below sequential. The release
    note's 1.6x is on a V100 with most experts in VRAM, which is a different regime. For GLM, 2 slots gives
    +14% (per-request latency grows from ~6.5 s to ~14 s), 3 is already over-subscribed.
<!-- gh-comment-id:6457681380 --> @pietroMastro92 commented on GitHub (Oct 28, 2026): Two more results on the same box, both from the 256K / several-requests questions: ## 1. 256K context works and stays accurate | model | context | prompt | result | | --- | ---: | ---: | --- | | DeepSeek Maya-XS | 262144 | 237,083 tok | **~789 tok/s** read, needle `7Q2X-91VK` answered correctly | | GLM-5.3-Flash Maya-S24 | 262144 (was 122880) | 237,062 tok | **~829 tok/s** read, needle answered correctly | The server refuses an over-length prompt cleanly ("maximum context length is 262144 tokens ... requests are never truncated"), so 256K is safe to use. The GLM's higher context is not free, measured back to back in the same session: | | ctx 122.880 | ctx 262.144 | delta | | --- | ---: | ---: | ---: | | decode | 16.47 | 15.83 | -4% | | prefill 3.8K | 339.3 | 293.5 | -13% | | prefill 20K | 700.2 | 670.4 | -4% | ## 2. Several requests at once (`--parallel`, the v1.1.34 feature) - measured Same prompt, 200 tokens, warm-ups, then N sequential requests vs N simultaneous ones; speedup is aggregate tokens/s parallel / aggregate sequential. On this 20 GB card: | stack | mechanism | speedup | | --- | --- | ---: | | GLM-5.3-Flash | engine `--parallel 2` | **1.14x** | | GLM-5.3-Flash | engine `--parallel 3` | 0.76x | | **DeepSeek Maya-XS** | engine `--parallel 2` | **0.82x** | Two practical notes for anyone trying it: - **`--parallel` must be an engine argument** (in the config's `args`), not a `parallel` key in the config and not a server flag: with the key only, `/props` stays at `slots: 1`. - **On a 20 GB card where the experts live in RAM, parallelism does not pay for DeepSeek**: the two slots share the same RAM bandwidth and each runs slower, so the aggregate falls 18% below sequential. The release note's 1.6x is on a V100 with most experts in VRAM, which is a different regime. For GLM, 2 slots gives +14% (per-request latency grows from ~6.5 s to ~14 s), 3 is already over-subscribed.
Author
Owner

@pietroMastro92 commented on GitHub (Oct 28, 2026):

Correction and completion on the --parallel measurement: my first long-prompt test used the same prompt
twice, so the prefix cache made the second request nearly free in the sequential arm and the numbers were
meaningless. With fresh, different prompts (2 x 17,880 tokens) the picture is:

scenario sequential --parallel 2 speedup
GLM, short prompts (200 tok) 15.5 tok/s 17.7 tok/s 1.14x
GLM, long fresh prompts (17.9K each) 113.0 s 111.4 s 1.00x

So parallelism pays when decode dominates and is neutral when the prompt read dominates (the prefill is
bandwidth-bound and the two slots share it). Practical reading: for agent sessions with long prompts, 2 slots
do not hurt but do not help either; for short chats it is +14%.

Worth writing down for anyone measuring this: always use fresh prompts per arm, otherwise the conversation
cache silently makes one arm free.

<!-- gh-comment-id:6457775405 --> @pietroMastro92 commented on GitHub (Oct 28, 2026): Correction and completion on the `--parallel` measurement: my first long-prompt test used the *same* prompt twice, so the prefix cache made the second request nearly free in the sequential arm and the numbers were meaningless. With **fresh, different** prompts (2 x 17,880 tokens) the picture is: | scenario | sequential | `--parallel 2` | speedup | | --- | ---: | ---: | ---: | | GLM, short prompts (200 tok) | 15.5 tok/s | 17.7 tok/s | **1.14x** | | GLM, long fresh prompts (17.9K each) | 113.0 s | 111.4 s | **1.00x** | So parallelism pays when decode dominates and is neutral when the prompt read dominates (the prefill is bandwidth-bound and the two slots share it). Practical reading: for agent sessions with long prompts, 2 slots do not hurt but do not help either; for short chats it is +14%. Worth writing down for anyone measuring this: always use fresh prompts per arm, otherwise the conversation cache silently makes one arm free.
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#214
No description provided.