[GH-ISSUE #458] GLM-5.3-Flash Maya-M on 2x RX 7900 XTX + Radeon 8060S: ~2x decode over the plain layer split, up to 512K context (PRs #454-#457, Ansible recipe) #189

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

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

A report, not a bug: GLM-5.3-Flash (Maya-M IQ2_S) running on a Ryzen AI Max+ 395 box with two RX 7900 XTX cards added. Four pull requests let the Radeon 8060S serve as expert helper beside a layer split over the two cards, and speed up decode attention. With them, decode is about twice the plain layer split's: 53-58 tok/s from 2K to 240K tokens, and 50 tok/s at 456K. All four are opt-in or inert by default. An Ansible recipe that installs this setup is linked below.

Setup. BOSGAME M5 (Ryzen AI Max+ 395, Radeon 8060S, 128 GB). Two RX 7900 XTX, each on its own PCIe 4.0 x4 link (M.2 to OCuLink). Ubuntu 26.04, kernel 7.0.0-38-generic, ROCm 7.2.4. Model: peasantsmith/GLM-5.3-Flash-Maya-GGUF Maya-M, revision f16ee4b.

Pull requests to merge

PR Change Default Effect here
#454 Expert helper beside a layer split: MAYA_GLM_EXPERT_HELPER now also works with MAYA_GLM_SPLIT. Each part opens its own helper on the iGPU over its own layers, with a load-time check (MAYA_GLM_HELPER_CHECK). off unless the helper is set decode at 114K: 49.2 tok/s against 27.3 without the helper (+79 %)
#455 IQ2_S gate/up on the tuned RDNA kernel (MAYA_GLM_GU22_TUNED=1). The log records which gate/up and GEMV kernels each GPU runs. off bit-identical; +1.1 % decode on its own
#456 Stage profiler: separate rows for the indexer's score and select, and for MLA's three steps. profiling only shows where long-context decode time goes
#457 Take-two decode attention kernels for the indexer's scores and MLA's split attention (MAYA_GLM_DSA_SCORE2, MAYA_GLM_MLA_ATTN2), plus glm_attn_bench. off bit for bit; +6.2 % decode at 130K

#454, #455 and #456 are independent of each other. #457 builds on #455 and #456. All four are rebased on v1.1.26. They were built together on this host and passed the split/serial bit-identity gate, the HIP helper test and the take-two logits identity check.

Results

The five-phrase retrieval prompts from strix-halo-llm. Each point is a fresh load, cold, thinking off, 256-token cap. Every point found all five values. Figures are decode / prefill in tok/s.

Prompt (GLM tokens) v1.1.25, layer split over the two cards with these PRs and MAYA_GLM_MV_RDNA=1
2K (1,886) 29.0 / 178 56.0 / 183
32K (28,517) 28.3 / 689 56.8 / 691
128K (114,093) 27.5 / 906 55.8 / 907
160K (152,129) 55.1 / 973
208K (197,770) 54.7 / 1,013
240K (228,197) 53.4 / 1,032
480K (456,403) 50.1 / 1,021
  • Allocation: 2K-128K ran at 131,072 tokens, 160K-240K at 262,144 and 480K at 524,288. At the full 524,288, the 128K prompt gives 54.9 / 891.
  • Measured build: the changes on v1.1.25 (pepuscz/project-maya tag maya-glm-dual-xtx-512k-20261024). Rebased on v1.1.26 and built together, one load each: 2K 60.6 / 183, 128K 56.0 / 901.
  • Real text: a 130,048-token real-code prompt (124,103 GLM tokens) reads at 651.7 tok/s and writes at 54.2. With the prompt cached it writes at 55.4.
  • Quality: 28/30 on the pinned Lucebox 30-case suite (10 coding, 10 GSM8K-style, 10 MATH-style; two MATH misses).

Try it now

strix-halo-llm v2.2.0 has an Ansible recipe for exactly this setup: maya-glm-dual-xtx-512k.yml.

  • It builds the engine tag above, an isolated ROCm 7.2.4 userspace, and rocBLAS with the per-architecture Tensile fix that mixed gfx1100/gfx1151 processes need.
  • It serves one conversation with 512K context on 127.0.0.1:18109. A conversation set aside for another is kept on disk, also across restarts.
  • It needs kernel 7.0.0-38-generic and about 240 GB free.
  • The from-scratch install was tested on this host.
git clone https://github.com/pepuscz/strix-halo-llm && cd strix-halo-llm && git checkout v2.2.0
export STRIX_SYSTEM=maya-glm-dual-xtx
bin/strixctl validate
bin/strixctl install --allow-reboot
bin/strixctl verify

Setup notes and all measurements: README · BENCHMARKS

Other observations

  • MAYA_GLM_MV_RDNA=1 on the RX 7900 XTX (the docs say "not measured yet"): +3.3 % decode at a near-full 130K prompt, logits byte-identical.
  • --parallel N on this split: a lone request decodes as fast as on a one-conversation server (55.8 / 55.6). Conversations served together total about 45 tok/s, against about 55 one after another.
  • Conversation checkpoints and prompt reading: a single conversation's prompt reads about 20 % faster with --parallel above 1 (1,093-1,118 against 907 tok/s at 114K). MAYA_GLM_CKPTS=0 on a one-conversation server gives the same 1,119 tok/s (895 with checkpoints, both at 262,144), so the checkpoints account for the difference. At 228K the gap is 12 % (1,160 against 1,032). The recipe keeps checkpoints on, because they let a returning conversation skip its re-read.

🤖 Generated with Claude Code

Originally created by @pepuscz on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/458 A report, not a bug: GLM-5.3-Flash (**Maya-M** IQ2_S) running on a Ryzen AI Max+ 395 box with two RX 7900 XTX cards added. Four pull requests let the Radeon 8060S serve as expert helper beside a layer split over the two cards, and speed up decode attention. With them, decode is about twice the plain layer split's: 53-58 tok/s from 2K to 240K tokens, and 50 tok/s at 456K. All four are opt-in or inert by default. An Ansible recipe that installs this setup is linked below. **Setup.** BOSGAME M5 (Ryzen AI Max+ 395, Radeon 8060S, 128 GB). Two RX 7900 XTX, each on its own PCIe 4.0 x4 link (M.2 to OCuLink). Ubuntu 26.04, kernel 7.0.0-38-generic, ROCm 7.2.4. Model: [peasantsmith/GLM-5.3-Flash-Maya-GGUF](https://huggingface.co/peasantsmith/GLM-5.3-Flash-Maya-GGUF) Maya-M, revision f16ee4b. ## Pull requests to merge | PR | Change | Default | Effect here | |---|---|---|---| | #454 | Expert helper beside a layer split: `MAYA_GLM_EXPERT_HELPER` now also works with `MAYA_GLM_SPLIT`. Each part opens its own helper on the iGPU over its own layers, with a load-time check (`MAYA_GLM_HELPER_CHECK`). | off unless the helper is set | decode at 114K: 49.2 tok/s against 27.3 without the helper (+79 %) | | #455 | IQ2_S gate/up on the tuned RDNA kernel (`MAYA_GLM_GU22_TUNED=1`). The log records which gate/up and GEMV kernels each GPU runs. | off | bit-identical; +1.1 % decode on its own | | #456 | Stage profiler: separate rows for the indexer's score and select, and for MLA's three steps. | profiling only | shows where long-context decode time goes | | #457 | Take-two decode attention kernels for the indexer's scores and MLA's split attention (`MAYA_GLM_DSA_SCORE2`, `MAYA_GLM_MLA_ATTN2`), plus `glm_attn_bench`. | off | bit for bit; +6.2 % decode at 130K | #454, #455 and #456 are independent of each other. #457 builds on #455 and #456. All four are rebased on v1.1.26. They were built together on this host and passed the split/serial bit-identity gate, the HIP helper test and the take-two logits identity check. ## Results The five-phrase retrieval prompts from [strix-halo-llm](https://github.com/pepuscz/strix-halo-llm/blob/v2.2.0/docs/BENCHMARKS.md#dual-rx-7900-xtx-glm-53-flash). Each point is a fresh load, cold, thinking off, 256-token cap. Every point found all five values. Figures are decode / prefill in tok/s. | Prompt (GLM tokens) | v1.1.25, layer split over the two cards | with these PRs and `MAYA_GLM_MV_RDNA=1` | |---|---|---| | 2K (1,886) | 29.0 / 178 | 56.0 / 183 | | 32K (28,517) | 28.3 / 689 | 56.8 / 691 | | 128K (114,093) | 27.5 / 906 | 55.8 / 907 | | 160K (152,129) | | 55.1 / 973 | | 208K (197,770) | | 54.7 / 1,013 | | 240K (228,197) | | 53.4 / 1,032 | | 480K (456,403) | | 50.1 / 1,021 | - **Allocation:** 2K-128K ran at 131,072 tokens, 160K-240K at 262,144 and 480K at 524,288. At the full 524,288, the 128K prompt gives 54.9 / 891. - **Measured build:** the changes on v1.1.25 (`pepuscz/project-maya` tag `maya-glm-dual-xtx-512k-20261024`). Rebased on v1.1.26 and built together, one load each: 2K 60.6 / 183, 128K 56.0 / 901. - **Real text:** a 130,048-token real-code prompt (124,103 GLM tokens) reads at 651.7 tok/s and writes at 54.2. With the prompt cached it writes at 55.4. - **Quality:** 28/30 on the pinned [Lucebox](https://github.com/Luce-Org/lucebox/tree/90f85fa401c6a3c61d9e4d0e2da7fc48a5e8915e/harness) 30-case suite (10 coding, 10 GSM8K-style, 10 MATH-style; two MATH misses). ## Try it now [strix-halo-llm v2.2.0](https://github.com/pepuscz/strix-halo-llm/releases/tag/v2.2.0) has an Ansible recipe for exactly this setup: [`maya-glm-dual-xtx-512k.yml`](https://github.com/pepuscz/strix-halo-llm/blob/v2.2.0/ansible/releases/maya-glm-dual-xtx-512k.yml). - It builds the engine tag above, an isolated ROCm 7.2.4 userspace, and rocBLAS with the [per-architecture Tensile fix](https://github.com/ROCm/rocm-libraries/pull/4781) that mixed gfx1100/gfx1151 processes need. - It serves one conversation with 512K context on `127.0.0.1:18109`. A conversation set aside for another is kept on disk, also across restarts. - It needs kernel `7.0.0-38-generic` and about 240 GB free. - The from-scratch install was tested on this host. ```bash git clone https://github.com/pepuscz/strix-halo-llm && cd strix-halo-llm && git checkout v2.2.0 export STRIX_SYSTEM=maya-glm-dual-xtx bin/strixctl validate bin/strixctl install --allow-reboot bin/strixctl verify ``` Setup notes and all measurements: [README](https://github.com/pepuscz/strix-halo-llm/tree/v2.2.0#dual-rx-7900-xtx-setup) · [BENCHMARKS](https://github.com/pepuscz/strix-halo-llm/blob/v2.2.0/docs/BENCHMARKS.md#dual-rx-7900-xtx-glm-53-flash) ## Other observations - **`MAYA_GLM_MV_RDNA=1` on the RX 7900 XTX** (the docs say "not measured yet"): +3.3 % decode at a near-full 130K prompt, logits byte-identical. - **`--parallel N` on this split:** a lone request decodes as fast as on a one-conversation server (55.8 / 55.6). Conversations served together total about 45 tok/s, against about 55 one after another. - **Conversation checkpoints and prompt reading:** a single conversation's prompt reads about 20 % faster with `--parallel` above 1 (1,093-1,118 against 907 tok/s at 114K). `MAYA_GLM_CKPTS=0` on a one-conversation server gives the same 1,119 tok/s (895 with checkpoints, both at 262,144), so the checkpoints account for the difference. At 228K the gap is 12 % (1,160 against 1,032). The recipe keeps checkpoints on, because they let a returning conversation skip its re-read. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@silvia95guy commented on GitHub (Oct 25, 2026):

Very nice! I just had a buddy turn me onto this project today, and he sent me a link to this post. I ordered a second XTX a few days ago, so I'm glad someone had done some setup to see how it performs. I'll be running with a 9850X3D with 96GB of tuned 6000Mhz CL 28 RAM. (Wish I could afford more, but this will have to do.) The XTX's will be paired on an PCIE 4.0 8x8 splinter into the top 16X slot of my mobo to keep memory bandwidth optimal across both cards, as well give both direct access to the CPU, instead of through chipset lane, or slowed down to a shared 4X lane wit the M.2. Will report back what tk/s I'm able to achieve with my setup.

<!-- gh-comment-id:6393427277 --> @silvia95guy commented on GitHub (Oct 25, 2026): Very nice! I just had a buddy turn me onto this project today, and he sent me a link to this post. I ordered a second XTX a few days ago, so I'm glad someone had done some setup to see how it performs. I'll be running with a 9850X3D with 96GB of tuned 6000Mhz CL 28 RAM. (Wish I could afford more, but this will have to do.) The XTX's will be paired on an PCIE 4.0 8x8 splinter into the top 16X slot of my mobo to keep memory bandwidth optimal across both cards, as well give both direct access to the CPU, instead of through chipset lane, or slowed down to a shared 4X lane wit the M.2. Will report back what tk/s I'm able to achieve with my setup.
Author
Owner

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

Thank you - #454-#457 shipped in v1.1.28, and your Maya-M result goes into the speed table for the next release: 2x RX 7900 XTX with the Radeon 8060S as helper, 56.0 tokens/s, still 50.1 after a 456K-token prompt. Closing as done.

<!-- gh-comment-id:6446362513 --> @mw00 commented on GitHub (Oct 27, 2026): Thank you - #454-#457 shipped in v1.1.28, and your Maya-M result goes into the speed table for the next release: 2x RX 7900 XTX with the Radeon 8060S as helper, 56.0 tokens/s, still 50.1 after a 456K-token prompt. Closing as done.
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#189
No description provided.