[GH-ISSUE #342] Speed report: RX 7900 XTX 24 GB (Windows, HIP), DeepSeek Maya-S, v1.1.20 long-prompt skip: 26K prompt 224 s -> 94 s #133

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

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

Setup: Windows 11, RX 7900 XTX 24 GB (gfx1100, HIP build from the v1.1.20 tag), Ryzen 9 7900X3D, 64 GB DDR5, NVMe. DeepSeek-V4.1-Flash-1017 Maya-S, experts read in place from the files (647 of 15,360 in VRAM), --tp 2 --dspark none, the same frozen expert profile copied for each start, temperature 0, thinking off, fresh prompts.

Prompt read from the engine's serve: prompt line, two starts each, interleaved:

prompt tokens v1.1.17 v1.1.20, MAYA_DS4_PROMPT_SKIP=0 v1.1.20 default (1) =2
4,157 52.6 / 51.6 s 54.3 / 54.2 s 50.3 / 50.4 s 38.2 / 38.0 s
8,002 61.3 / 61.4 s 65.5 / 65.2 s 55.6 / 56.1 s 42.3 / 43.5 s
26,142 224.2 / 226.2 s 135.5 / 135.5 s 93.7 / 93.8 s 80.1 / 80.5 s

The 26K prompt is 2.4x faster than on v1.1.17, with the right answer in every run. Most of the gain without the skip is v1.1.18's single 32K chunk (146.6 GB of experts read instead of 579.4 GB). The skip adds +45% on top. With the skip off, v1.1.20 is a little slower than v1.1.17 on the 4K and 8K prompts (+3 to +7%).

Answers: last-row logits of each prompt against the skip off, from DS4_SERVE_DUMP, with MAYA_DS4_STREAM=0 so that two starts are bit-identical (see #329):

4,157 8,002 26,142
skip 1 (default) KL 6.4e-4, same greedy text for 27 of 30 tokens KL 6.1e-3, 30 of 30 KL 8.8e-5
skip 2 KL 1.6e-2, parts at token 2 KL 6.6e-3, parts at token 8 KL 3.2e-4

So the default skip is close but not exact here: the 8K prompt's last row is at KL 6e-3, against the 1.5e-4 in #318. It may be the CPU-lane rounding the docs describe rather than the skip itself (the prompt path puts 0.2-0.4% of the experts on the lane, and the skip changes which experts the prompt reads). I have not separated the two.

Decode on this PC is in #329.

Originally created by @jerem91150 on GitHub (Oct 21, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/342 Setup: Windows 11, RX 7900 XTX 24 GB (gfx1100, HIP build from the v1.1.20 tag), Ryzen 9 7900X3D, 64 GB DDR5, NVMe. DeepSeek-V4.1-Flash-1017 Maya-S, experts read in place from the files (647 of 15,360 in VRAM), `--tp 2 --dspark none`, the same frozen expert profile copied for each start, temperature 0, thinking off, fresh prompts. Prompt read from the engine's `serve: prompt` line, two starts each, interleaved: | prompt tokens | v1.1.17 | v1.1.20, `MAYA_DS4_PROMPT_SKIP=0` | v1.1.20 default (1) | `=2` | |---|---|---|---|---| | 4,157 | 52.6 / 51.6 s | 54.3 / 54.2 s | 50.3 / 50.4 s | 38.2 / 38.0 s | | 8,002 | 61.3 / 61.4 s | 65.5 / 65.2 s | 55.6 / 56.1 s | 42.3 / 43.5 s | | 26,142 | 224.2 / 226.2 s | 135.5 / 135.5 s | 93.7 / 93.8 s | 80.1 / 80.5 s | The 26K prompt is 2.4x faster than on v1.1.17, with the right answer in every run. Most of the gain without the skip is v1.1.18's single 32K chunk (146.6 GB of experts read instead of 579.4 GB). The skip adds +45% on top. With the skip off, v1.1.20 is a little slower than v1.1.17 on the 4K and 8K prompts (+3 to +7%). Answers: last-row logits of each prompt against the skip off, from `DS4_SERVE_DUMP`, with `MAYA_DS4_STREAM=0` so that two starts are bit-identical (see #329): | | 4,157 | 8,002 | 26,142 | |---|---|---|---| | skip 1 (default) | KL 6.4e-4, same greedy text for 27 of 30 tokens | KL 6.1e-3, 30 of 30 | KL 8.8e-5 | | skip 2 | KL 1.6e-2, parts at token 2 | KL 6.6e-3, parts at token 8 | KL 3.2e-4 | So the default skip is close but not exact here: the 8K prompt's last row is at KL 6e-3, against the 1.5e-4 in #318. It may be the CPU-lane rounding the docs describe rather than the skip itself (the prompt path puts 0.2-0.4% of the experts on the lane, and the skip changes which experts the prompt reads). I have not separated the two. Decode on this PC is in #329.
Author
Owner

@jerem91150 commented on GitHub (Oct 22, 2026):

v1.1.21 on the same RX 7900 XTX (Windows, HIP build for gfx1100 with hipBLASLt linked), DeepSeek Maya-S, the setup's config, MAYA_DS4_STREAM=0, the default prompt skip, the same frozen expert profile, temperature 0, starts in the order 1.1.21 / 1.1.20 / 1.1.21 / 1.1.21 / 1.1.20. Prompt read time from the engine's serve: prompt lines:

prompt v1.1.20 v1.1.21
4,157 tokens 121.8 (slow outlier) / 54.2 s 51.1 (first start) / 49.5 / 49.2 s
8,002 tokens 60.2 / 58.7 s 51.3 / 50.2 / 52.0 s
26,142 tokens 106.5 / 98.9 s 74.6 (first start) / 63.3 / 63.4 s
decode, 200 tokens 2.82 / 2.81 tok/s 2.60 / 3.00 / 2.93 tok/s

So about 1.6x on the 26K prompt and 10-15% on 4K and 8K, where most of the time goes into reading experts from the NVMe. Not 2.4x on this card, but a clear gain, and the 26K answer is right everywhere. A screen-streaming encoder (ffmpeg, h264_amf) was running on the PC during the whole test, so these numbers are lower than in my first report; both versions ran under the same conditions.

Each version is bit-identical to itself across starts with MAYA_DS4_STREAM=0. v1.1.21 against v1.1.20: last-row KL 1.2e-2 on 4K (greedy text differs from token 17), 4.3e-2 on 8K (from token 6), 4.8e-5 on 26K (same answer), 4.9e-3 on a free 200-token text (from token 65). One start with each switch from the release notes:

v1.1.21 with 4K / 8K / 26K read vs normal v1.1.21 (last-row KL 4K / 8K / 26K)
(normal) 49.4 / 51.1 / 63.3 s
DS4_LT=0 54.0 / 55.0 / 83.0 s 1.5e-2 / 3.1e-2 / 1.9e-4
DS4_ATTN_WMMA=0 50.5 / 122.9 (slow) / 78.3 s 1.5e-2 / 6.9e-2 / 3.1e-5
MAYA_DS4_NO_TC=1 48.1 / 49.1 / 73.7 s 8.6e-3 / 5.1e-2 / 7.9e-5
DS4_ROUTER_ROWS=0 48.0 / 48.7 / 66.6 s bit-identical

So on this card the 26K gain comes from hipBLASLt (~20 s), the WMMA attention (~15 s) and the experts on the matrix cores (~10 s); the 8-row router keeps the results bit for bit, as the notes say. The other three each round differently and none of them alone brings back v1.1.20's logits, so the difference looks like the sum of normal rounding changes rather than one broken kernel. This 8K prompt is just sensitive: any of these changes moves it by a KL of 2-7e-2.

<!-- gh-comment-id:6342342464 --> @jerem91150 commented on GitHub (Oct 22, 2026): v1.1.21 on the same RX 7900 XTX (Windows, HIP build for gfx1100 with hipBLASLt linked), DeepSeek Maya-S, the setup's config, `MAYA_DS4_STREAM=0`, the default prompt skip, the same frozen expert profile, temperature 0, starts in the order 1.1.21 / 1.1.20 / 1.1.21 / 1.1.21 / 1.1.20. Prompt read time from the engine's `serve: prompt` lines: | prompt | v1.1.20 | v1.1.21 | |---|---|---| | 4,157 tokens | 121.8 (slow outlier) / 54.2 s | 51.1 (first start) / 49.5 / 49.2 s | | 8,002 tokens | 60.2 / 58.7 s | 51.3 / 50.2 / 52.0 s | | 26,142 tokens | 106.5 / 98.9 s | 74.6 (first start) / 63.3 / 63.4 s | | decode, 200 tokens | 2.82 / 2.81 tok/s | 2.60 / 3.00 / 2.93 tok/s | So about 1.6x on the 26K prompt and 10-15% on 4K and 8K, where most of the time goes into reading experts from the NVMe. Not 2.4x on this card, but a clear gain, and the 26K answer is right everywhere. A screen-streaming encoder (ffmpeg, h264_amf) was running on the PC during the whole test, so these numbers are lower than in my first report; both versions ran under the same conditions. Each version is bit-identical to itself across starts with `MAYA_DS4_STREAM=0`. v1.1.21 against v1.1.20: last-row KL 1.2e-2 on 4K (greedy text differs from token 17), 4.3e-2 on 8K (from token 6), 4.8e-5 on 26K (same answer), 4.9e-3 on a free 200-token text (from token 65). One start with each switch from the release notes: | v1.1.21 with | 4K / 8K / 26K read | vs normal v1.1.21 (last-row KL 4K / 8K / 26K) | |---|---|---| | (normal) | 49.4 / 51.1 / 63.3 s | | | `DS4_LT=0` | 54.0 / 55.0 / 83.0 s | 1.5e-2 / 3.1e-2 / 1.9e-4 | | `DS4_ATTN_WMMA=0` | 50.5 / 122.9 (slow) / 78.3 s | 1.5e-2 / 6.9e-2 / 3.1e-5 | | `MAYA_DS4_NO_TC=1` | 48.1 / 49.1 / 73.7 s | 8.6e-3 / 5.1e-2 / 7.9e-5 | | `DS4_ROUTER_ROWS=0` | 48.0 / 48.7 / 66.6 s | bit-identical | So on this card the 26K gain comes from hipBLASLt (~20 s), the WMMA attention (~15 s) and the experts on the matrix cores (~10 s); the 8-row router keeps the results bit for bit, as the notes say. The other three each round differently and none of them alone brings back v1.1.20's logits, so the difference looks like the sum of normal rounding changes rather than one broken kernel. This 8K prompt is just sensitive: any of these changes moves it by a KL of 2-7e-2.
Author
Owner

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

Thank you for measuring the long-prompt skip so carefully on the 7900 XTX, with the KL checks. Much appreciated - closing as a report.

<!-- gh-comment-id:6353445158 --> @mw00 commented on GitHub (Oct 22, 2026): Thank you for measuring the long-prompt skip so carefully on the 7900 XTX, with the KL checks. Much appreciated - closing as a report.
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#133
No description provided.