[GH-ISSUE #541] DeepSeek-V4.1-Flash GSQ-RCO IQ2_XS vs Maya-S on Strix Halo + 2x RX 7900 XTX: decode 41.3 → 56.8 tok/s (+38 %), 130K prompt 1,291 → 1,387 tok/s, same engine, 512K context #222

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

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

A follow-up to #510, on the same Strix Halo machine (Ryzen AI Max+ 395, Radeon 8060S) with 2x RX 7900 XTX, the same engine and the same settings, at a 512K context window. Only the quant changes: ISTA-DASLab's GSQ-RCO IQ2_XS instead of Maya-S. On --bench it decodes 38 % faster (41.3 → 56.8 tok/s), and a 130K-token prompt is read 7 % faster (1,291 → 1,387 tok/s).

Model

DeepSeek-V4.1-Flash-1017 GSQ-RCO IQ2_XS from ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF (revision 653a9874): 155 GB in 4 shards, IQ2_XXS / IQ2_XS / IQ2_S experts, its dense matrices in Q5_K. Also loaded:

  • its own IQ4_NL Engram file (110.6 GB, the same revision);
  • Maya-S's DSpark drafter (peasantsmith, revision 276e0bad), as the GSQ GGUF carries none.

The comparison is Maya-S (178 GB, revision 26c6aeaf) with unsloth's UD-Q8_K_XL Engram shard, exactly as in #510.

Version

  • Measured: v1.1.28 + the nine PRs of #510 (#511-#519), head 739f651, tag maya-ds4-gsq-512k-20261027. The same build for both quants.
  • Two pack-time steps v1.1.28 needed for this GGUF, both already in main since: the DSpark geometry the GGUF leaves out of ds4.txt (your fix for #500), and the dense matrices: v1.1.28's DS4 loader reads them as BF16 / Q8_0 only, so we converted the 524 Q5_K matrices (attention projections, shared experts, engram_wkv, embedding, head; 5.3 GB) to Q8_0 at pack time (8.2 GB, converter). v1.1.30 reads Q5_K dense matrices directly; we will re-measure on it.

Ansible. The setup is the recipe maya-ds4-gsq-dual-xtx-512k.yml in strix-halo-llm v2.4.0 (how to run it). It was installed from scratch, from public sources only, on the Strix Halo machine before these measurements. Our measurements are in benchmarks/results.json (systems/maya-ds4-gsq-dual-xtx) and docs/BENCHMARKS.md.

Hardware, environment, setup

All as in #510: 2x RX 7900 XTX on PCIe 4.0 x4 each, the 8060S as the expert helper with a 95 GB pool, the model on a USB4 NVMe; Ubuntu 26.04, ROCm 7.2.4, rocBLAS with rocm-libraries#4781; --tp 2, 512K context, the same config env (#510's details block), only the pack path differs.

Result: --bench

Maya's --bench procedure (v1.1.28's), the same token ids for both quants, one load each, the fans held at full speed.

benchmark Maya-S (#510) GSQ-RCO IQ2_XS change
decode, mean of the three answers 41.3 tok/s 56.8 tok/s +38 %
- a CSV-parsing Python function (code) 45.4 tok/s 57.1 tok/s +26 %
- how photosynthesis works (prose) 35.9 tok/s 45.3 tok/s +26 %
- an HTML canvas animation page (code) 42.6 tok/s 67.9 tok/s +59 %
prefill, 2K prompt 180 tok/s 201 tok/s +12 %
prefill, 8K prompt 482 tok/s 532 tok/s +10 %

Result: a 130K-token prompt

The same 130,048-token code prompt as #410 and #510; 768 tokens written cold, then again with 130,047 tokens cached.

benchmark Maya-S (#510) GSQ-RCO IQ2_XS change
prefill, 130,048 tokens cold 1,291 tok/s 1,387 tok/s +7 %
decode after it, cold 36.2 tok/s 48.3 tok/s +33 %
decode, the prompt cached 46.1 tok/s 55.6 tok/s +21 %

Why: the smaller experts change the placement, not the kernels. The engine's load line puts the experts VRAM leaves over at about 27.7 GB with GSQ-RCO against 47.5 GB with Maya-S, so far fewer expert reads go through the helper's pool and the disk. Drafting is unchanged (81-100 % kept a position in both).

Retrieval on the same setup: all 55 values at 11 prompt lengths from 2K to 480K, and 5/5 in a 520,000-token needle, at the 512K context.

Suggested README row

Machine Model Decode Prefill By
2x RX 7900 XTX 24 GB (tensor parallel 2, PCIe 4.0 x4 each) + Radeon 8060S helper (Ryzen AI Max+ 395, 128 GB), the model on a USB4 NVMe GSQ-RCO IQ2_XS, 512K context 56.8 tokens/s (55.6 after a 130K-token prompt, cached) 1387 tokens/s (130K; 532 at 8K) @pepuscz (v1.1.28 + #511-#519)

Quality

On our side, same window, same engine: perplexity on 23 sequences of 2,048 tokens 7.3715 (GSQ-RCO IQ2_XS) against 7.2543 (Maya-S), +1.6 %; and on the Lucebox coding / GSM8K / math cases 29/30 against 30/30 (the miss: math_10 unrolled a recursion to its 4,096-token cap). The GSQ-RCO card reports 99.8 % task recovery at reasoning effort 50; the Maya-S card reports 92.6 % same top token and +3.2 % NLL against the original.

A question: how do the two compare on your own quality measurements - top-1 agreement and NLL against the original, as on the Maya-S card? We measure GSQ-RCO IQ2_XS within 2 % of Maya-S in perplexity at 38 % more decode on this hardware, and would like to know whether that holds against the original model before we recommend it over Maya-S.

🤖 Generated with Claude Code

Originally created by @pepuscz on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/541 A follow-up to [#510](https://github.com/mw00/project-maya/issues/510), on the same Strix Halo machine (Ryzen AI Max+ 395, Radeon 8060S) with 2x RX 7900 XTX, the same engine and the same settings, at a 512K context window. Only the quant changes: ISTA-DASLab's **GSQ-RCO IQ2_XS** instead of Maya-S. On `--bench` it decodes **38 % faster** (41.3 → 56.8 tok/s), and a 130K-token prompt is read 7 % faster (1,291 → 1,387 tok/s). ## Model DeepSeek-V4.1-Flash-1017 **GSQ-RCO IQ2_XS** from [ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF](https://huggingface.co/ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF) (revision `653a9874`): 155 GB in 4 shards, IQ2_XXS / IQ2_XS / IQ2_S experts, its dense matrices in Q5_K. Also loaded: - its own IQ4_NL Engram file (110.6 GB, the same revision); - Maya-S's DSpark drafter (peasantsmith, revision `276e0bad`), as the GSQ GGUF carries none. The comparison is **Maya-S** (178 GB, revision `26c6aeaf`) with unsloth's UD-Q8_K_XL Engram shard, exactly as in #510. ## Version - **Measured:** v1.1.28 + the nine PRs of #510 ([#511](https://github.com/mw00/project-maya/pull/511)-[#519](https://github.com/mw00/project-maya/pull/519)), head [`739f651`](https://github.com/pepuscz/project-maya/tree/pr/ds4-up-h-draft-vram), tag [`maya-ds4-gsq-512k-20261027`](https://github.com/pepuscz/project-maya/tree/maya-ds4-gsq-512k-20261027). The same build for both quants. - **Two pack-time steps** v1.1.28 needed for this GGUF, both already in `main` since: the DSpark geometry the GGUF leaves out of `ds4.txt` (your fix for [#500](https://github.com/mw00/project-maya/issues/500)), and the dense matrices: v1.1.28's DS4 loader reads them as BF16 / Q8_0 only, so we converted the 524 Q5_K matrices (attention projections, shared experts, `engram_wkv`, embedding, head; 5.3 GB) to Q8_0 at pack time (8.2 GB, [converter](https://github.com/pepuscz/strix-halo-llm/blob/9fa4a35c567887ef5bf2958f7c0fcfcf7ddf0c75/ansible/roles/maya_runtime/files/convert-dense-q8_0.py)). v1.1.30 reads Q5_K dense matrices directly; we will re-measure on it. **Ansible.** The setup is the recipe [`maya-ds4-gsq-dual-xtx-512k.yml`](https://github.com/pepuscz/strix-halo-llm/blob/9fa4a35c567887ef5bf2958f7c0fcfcf7ddf0c75/ansible/releases/maya-ds4-gsq-dual-xtx-512k.yml) in [strix-halo-llm v2.4.0](https://github.com/pepuscz/strix-halo-llm/releases/tag/v2.4.0) ([how to run it](https://github.com/pepuscz/strix-halo-llm/blob/9fa4a35c567887ef5bf2958f7c0fcfcf7ddf0c75/README.md#dual-rx-7900-xtx-setup)). It was installed from scratch, from public sources only, on the Strix Halo machine before these measurements. Our measurements are in [`benchmarks/results.json`](https://github.com/pepuscz/strix-halo-llm/blob/9fa4a35c567887ef5bf2958f7c0fcfcf7ddf0c75/benchmarks/results.json) (`systems/maya-ds4-gsq-dual-xtx`) and [`docs/BENCHMARKS.md`](https://github.com/pepuscz/strix-halo-llm/blob/9fa4a35c567887ef5bf2958f7c0fcfcf7ddf0c75/docs/BENCHMARKS.md#dual-rx-7900-xtx-deepseek-v41-flash-1017). ## Hardware, environment, setup All as in #510: 2x RX 7900 XTX on PCIe 4.0 x4 each, the 8060S as the expert helper with a 95 GB pool, the model on a USB4 NVMe; Ubuntu 26.04, ROCm 7.2.4, rocBLAS with rocm-libraries#4781; `--tp 2`, 512K context, the same config `env` (#510's details block), only the pack path differs. ## Result: `--bench` Maya's `--bench` procedure (v1.1.28's), the same token ids for both quants, one load each, the fans held at full speed. | benchmark | Maya-S (#510) | GSQ-RCO IQ2_XS | change | |--|--:|--:|--:| | decode, mean of the three answers | 41.3 tok/s | **56.8 tok/s** | **+38 %** | | - a CSV-parsing Python function (code) | 45.4 tok/s | 57.1 tok/s | +26 % | | - how photosynthesis works (prose) | 35.9 tok/s | 45.3 tok/s | +26 % | | - an HTML canvas animation page (code) | 42.6 tok/s | 67.9 tok/s | +59 % | | prefill, 2K prompt | 180 tok/s | 201 tok/s | +12 % | | prefill, 8K prompt | 482 tok/s | 532 tok/s | +10 % | ## Result: a 130K-token prompt The same 130,048-token code prompt as #410 and #510; 768 tokens written cold, then again with 130,047 tokens cached. | benchmark | Maya-S (#510) | GSQ-RCO IQ2_XS | change | |--|--:|--:|--:| | prefill, 130,048 tokens cold | 1,291 tok/s | **1,387 tok/s** | +7 % | | decode after it, cold | 36.2 tok/s | **48.3 tok/s** | +33 % | | decode, the prompt cached | 46.1 tok/s | **55.6 tok/s** | +21 % | > **Why:** the smaller experts change the placement, not the kernels. The engine's load line puts the experts VRAM leaves over at about 27.7 GB with GSQ-RCO against 47.5 GB with Maya-S, so far fewer expert reads go through the helper's pool and the disk. Drafting is unchanged (81-100 % kept a position in both). Retrieval on the same setup: all 55 values at 11 prompt lengths from 2K to 480K, and 5/5 in a 520,000-token needle, at the 512K context. ## Suggested README row | Machine | Model | Decode | Prefill | By | | --- | --- | ---: | ---: | --- | | **2x RX 7900 XTX 24 GB** (tensor parallel 2, PCIe 4.0 x4 each) + **Radeon 8060S** helper (Ryzen AI Max+ 395, 128 GB), the model on a USB4 NVMe | GSQ-RCO IQ2_XS, 512K context | 56.8 tokens/s (55.6 after a 130K-token prompt, cached) | 1387 tokens/s (130K; 532 at 8K) | @pepuscz (v1.1.28 + #511-#519) | ## Quality On our side, same window, same engine: perplexity on 23 sequences of 2,048 tokens **7.3715 (GSQ-RCO IQ2_XS) against 7.2543 (Maya-S), +1.6 %**; and on the Lucebox coding / GSM8K / math cases 29/30 against 30/30 (the miss: math_10 unrolled a recursion to its 4,096-token cap). The GSQ-RCO card reports 99.8 % task recovery at reasoning effort 50; the Maya-S card reports 92.6 % same top token and +3.2 % NLL against the original. **A question:** how do the two compare on your own quality measurements - top-1 agreement and NLL against the original, as on the Maya-S card? We measure GSQ-RCO IQ2_XS within 2 % of Maya-S in perplexity at 38 % more decode on this hardware, and would like to know whether that holds against the original model before we recommend it over Maya-S. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

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

A note on the Q8_0 conversion in this report. v1.1.28 + #511-#519 reads DS4 dense matrices as BF16 / Q8_0 only, so the GSQ-RCO GGUF's 524 Q5_K dense matrices (attention projections, shared experts, engram_wkv, embedding, head) were converted to Q8_0 at pack time: 5.3 GB → 8.2 GB.

That costs something on this hardware. Apart from the embedding (host RAM), those matrices sit on the cards: about +1.4 GB of VRAM per 24 GB card, room that would otherwise hold expert slices. And decode reads about 55 % more bytes of them per token. Our rough estimate is a few percent of decode, not measured; Q8_0's tuned kernels may win some of it back.

v1.1.30 reads Q5_K dense matrices directly. Once the series is on v1.1.30 we will measure GSQ-RCO IQ2_XS with its native Q5_K matrices against the Q8_0 conversion, on the same box and settings, and post the result here.

<!-- gh-comment-id:6439416754 --> @pepuscz commented on GitHub (Oct 27, 2026): A note on the Q8_0 conversion in this report. v1.1.28 + #511-#519 reads DS4 dense matrices as BF16 / Q8_0 only, so the GSQ-RCO GGUF's 524 Q5_K dense matrices (attention projections, shared experts, `engram_wkv`, embedding, head) were converted to Q8_0 at pack time: 5.3 GB → 8.2 GB. That costs something on this hardware. Apart from the embedding (host RAM), those matrices sit on the cards: about +1.4 GB of VRAM per 24 GB card, room that would otherwise hold expert slices. And decode reads about 55 % more bytes of them per token. Our rough estimate is a few percent of decode, not measured; Q8_0's tuned kernels may win some of it back. v1.1.30 reads Q5_K dense matrices directly. Once the series is on v1.1.30 we will measure GSQ-RCO IQ2_XS with its native Q5_K matrices against the Q8_0 conversion, on the same box and settings, and post the result here.
Author
Owner

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

Thank you for the side-by-side on the same box and engine. GSQ-RCO isn't in Maya's model picker and won't be added, but Maya runs it as it is: point the setup at its folder with --model-dir. So your numbers stay here for anyone who wants to try it. The nine PRs you measured with (#511-#519) shipped in v1.1.31.

On quality, from our own measurements against the full-precision model on the same text: Maya-S stays closer to the original (KL about 0.12) than GSQ-RCO IQ2_XS (about 0.26). IQ2_XS is smaller, which is where its decode speed comes from, so it's a speed-for-fidelity trade rather than a free win. Closing this one; thanks again for the careful report.

<!-- gh-comment-id:6446390720 --> @mw00 commented on GitHub (Oct 27, 2026): Thank you for the side-by-side on the same box and engine. GSQ-RCO isn't in Maya's model picker and won't be added, but Maya runs it as it is: point the setup at its folder with `--model-dir`. So your numbers stay here for anyone who wants to try it. The nine PRs you measured with (#511-#519) shipped in v1.1.31. On quality, from our own measurements against the full-precision model on the same text: Maya-S stays closer to the original (KL about 0.12) than GSQ-RCO IQ2_XS (about 0.26). IQ2_XS is smaller, which is where its decode speed comes from, so it's a speed-for-fidelity trade rather than a free win. Closing this one; thanks again for the careful 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#222
No description provided.