[GH-ISSUE #156] RX 9070 XT (gfx1201, 16 GB) on Windows 11, HIP: speed report (Maya-S / Maya-S24) + two small issues #57

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

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

First report I could find for a 16 GB discrete RDNA4 card on Windows with the HIP backend. Everything below was measured on the machine described here with Maya v1.1.4 (f4d13e1); maya-report.txt is at the end.

Machine

GPU AMD Radeon RX 9070 XT, 16 GB, gfx1201, PCIe 4.0 x16 (B550 board)
Driver 32.0.31041.1004 (the same as the Windows validation in AMD_MAYA.md)
ROCm AMD HIP SDK 7.2 (HIP 7.2.60201), Visual Studio Build Tools 2022
CPU / RAM Ryzen 9 5900XT (16 cores, AVX2) / 128 GB DDR4-2667 (4x32 GB), page file 32-64 GB
Disk NVMe RAID0
OS Windows 11 25H2 (10.0.26200), native
Setup START-MAYA.bat --backend hip --gpu 0 --setup --yes --model <model> --download-model --no-vision --context 8192 --port 8099

Setup, build (~20 min), download (sha256 verified) and pack all worked first time. No bugchecks, driver resets (4101) or WHEA events during ~2.5 h of runs.

Results (--bench, 8K context, engine settings as written by setup unless noted)

Model / setting prompt chunk VRAM expert pool decode prefill (2048 tok)
Maya-S 768 819 slots, 5.43 GB 8.4 tok/s 44 tok/s
Maya-S + STRATA_GLM_PREFILL_MB=2048 1536 819 8.5 54
Maya-S + PREFILL_MB=3072 7424 requested 819 8.5 9 (token by token)
Maya-S + PREFILL_MB=4096 + PREFILL_SUB=1024 15872 requested 819 8.4 7 (token by token)
Maya-S + 2048 + GPU_FLUSH_ON_EXECUTION=1 1536 819 6.7 50
Maya-S24 10240 1063 slots, 7.04 GB 9.7 340
Maya-S24 + PREFILL_MB=2048 1536 1063 9.4 56
Maya-S24 + PREFILL_MB=3072 7424 1063 9.7 265
  • All 12,096 experts fit in VRAM + the pinned RAM tier (76.9-78.0 GB); 0 disk reads per token. Tiers warm in 62-65 s (1.3 GB/s); load to ready ~95-105 s.
  • Maya-S24 is clearly the right model for a 16 GB HIP card: its smaller dense weights (5.24 vs 6.86 GB) leave room for a 10K-token prompt chunk, so a 2K prompt goes through in one chunk (7.7x the prefill of Maya-S), and decode is +15% (matching the README's +14%). Setup already recommends Maya-S24 for cards of 24 GB or less; I had overridden it with --model.
  • GPU_FLUSH_ON_EXECUTION=1 costs decode here too (8.5 -> 6.7), as on the 8065S.
  • Through the API, a 3,049-token Japanese prompt read at 47.8 tok/s on Maya-S and 248.7 tok/s on Maya-S24. Japanese answers were correct, with no Chinese mixed in.
  • Decode is VRAM-bound: VRAM hit 26-50%, 140-200 RAM-tier fetches per token over PCIe. Task Manager during decode: GPU Compute 98%, Copy ~30%.

Issue 1: --bench reports the wrong GPU on Windows when an old AMD adapter is still in the registry

maya-bench.txt says GPUs: AMD Radeon RX 6700 XT 12 GB, while --check and --report correctly show GPU 0 (AMD Radeon RX 9070 XT, 16 GB, gfx1201) from hipInfo. The engine itself runs on the 9070 XT (15.92 GB in its log), so only the label is wrong.

Cause: the display class in the registry still holds the card this PC had before (0000 AMD Radeon RX 6700 XT, Get-PnpDevice status Unknown = not present), and bench() (maya.py:2497) calls S.amd_gpus() without the hipInfo path, so on Windows it falls back to windows_amd_adapters(), which lists every AMD entry in the registry, present or not.

Possible fixes: pass the hipInfo path in bench() as --check does, and/or have windows_amd_adapters() skip adapters that are not present (e.g. filter by Get-PnpDevice -PresentOnly). That also matters for --gpu N on a PC without hipInfo, where the stale entry would shift the numbering.

Issue 2: a prompt budget the pool cannot lend drops prefill to token-by-token (a 5-6x cliff)

With STRATA_GLM_PREFILL_MB=3072 (or 4096) on Maya-S, the log says

glm prefill: CUDA0 prestage buffer 160 -> 0 experts (what the pool can lend)
glm prefill: CUDA0 the pool (19 slots/layer) cannot lend 1910 MB - token by token

and prefill goes from 54 to 9 tok/s. It would be friendlier to shrink the chunk to what the pool can lend (2048 MB worked here) instead of falling back to one token at a time. Setup does not write these settings for cards under 20 GB, so this only bites when set by hand, but it is an easy trap on 16 GB cards.

maya-report.txt (Maya-S24)
## Maya
version 1.1.4, commit f4d13e1 2026-10-12, Python 3.12.10, win32

## System
Windows-11-10.0.26200-SP0

## GPUs
hipInfo (HIP GPU indices):
GPU 0 (AMD Radeon RX 9070 XT, 16 GB, gfx1201); driver windows
Windows 10.0.26200

## ROCm
path C:\Program Files\AMD\ROCm\7.2
version HIP version: 7.2.60201-38d754472
clang version 21.0.0git (git@github.com:AMD-Lightning-Internal/llvm-project 590b9320a5be90e40268759c6203c01fde121e68)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\AMD\ROCm\7.2\bin

## CPU and RAM
AMD Ryzen 9 5900XT 16-Core Processor, 32 threads, AVX2
RAM 127.9 GB, 105.2 GB available now, page file 32 GB

## Disks

FriendlyName     MediaType BusType          Size
------------     --------- -------          ----
AMD-RAID Array 2 SSD       RAID    1999286304768
SSD 1TB          SSD       RAID    1024209543168

## Engine build
{"backend": "hip", "archs": ["gfx1100", "gfx1201", "gfx1151"], "rocm": "C:\\Program Files\\AMD\\ROCm\\7.2", "date": "2026-10-13 17:46"}

## Setup maya-maya-s24-hip.json
model Maya-S24, context 8192, GPUs [0], images off, settings {"STRATA_GLM_RESERVE_MB": "3072", "STRATA_GLM_RAM_HEADROOM_GB": "16", "STRATA_GLM_SPLIT": "0", "STRATA_HIPBLASLT_TUNING": "C:\\HomeLab\\Maya\\tools\\hip\\gfx1201-glm-hipblaslt-100202.txt"}
model folder C:\HomeLab\Maya-data\models\Maya-S24: 94.7 GB of GGUF, 1011 GB free, not a hard disk

## Engine log maya-maya-s24-hip.log
not written yet (start Maya once and ask it something)

## Benchmark (maya-bench.txt, from --bench)
Project Maya v1.1.4 benchmark, 2026-10-13 19:35
GPUs: AMD Radeon RX 6700 XT 12 GB; RAM 128 GB; CPU AMD Ryzen 9 5900XT 16-Core Processor
setup: maya-maya-s24-hip.json, context 8192, GPUs [0]
decode (writing the answer): mean 9.7 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
     9.4 tokens/s  Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
    10.1 tokens/s  Explain how photosynthesis works, step by step, for a high-school student.
     9.6 tokens/s  Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 340 tokens/s, 2048 tokens

engine lines:
glm prefill: CUDA0 chunks of 10240 tokens (--prefill auto, up to 32768; mixer sub-batches of 256), borrowing 3397 MB of the expert pool while a prompt runs (activations 2046, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 5.88 of 15.92 GB in use - dense weights 5.24, state/KV (8192 ctx) 0.32, activations 0.06, other (context, MTP, scratch, prompt path) 0.25
glm fast: the expert profile C:\HomeLab\Maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.04 GB, 25-32 slots/layer (1063 total)
glm fast: CUDA0 RAM tier 78.03 GB pinned, 11779 slots
glm fast: CUDA0 tiers warm: 12096 experts (86.0 GB) in 65 s (1.32 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 16 threads, an expert 0.211 ms on the CPU vs 0.061 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 0 0 1 1 1 1
glm stat: decode 93.52 ms/tok (10.69 tok/s) | vram hit 50.39% | ram fetches 141.66/tok | disk 0.00 reads/tok in 7.41 waits/tok, 0.02 ms/tok | promotions 59.75/tok | cpu lane 14.05/tok in 6.04 ms/tok | prompt 123.8 ms/tok | vram 999/1063 ram 11045/11779
glm stat: decode 106.49 ms/tok (9.39 tok/s) | vram hit 32.30% | ram fetches 187.46/tok | disk 0.00 reads/tok in 9.94 waits/tok, 0.02 ms/tok | promotions 62.65/tok | cpu lane 27.82/tok in 11.11 ms/tok | prompt 110.3 ms/tok | vram 1002/1063 ram 11039/11779
glm stat: decode 99.09 ms/tok (10.09 tok/s) | vram hit 42.37% | ram fetches 162.28/tok | disk 0.00 reads/tok in 9.97 waits/tok, 0.02 ms/tok | promotions 62.06/tok | cpu lane 19.34/tok in 7.73 ms/tok | prompt 109.5 ms/tok | vram 988/1063 ram 11052/11779
glm stat: decode 104.47 ms/tok (9.57 tok/s) | vram hit 32.22% | ram fetches 188.42/tok | disk 0.00 reads/tok in 8.68 waits/tok, 0.02 ms/tok | promotions 62.65/tok | cpu lane 28.31/tok in 11.09 ms/tok | prompt 112.0 ms/tok | vram 1007/1063 ram 11051/11779
glm stat (prompt only): prompt 3.4 ms/tok | vram 766/1063 ram 11279/11779
glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 1 kept, 0.18 GB
glm stat (prompt only): prompt 2.9 ms/tok | vram 805/1063 ram 11257/11779
maya-bench.txt (Maya-S, default settings)
Project Maya v1.1.4 benchmark, 2026-10-13 18:34
GPUs: AMD Radeon RX 6700 XT 12 GB; RAM 128 GB; CPU AMD Ryzen 9 5900XT 16-Core Processor
setup: maya-maya-s-v2-iq2_xxs-hip.json, context 8192, GPUs [0]
decode (writing the answer): mean 8.4 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
     8.2 tokens/s  Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
     8.6 tokens/s  Explain how photosynthesis works, step by step, for a high-school student.
     8.3 tokens/s  Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 44 tokens/s, 2048 tokens

engine lines:
glm prefill: CUDA0 chunks of 768 tokens (--prefill auto, up to 32768; mixer sub-batches of 256), borrowing 527 MB of the expert pool while a prompt runs (activations 329, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 7.49 of 15.92 GB in use - dense weights 6.86, state/KV (8192 ctx) 0.32, activations 0.06, other (context, MTP, scratch, prompt path) 0.25
glm fast: the expert profile C:\HomeLab\Maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 5.43 GB, 19-28 slots/layer (819 total)
glm fast: CUDA0 RAM tier 76.86 GB pinned, 11603 slots
glm fast: CUDA0 tiers warm: 12096 experts (86.0 GB) in 62 s (1.38 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 16 threads, an expert 0.244 ms on the CPU vs 0.065 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 0 0 1 1 1 1
glm stat: decode 111.97 ms/tok (8.93 tok/s) | vram hit 43.49% | ram fetches 158.30/tok | disk 0.00 reads/tok in 8.58 waits/tok, 0.02 ms/tok | promotions 60.73/tok | cpu lane 18.53/tok in 8.00 ms/tok | prompt 128.2 ms/tok | vram 739/819 ram 11302/11603
glm stat: decode 121.40 ms/tok (8.24 tok/s) | vram hit 26.70% | ram fetches 200.55/tok | disk 0.00 reads/tok in 11.25 waits/tok, 0.03 ms/tok | promotions 62.76/tok | cpu lane 31.72/tok in 13.06 ms/tok | prompt 120.3 ms/tok | vram 768/819 ram 11287/11603
glm stat: decode 116.23 ms/tok (8.60 tok/s) | vram hit 38.45% | ram fetches 171.59/tok | disk 0.00 reads/tok in 10.71 waits/tok, 0.02 ms/tok | promotions 62.28/tok | cpu lane 22.02/tok in 9.16 ms/tok | prompt 125.2 ms/tok | vram 749/819 ram 11288/11603
glm stat: decode 119.93 ms/tok (8.34 tok/s) | vram hit 25.89% | ram fetches 203.74/tok | disk 0.00 reads/tok in 10.21 waits/tok, 0.02 ms/tok | promotions 62.70/tok | cpu lane 32.64/tok in 13.40 ms/tok | prompt 128.6 ms/tok | vram 762/819 ram 11282/11603
glm stat (prompt only): prompt 22.9 ms/tok | vram 799/819 ram 11279/11603
glm slots: saved a 2047-token conversation (0.18 GB in 0.3 s); 1 kept, 0.18 GB
glm stat (prompt only): prompt 22.9 ms/tok | vram 780/819 ram 11280/11603

🤖 Generated with Claude Code

Originally created by @pros02 on GitHub (Oct 13, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/156 First report I could find for a **16 GB discrete RDNA4 card on Windows** with the HIP backend. Everything below was measured on the machine described here with Maya v1.1.4 (`f4d13e1`); `maya-report.txt` is at the end. ## Machine | | | |---|---| | GPU | AMD Radeon RX 9070 XT, 16 GB, gfx1201, PCIe 4.0 x16 (B550 board) | | Driver | 32.0.31041.1004 (the same as the Windows validation in AMD_MAYA.md) | | ROCm | AMD HIP SDK 7.2 (HIP 7.2.60201), Visual Studio Build Tools 2022 | | CPU / RAM | Ryzen 9 5900XT (16 cores, AVX2) / 128 GB DDR4-2667 (4x32 GB), page file 32-64 GB | | Disk | NVMe RAID0 | | OS | Windows 11 25H2 (10.0.26200), native | | Setup | `START-MAYA.bat --backend hip --gpu 0 --setup --yes --model <model> --download-model --no-vision --context 8192 --port 8099` | Setup, build (~20 min), download (sha256 verified) and pack all worked first time. No bugchecks, driver resets (4101) or WHEA events during ~2.5 h of runs. ## Results (`--bench`, 8K context, engine settings as written by setup unless noted) | Model / setting | prompt chunk | VRAM expert pool | decode | prefill (2048 tok) | |---|---|---|---:|---:| | Maya-S | 768 | 819 slots, 5.43 GB | 8.4 tok/s | 44 tok/s | | Maya-S + `STRATA_GLM_PREFILL_MB=2048` | 1536 | 819 | 8.5 | 54 | | Maya-S + `PREFILL_MB=3072` | 7424 requested | 819 | 8.5 | **9** (token by token) | | Maya-S + `PREFILL_MB=4096` + `PREFILL_SUB=1024` | 15872 requested | 819 | 8.4 | **7** (token by token) | | Maya-S + 2048 + `GPU_FLUSH_ON_EXECUTION=1` | 1536 | 819 | 6.7 | 50 | | **Maya-S24** | **10240** | **1063 slots, 7.04 GB** | **9.7** | **340** | | Maya-S24 + `PREFILL_MB=2048` | 1536 | 1063 | 9.4 | 56 | | Maya-S24 + `PREFILL_MB=3072` | 7424 | 1063 | 9.7 | 265 | - All 12,096 experts fit in VRAM + the pinned RAM tier (76.9-78.0 GB); 0 disk reads per token. Tiers warm in 62-65 s (1.3 GB/s); load to ready ~95-105 s. - Maya-S24 is clearly the right model for a 16 GB HIP card: its smaller dense weights (5.24 vs 6.86 GB) leave room for a 10K-token prompt chunk, so a 2K prompt goes through in one chunk (7.7x the prefill of Maya-S), and decode is +15% (matching the README's +14%). Setup already recommends Maya-S24 for cards of 24 GB or less; I had overridden it with `--model`. - `GPU_FLUSH_ON_EXECUTION=1` costs decode here too (8.5 -> 6.7), as on the 8065S. - Through the API, a 3,049-token Japanese prompt read at 47.8 tok/s on Maya-S and 248.7 tok/s on Maya-S24. Japanese answers were correct, with no Chinese mixed in. - Decode is VRAM-bound: VRAM hit 26-50%, 140-200 RAM-tier fetches per token over PCIe. Task Manager during decode: GPU Compute 98%, Copy ~30%. ## Issue 1: `--bench` reports the wrong GPU on Windows when an old AMD adapter is still in the registry `maya-bench.txt` says `GPUs: AMD Radeon RX 6700 XT 12 GB`, while `--check` and `--report` correctly show `GPU 0 (AMD Radeon RX 9070 XT, 16 GB, gfx1201)` from hipInfo. The engine itself runs on the 9070 XT (15.92 GB in its log), so only the label is wrong. Cause: the display class in the registry still holds the card this PC had before (`0000 AMD Radeon RX 6700 XT`, `Get-PnpDevice` status Unknown = not present), and `bench()` (`maya.py:2497`) calls `S.amd_gpus()` without the hipInfo path, so on Windows it falls back to `windows_amd_adapters()`, which lists every AMD entry in the registry, present or not. Possible fixes: pass the hipInfo path in `bench()` as `--check` does, and/or have `windows_amd_adapters()` skip adapters that are not present (e.g. filter by `Get-PnpDevice -PresentOnly`). That also matters for `--gpu N` on a PC without hipInfo, where the stale entry would shift the numbering. ## Issue 2: a prompt budget the pool cannot lend drops prefill to token-by-token (a 5-6x cliff) With `STRATA_GLM_PREFILL_MB=3072` (or 4096) on Maya-S, the log says ``` glm prefill: CUDA0 prestage buffer 160 -> 0 experts (what the pool can lend) glm prefill: CUDA0 the pool (19 slots/layer) cannot lend 1910 MB - token by token ``` and prefill goes from 54 to 9 tok/s. It would be friendlier to shrink the chunk to what the pool can lend (2048 MB worked here) instead of falling back to one token at a time. Setup does not write these settings for cards under 20 GB, so this only bites when set by hand, but it is an easy trap on 16 GB cards. <details> <summary>maya-report.txt (Maya-S24)</summary> ``` ## Maya version 1.1.4, commit f4d13e1 2026-10-12, Python 3.12.10, win32 ## System Windows-11-10.0.26200-SP0 ## GPUs hipInfo (HIP GPU indices): GPU 0 (AMD Radeon RX 9070 XT, 16 GB, gfx1201); driver windows Windows 10.0.26200 ## ROCm path C:\Program Files\AMD\ROCm\7.2 version HIP version: 7.2.60201-38d754472 clang version 21.0.0git (git@github.com:AMD-Lightning-Internal/llvm-project 590b9320a5be90e40268759c6203c01fde121e68) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\Program Files\AMD\ROCm\7.2\bin ## CPU and RAM AMD Ryzen 9 5900XT 16-Core Processor, 32 threads, AVX2 RAM 127.9 GB, 105.2 GB available now, page file 32 GB ## Disks FriendlyName MediaType BusType Size ------------ --------- ------- ---- AMD-RAID Array 2 SSD RAID 1999286304768 SSD 1TB SSD RAID 1024209543168 ## Engine build {"backend": "hip", "archs": ["gfx1100", "gfx1201", "gfx1151"], "rocm": "C:\\Program Files\\AMD\\ROCm\\7.2", "date": "2026-10-13 17:46"} ## Setup maya-maya-s24-hip.json model Maya-S24, context 8192, GPUs [0], images off, settings {"STRATA_GLM_RESERVE_MB": "3072", "STRATA_GLM_RAM_HEADROOM_GB": "16", "STRATA_GLM_SPLIT": "0", "STRATA_HIPBLASLT_TUNING": "C:\\HomeLab\\Maya\\tools\\hip\\gfx1201-glm-hipblaslt-100202.txt"} model folder C:\HomeLab\Maya-data\models\Maya-S24: 94.7 GB of GGUF, 1011 GB free, not a hard disk ## Engine log maya-maya-s24-hip.log not written yet (start Maya once and ask it something) ## Benchmark (maya-bench.txt, from --bench) Project Maya v1.1.4 benchmark, 2026-10-13 19:35 GPUs: AMD Radeon RX 6700 XT 12 GB; RAM 128 GB; CPU AMD Ryzen 9 5900XT 16-Core Processor setup: maya-maya-s24-hip.json, context 8192, GPUs [0] decode (writing the answer): mean 9.7 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 9.4 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 10.1 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 9.6 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 340 tokens/s, 2048 tokens engine lines: glm prefill: CUDA0 chunks of 10240 tokens (--prefill auto, up to 32768; mixer sub-batches of 256), borrowing 3397 MB of the expert pool while a prompt runs (activations 2046, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 5.88 of 15.92 GB in use - dense weights 5.24, state/KV (8192 ctx) 0.32, activations 0.06, other (context, MTP, scratch, prompt path) 0.25 glm fast: the expert profile C:\HomeLab\Maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.04 GB, 25-32 slots/layer (1063 total) glm fast: CUDA0 RAM tier 78.03 GB pinned, 11779 slots glm fast: CUDA0 tiers warm: 12096 experts (86.0 GB) in 65 s (1.32 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 16 threads, an expert 0.211 ms on the CPU vs 0.061 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 0 0 1 1 1 1 glm stat: decode 93.52 ms/tok (10.69 tok/s) | vram hit 50.39% | ram fetches 141.66/tok | disk 0.00 reads/tok in 7.41 waits/tok, 0.02 ms/tok | promotions 59.75/tok | cpu lane 14.05/tok in 6.04 ms/tok | prompt 123.8 ms/tok | vram 999/1063 ram 11045/11779 glm stat: decode 106.49 ms/tok (9.39 tok/s) | vram hit 32.30% | ram fetches 187.46/tok | disk 0.00 reads/tok in 9.94 waits/tok, 0.02 ms/tok | promotions 62.65/tok | cpu lane 27.82/tok in 11.11 ms/tok | prompt 110.3 ms/tok | vram 1002/1063 ram 11039/11779 glm stat: decode 99.09 ms/tok (10.09 tok/s) | vram hit 42.37% | ram fetches 162.28/tok | disk 0.00 reads/tok in 9.97 waits/tok, 0.02 ms/tok | promotions 62.06/tok | cpu lane 19.34/tok in 7.73 ms/tok | prompt 109.5 ms/tok | vram 988/1063 ram 11052/11779 glm stat: decode 104.47 ms/tok (9.57 tok/s) | vram hit 32.22% | ram fetches 188.42/tok | disk 0.00 reads/tok in 8.68 waits/tok, 0.02 ms/tok | promotions 62.65/tok | cpu lane 28.31/tok in 11.09 ms/tok | prompt 112.0 ms/tok | vram 1007/1063 ram 11051/11779 glm stat (prompt only): prompt 3.4 ms/tok | vram 766/1063 ram 11279/11779 glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 1 kept, 0.18 GB glm stat (prompt only): prompt 2.9 ms/tok | vram 805/1063 ram 11257/11779 ``` </details> <details> <summary>maya-bench.txt (Maya-S, default settings)</summary> ``` Project Maya v1.1.4 benchmark, 2026-10-13 18:34 GPUs: AMD Radeon RX 6700 XT 12 GB; RAM 128 GB; CPU AMD Ryzen 9 5900XT 16-Core Processor setup: maya-maya-s-v2-iq2_xxs-hip.json, context 8192, GPUs [0] decode (writing the answer): mean 8.4 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 8.2 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 8.6 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 8.3 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 44 tokens/s, 2048 tokens engine lines: glm prefill: CUDA0 chunks of 768 tokens (--prefill auto, up to 32768; mixer sub-batches of 256), borrowing 527 MB of the expert pool while a prompt runs (activations 329, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 7.49 of 15.92 GB in use - dense weights 6.86, state/KV (8192 ctx) 0.32, activations 0.06, other (context, MTP, scratch, prompt path) 0.25 glm fast: the expert profile C:\HomeLab\Maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 5.43 GB, 19-28 slots/layer (819 total) glm fast: CUDA0 RAM tier 76.86 GB pinned, 11603 slots glm fast: CUDA0 tiers warm: 12096 experts (86.0 GB) in 62 s (1.38 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 16 threads, an expert 0.244 ms on the CPU vs 0.065 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 0 0 1 1 1 1 glm stat: decode 111.97 ms/tok (8.93 tok/s) | vram hit 43.49% | ram fetches 158.30/tok | disk 0.00 reads/tok in 8.58 waits/tok, 0.02 ms/tok | promotions 60.73/tok | cpu lane 18.53/tok in 8.00 ms/tok | prompt 128.2 ms/tok | vram 739/819 ram 11302/11603 glm stat: decode 121.40 ms/tok (8.24 tok/s) | vram hit 26.70% | ram fetches 200.55/tok | disk 0.00 reads/tok in 11.25 waits/tok, 0.03 ms/tok | promotions 62.76/tok | cpu lane 31.72/tok in 13.06 ms/tok | prompt 120.3 ms/tok | vram 768/819 ram 11287/11603 glm stat: decode 116.23 ms/tok (8.60 tok/s) | vram hit 38.45% | ram fetches 171.59/tok | disk 0.00 reads/tok in 10.71 waits/tok, 0.02 ms/tok | promotions 62.28/tok | cpu lane 22.02/tok in 9.16 ms/tok | prompt 125.2 ms/tok | vram 749/819 ram 11288/11603 glm stat: decode 119.93 ms/tok (8.34 tok/s) | vram hit 25.89% | ram fetches 203.74/tok | disk 0.00 reads/tok in 10.21 waits/tok, 0.02 ms/tok | promotions 62.70/tok | cpu lane 32.64/tok in 13.40 ms/tok | prompt 128.6 ms/tok | vram 762/819 ram 11282/11603 glm stat (prompt only): prompt 22.9 ms/tok | vram 799/819 ram 11279/11603 glm slots: saved a 2047-token conversation (0.18 GB in 0.3 s); 1 kept, 0.18 GB glm stat (prompt only): prompt 22.9 ms/tok | vram 780/819 ram 11280/11603 ``` </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@pros02 commented on GitHub (Oct 13, 2026):

Follow-up: Maya-S24 at 32K context on the same PC (RX 9070 XT 16 GB, Windows 11, HIP 7.2, v1.1.4). Setup re-run with --context 32768, engine settings as setup writes them.

--bench:

8K 32K
decode (3x256, greedy, thinking off) 9.7 tok/s 9.0 tok/s
prefill, 2048 tokens 340 tok/s 107 tok/s
prefill, 8192 tokens - 82 tok/s
prompt chunk 10240 7936
VRAM expert pool 1063 slots, 7.04 GB 1019 slots, 6.75 GB (KV 0.32 -> 0.62 GB)
glm stat (prompt only) 3.4 ms/tok 9.3-12.2 ms/tok

Through the API (Japanese documents, thinking off, temperature 0), 32K:

prompt prefill decode wall
3,080 tokens 61 tok/s 6.9 tok/s 90 s
9,379 tokens 152 tok/s 7.3 tok/s 111 s
19,424 tokens 174 tok/s 5.8 tok/s 164 s

At 8K the same ~3K-token prompt read at 249 tok/s. The answers were correct at every length (a fact that appears only near the end of the 19K-token prompt was found).

One thing I can't explain: a 2K prompt fits in one chunk at both 8K (10240) and 32K (7936), yet prefill is ~3x slower per token at 32K (3.4 vs 9.5 ms/tok). Longer prompts then speed up (61 -> 152 -> 174 tok/s), as if each prompt pays a fixed cost that does not depend on its length. Is that expected from the larger KV/attention setup at 32K, or worth a look? Happy to run anything that helps (an env setting, a log level).

🤖 Generated with Claude Code

<!-- gh-comment-id:6144639133 --> @pros02 commented on GitHub (Oct 13, 2026): Follow-up: **Maya-S24 at 32K context** on the same PC (RX 9070 XT 16 GB, Windows 11, HIP 7.2, v1.1.4). Setup re-run with `--context 32768`, engine settings as setup writes them. `--bench`: | | 8K | 32K | |---|---:|---:| | decode (3x256, greedy, thinking off) | 9.7 tok/s | 9.0 tok/s | | prefill, 2048 tokens | 340 tok/s | **107 tok/s** | | prefill, 8192 tokens | - | 82 tok/s | | prompt chunk | 10240 | 7936 | | VRAM expert pool | 1063 slots, 7.04 GB | 1019 slots, 6.75 GB (KV 0.32 -> 0.62 GB) | | `glm stat (prompt only)` | 3.4 ms/tok | 9.3-12.2 ms/tok | Through the API (Japanese documents, thinking off, temperature 0), 32K: | prompt | prefill | decode | wall | |---:|---:|---:|---:| | 3,080 tokens | 61 tok/s | 6.9 tok/s | 90 s | | 9,379 tokens | 152 tok/s | 7.3 tok/s | 111 s | | 19,424 tokens | 174 tok/s | 5.8 tok/s | 164 s | At 8K the same ~3K-token prompt read at 249 tok/s. The answers were correct at every length (a fact that appears only near the end of the 19K-token prompt was found). One thing I can't explain: a 2K prompt fits in one chunk at both 8K (10240) and 32K (7936), yet prefill is ~3x slower per token at 32K (3.4 vs 9.5 ms/tok). Longer prompts then speed up (61 -> 152 -> 174 tok/s), as if each prompt pays a fixed cost that does not depend on its length. Is that expected from the larger KV/attention setup at 32K, or worth a look? Happy to run anything that helps (an env setting, a log level). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

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

Thanks - the first RDNA4 report on Windows, and a careful one. Both issues are real:

1. The wrong GPU name in maya-bench.txt: confirmed. --bench (and the start's VRAM lookup) list AMD GPUs without hipInfo, so on Windows they fall back to the registry, which still holds your old 6700 XT. The fix is the one you suggest: use hipInfo there as --check does, and skip adapters that aren't present. It's on our list.

2. The token-by-token cliff: confirmed too. When the prompt buffers don't fit in what the expert pool can lend, the engine shrinks only the prestage buffer and then gives up the prompt path entirely. Shrinking the chunk to fit is better, and that's what we'll do. Until then, setup's own choice (no STRATA_GLM_PREFILL_MB on 16 GB cards) is the safe one.

The 32K follow-up: a 2K prompt being ~3x slower per token at 32K than at 8K isn't expected - it fits one chunk either way, and with every expert in VRAM + RAM there's no disk in it. To see which part of the prompt pass grows, could you run --bench once at each context with "STRATA_GLM_PREFILL_PROF": "1" added to the config's env, and paste the glm prefill prof block from each engine log? The engine prints it when it stops, with the time of each phase.

And good to see Maya-S24 confirmed as the right pick for 16 GB.

<!-- gh-comment-id:6147946081 --> @mw00 commented on GitHub (Oct 13, 2026): Thanks - the first RDNA4 report on Windows, and a careful one. Both issues are real: **1. The wrong GPU name in `maya-bench.txt`:** confirmed. `--bench` (and the start's VRAM lookup) list AMD GPUs without hipInfo, so on Windows they fall back to the registry, which still holds your old 6700 XT. The fix is the one you suggest: use hipInfo there as `--check` does, and skip adapters that aren't present. It's on our list. **2. The token-by-token cliff:** confirmed too. When the prompt buffers don't fit in what the expert pool can lend, the engine shrinks only the prestage buffer and then gives up the prompt path entirely. Shrinking the chunk to fit is better, and that's what we'll do. Until then, setup's own choice (no `STRATA_GLM_PREFILL_MB` on 16 GB cards) is the safe one. **The 32K follow-up:** a 2K prompt being ~3x slower per token at 32K than at 8K isn't expected - it fits one chunk either way, and with every expert in VRAM + RAM there's no disk in it. To see which part of the prompt pass grows, could you run `--bench` once at each context with `"STRATA_GLM_PREFILL_PROF": "1"` added to the config's `env`, and paste the `glm prefill prof` block from each engine log? The engine prints it when it stops, with the time of each phase. And good to see Maya-S24 confirmed as the right pick for 16 GB.
Author
Owner

@pros02 commented on GitHub (Oct 19, 2026):

Thanks for confirming both issues and for the detailed explanation.

Sorry, I have since removed Maya from this PC, so I can't run the
STRATA_GLM_PREFILL_PROF bench you asked for. If I install it again,
I'll run it and post the glm prefill prof blocks here.

<!-- gh-comment-id:6273345347 --> @pros02 commented on GitHub (Oct 19, 2026): Thanks for confirming both issues and for the detailed explanation. Sorry, I have since removed Maya from this PC, so I can't run the `STRATA_GLM_PREFILL_PROF` bench you asked for. If I install it again, I'll run it and post the `glm prefill prof` blocks here.
Author
Owner

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

Thanks for the detailed report and for following up! Closing this for now. If you install Maya again, feel free to reopen it with the prefill profile output and we'll pick it up from there.

<!-- gh-comment-id:6275963700 --> @mw00 commented on GitHub (Oct 19, 2026): Thanks for the detailed report and for following up! Closing this for now. If you install Maya again, feel free to reopen it with the prefill profile output and we'll pick it up from there.
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#57
No description provided.