[GH-ISSUE #229] Speed report: 4x MI100 (gfx908), Maya-S24, 262144 context — v1.1.12 #88

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

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

Speed report per CONTRIBUTING.md: ./maya.sh --bench then ./maya.sh --report on a build from source (HIP), Maya v1.1.12, commit 7f96a3a.

Hardware

  • 4× AMD Instinct MI100 32 GB (gfx908, Arcturus), KFD indices 0–3, each negotiated at PCIe 4.0 x16 (LnkSta: 16GT/s, Width x16)
  • CPU/RAM: AMD EPYC 7402 (24 cores / 48 threads, AVX2), 251.6 GB RAM
  • OS: Debian 13 (trixie), kernel 6.12.107+deb13p2p; ROCm 7.2.4 (/opt/rocm-7.2.4), amdgpu in-tree driver
  • Model disk: WD PC SN810 NVMe 1 TB (448 GB free at pack folder)

Engine command and environment

./run-maya-maya-s24-hip.sh --host 0.0.0.0 → maya.py --config maya-maya-s24-hip.json --port 8099; server launches /mnt/nvme0/GLM/maya/build-hip/strata --serve with:

--glm-pack /mnt/nvme0/GLM/Maya-data/models/Maya-S24/pack
--max-context 262144
--expert-cache auto
--prefill auto
--kv-streaming on
--expert-profile /mnt/nvme0/GLM/maya/data/expert-profile-glm.bin

Environment (STRATA_GLM_*): STRATA_GLM_RESERVE_MB=3072, STRATA_GLM_RAM_HEADROOM_GB=16, STRATA_GLM_PREFILL_SUB=4096, STRATA_GLM_PREFILL_MB=6144, STRATA_GLM_RAM_GB=60.

Model and context

  • Model: Maya-S24 quant (IQ2_XXS gate/up, IQ2_S/IQ3_XXS down experts, Q4_K attention + shared experts, MTP draft), 94.7 GB of GGUF
  • Context: 262144 with --kv-streaming on — KV is 0.25 GB per GPU at this context; the expert pool still holds 100% of routed experts in VRAM (12384/15040 slots, vram hit 100.00%, CPU lane never engages)
  • Warm-up: all tiers warm in 9–12 s per GPU (~2 GB/s), model load 26 s

Bench results (./maya.sh --bench, 2026-10-16)

  • Decode: mean 58.5 tokens/s over 3 answers of 256 tokens (greedy, thinking off): 58.0 / 56.1 / 61.5
  • Prefill: 455 tokens/s at 2048 tokens, 493 tokens/s at 8192 tokens
  • Engine memory split lines: 1229 GB/s per MI100, host reads RAM at 108 GB/s, split [0,12)/[12,24)/[24,36)/[36,45) across the four GPUs, one 64 KB host hop per boundary per token
  • Prefill ran as chunks of 8192 tokens (mixer sub-batches of 4096)

What was measured / not measured

Measured: decode on three 256-token greedy questions, prefill at 2k/8k, startup memory layout and warm-up, one smoke completion at 262144 context.

Not measured: generation quality/correctness at long context (only 262144 load + a 14-token completion was verified), RAM/disk expert tiers (everything stayed in VRAM, so the CPU lane, disk readers, and RAM fetch paths never engaged), vision, batch/multi-client load, other quants.

maya-report.txt (26.7 KB, as produced by ./maya.sh --report)
## Maya
version 1.1.12, commit 7f96a3a 2026-10-15, Python 3.13.5, linux

## System
Linux-6.12.107+deb13p2p-amd64-x86_64-with-glibc2.41

## GPUs
KFD topology (HIP GPU indices):
GPU 0 (AMD Radeon (gfx908), 32 GB, gfx908); driver amdgpu
GPU 1 (AMD Radeon (gfx908), 32 GB, gfx908); driver amdgpu
GPU 2 (AMD Radeon (gfx908), 32 GB, gfx908); driver amdgpu
GPU 3 (AMD Radeon (gfx908), 32 GB, gfx908); driver amdgpu
amdgpu driver: in-tree, kernel 6.12.107+deb13p2p-amd64

rocm-smi (tool GPU indices):
{
  "card0": {
    "VRAM Total Memory (B)": "34342961152",
    "VRAM Total Used Memory (B)": "6762496",
    "Card Series": "AMD Instinct MI100",
    "Card Model": "0x738c",
    "Card Vendor": "Advanced Micro Devices, Inc. [AMD/ATI]",
    "Card SKU": "D3431401",
    "Subsystem ID": "0x0c34",
    "Device Rev": "0x01",
    "Node ID": "4",
    "GUID": "4106",
    "GFX Version": "gfx908"
  },
  "card1": {
    "VRAM Total Memory (B)": "34342961152",
    "VRAM Total Used Memory (B)": "6762496",
    "Card Series": "AMD Instinct MI100",
    "Card Model": "0x738c",
    "Card Vendor": "Advanced Micro Devices, Inc. [AMD/ATI]",
    "Card SKU": "D3431401",
    "Subsystem ID": "0x0c34",
    "Device Rev": "0x01",
    "Node ID": "3",
    "GUID": "57403",
    "GFX Version": "gfx908"
  },
  "card2": {
    "VRAM Total Memory (B)": "34342961152",
    "VRAM Total Used Memory (B)": "6762496",
    "Card Series": "AMD Instinct MI100",
    "Card Model": "0x738c",
    "Card Vendor": "Advanced Micro Devices, Inc. [AMD/ATI]",
    "Card SKU": "D3431401",
    "Subsystem ID": "0x0c34",
    "Device Rev": "0x01",
    "Node ID": "2",
    "GUID": "45163",
    "GFX Version": "gfx908"
  },
  "card3": {
    "VRAM Total Memory (B)": "34342961152",
    "VRAM Total Used Memory (B)": "6762496",
    "Card Series": "AMD Instinct MI100",
    "Card Model": "0x738c",
    "Card Vendor": "Advanced Micro Devices, Inc. [AMD/ATI]",
    "Card SKU": "D3431401",
    "Subsystem ID": "0x0c34",
    "Device Rev": "0x01",
    "Node ID": "1",
    "GUID": "33624",
    "GFX Version": "gfx908"
  },
  "system": {
    "Driver version": "6.12.107+deb13p2p-amd64"
  }
}

## ROCm
path /opt/rocm-7.2.4
version 7.2.4

## CPU and RAM
AMD EPYC 7402 24-Core Processor, 48 threads, AVX2
RAM 251.6 GB, 207.4 GB available now

## Disks
NAME    MODEL                      ROTA TRAN     SIZE
sda     SK hynix SC300B SATA 512GB    0 sata   476.9G
sdb     SK hynix SC300B SATA 512GB    0 sata   476.9G
sdc     Virtual HDisk0                0 usb        0B
sdd     Cruzer                        1 usb    117.4G
sr0     Virtual CDROM0                0 usb     1024M
nvme0n1 PC SN810 NVMe WDC 1024GB      0 nvme   953.9G

## Engine build
{"backend": "hip", "archs": ["gfx908"], "rocm": "/opt/rocm-7.2.4", "date": "2026-10-16 02:00"}

## Setup maya-maya-s24-hip.json
model Maya-S24, context 262144, GPUs [0, 1, 2, 3], images off, settings {"STRATA_GLM_RESERVE_MB": "3072", "STRATA_GLM_RAM_HEADROOM_GB": "16", "STRATA_GLM_PREFILL_SUB": "4096", "STRATA_GLM_PREFILL_MB": "6144", "STRATA_GLM_RAM_GB": "60"}
model folder /mnt/nvme0/GLM/Maya-data/models/Maya-S24: 94.7 GB of GGUF, 448 GB free, not a hard disk

## Engine log maya-maya-s24-hip.log: the speed and memory lines (last 80 of 284)
glm stat: decode 19.68 ms/tok (50.80 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 23.58 ms/tok (42.41 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm slots: saved a 69155-token conversation (1.11 GB in 1.0 s); 3 kept, 1.62 GB
glm stat: decode 19.98 ms/tok (50.06 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 2.1 ms/tok | vram 12384/15040 ram 0/198
glm slots: saved a 1842-token conversation (0.18 GB in 0.2 s); 4 kept, 1.80 GB
glm stat: decode 21.60 ms/tok (46.30 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 1.2 ms/tok | vram 12384/15040 ram 0/198
glm slots: saved a 69925-token conversation (1.12 GB in 1.0 s); 4 kept, 2.73 GB
glm stat: decode 22.72 ms/tok (44.02 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 1.3 ms/tok | vram 12384/15040 ram 0/198
glm slots: saved a 88520-token conversation (1.38 GB in 1.2 s); 4 kept, 3.78 GB
glm stat: decode 24.44 ms/tok (40.92 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 1.6 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 21.26 ms/tok (47.04 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 20.06 ms/tok (49.86 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 23.07 ms/tok (43.34 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.92 ms/tok (43.63 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.14 ms/tok (45.17 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.2 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 19.41 ms/tok (51.52 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 19.10 ms/tok (52.36 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 23.22 ms/tok (43.06 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 19.25 ms/tok (51.95 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 19.24 ms/tok (51.98 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.41 ms/tok (44.63 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.55 ms/tok (44.34 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.70 ms/tok (44.05 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 19.85 ms/tok (50.38 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.49 ms/tok (44.47 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.60 ms/tok (44.24 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 23.88 ms/tok (41.87 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm slots: saved a 51831-token conversation (0.87 GB in 0.8 s); 4 kept, 3.54 GB
glm stat: decode 24.11 ms/tok (41.48 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 1.4 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 21.28 ms/tok (46.99 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.26 ms/tok (44.93 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.54 ms/tok (44.37 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 23.03 ms/tok (43.42 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 21.76 ms/tok (45.96 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 24.38 ms/tok (41.01 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.49 ms/tok (44.47 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 20.94 ms/tok (47.76 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 23.07 ms/tok (43.35 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 23.09 ms/tok (43.31 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.52 ms/tok (44.41 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 20.06 ms/tok (49.85 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 20.35 ms/tok (49.14 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 20.11 ms/tok (49.72 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 21.61 ms/tok (46.27 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 22.97 ms/tok (43.53 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 19.78 ms/tok (50.54 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 24.41 ms/tok (40.97 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198
glm split auto: CUDA0 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free
glm split auto: CUDA1 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free
glm split auto: CUDA2 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free
glm split auto: CUDA3 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free
glm split auto: the host reads RAM at 112 GB/s (a part's CPU lane: 28); the routes from the default coverage curve (no usage counts); a token costs the parts added
glm split auto: layers [0, 12) on CUDA0, [12, 24) on CUDA1, [24, 36) on CUDA2, [36, 45) on CUDA3 - a token 6.5 ms predicted (CUDA0 1.7 ms, 288 slots a layer | CUDA1 1.6 ms, 288 slots a layer | CUDA2 1.6 ms, 288 slots a layer | CUDA3 1.6 ms, 288 slots a layer), 100% of the routed experts in VRAM
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4273 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 12 experts (86 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 2.02 of 31.98 GB in use - dense weights 1.49, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22
glm fast: the expert profile /mnt/nvme0/GLM/maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,12) expert pool 21.89 GB, 360-360 slots/layer (3240 total) - complete: every expert, 3 spares and 69 lendable slots a layer
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4267 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 80, prestage 0: 0 experts); disk landing ring 96 experts (642 MB pinned)
glm fast: CUDA1 VRAM before the expert pool: 1.71 of 31.98 GB in use - dense weights 1.19, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22
glm fast: CUDA1 layers [12,24) expert pool 27.04 GB, 345-345 slots/layer (4140 total) - complete: every expert, 3 spares and 54 lendable slots a layer
glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4267 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 80, prestage 0: 0 experts); disk landing ring 96 experts (642 MB pinned)
glm fast: CUDA2 VRAM before the expert pool: 1.71 of 31.98 GB in use - dense weights 1.19, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22
glm fast: CUDA2 layers [24,36) expert pool 27.04 GB, 345-345 slots/layer (4140 total) - complete: every expert, 3 spares and 54 lendable slots a layer
glm prefill: CUDA3 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4273 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 12 experts (86 MB pinned)
glm fast: CUDA3 VRAM before the expert pool: 2.04 of 31.98 GB in use - dense weights 1.37, state/KV (262144 ctx) 0.24, activations 0.07, other (context, MTP, scratch, prompt path) 0.36
glm fast: CUDA3 layers [36,45) expert pool 24.39 GB, 352-352 slots/layer, the draft layer 352 (3520 total) - complete: every expert, 3 spares and 61 lendable slots a layer
glm fast: CUDA0 RAM tier 0.34 GB pinned, 50 slots
glm fast: CUDA1 RAM tier 0.26 GB pinned, 40 slots
glm fast: CUDA2 RAM tier 0.26 GB pinned, 40 slots
glm fast: CUDA3 RAM tier 0.49 GB pinned, 68 slots
glm fast: CUDA0 tiers warm: 2592 experts (18.8 GB) in 9 s (2.07 GB/s)
glm fast: CUDA3 tiers warm: 2880 experts (21.4 GB) in 11 s (2.01 GB/s)
glm fast: CUDA1 tiers warm: 3456 experts (24.2 GB) in 12 s (1.96 GB/s)
glm fast: CUDA2 tiers warm: 3456 experts (24.2 GB) in 12 s (1.99 GB/s)
glm fast: CUDA0 CPU lane off: the RAM tier holds no expert
glm fast: CUDA1 CPU lane off: the RAM tier holds no expert
glm fast: CUDA2 CPU lane off: the RAM tier holds no expert
glm fast: CUDA3 CPU lane off: the RAM tier holds no expert
glm split: layers [0, 12) on CUDA0, [12, 24) on CUDA1, [24, 36) on CUDA2, [36, 45) on CUDA3 (one 64 KB host hop per boundary per token)
glm stat: decode 22.79 ms/tok (43.88 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 36.5 ms/tok | vram 12384/15040 ram 0/198

## Engine log maya-maya-s24-hip.log: the last 25 lines
glm fast: CUDA3 warming the expert tiers 80% (17.2 of 21.4 GB, 9 s)
glm fast: CUDA2 warming the expert tiers 80% (19.4 of 24.2 GB, 10 s)
glm fast: CUDA1 warming the expert tiers 90% (21.8 of 24.2 GB, 11 s)
glm fast: CUDA3 warming the expert tiers 90% (19.3 of 21.4 GB, 10 s)
glm fast: CUDA2 warming the expert tiers 90% (21.8 of 24.2 GB, 11 s)
glm fast: CUDA3 warming the expert tiers 100% (21.4 of 21.4 GB, 11 s)
glm fast: CUDA3 tiers warm: 2880 experts (21.4 GB) in 11 s (2.01 GB/s)
glm fast: CUDA1 warming the expert tiers 100% (24.2 of 24.2 GB, 12 s)
glm fast: CUDA1 tiers warm: 3456 experts (24.2 GB) in 12 s (1.96 GB/s)
glm fast: CUDA2 warming the expert tiers 100% (24.2 of 24.2 GB, 12 s)
glm fast: CUDA2 tiers warm: 3456 experts (24.2 GB) in 12 s (1.99 GB/s)
glm fast: CUDA0 CPU lane off: the RAM tier holds no expert
glm fast: CUDA1 CPU lane off: the RAM tier holds no expert
glm fast: CUDA2 CPU lane off: the RAM tier holds no expert
glm fast: CUDA3 CPU lane off: the RAM tier holds no expert
glm split: layers [0, 12) on CUDA0, [12, 24) on CUDA1, [24, 36) on CUDA2, [36, 45) on CUDA3 (one 64 KB host hop per boundary per token)
maya serve: CUDA0: 8302 MiB of VRAM free with everything loaded
maya serve: CUDA1: 3334 MiB of VRAM free with everything loaded
maya serve: CUDA2: 3334 MiB of VRAM free with everything loaded
maya serve: CUDA3: 5714 MiB of VRAM free with everything loaded
maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end
glm stat: decode 22.79 ms/tok (43.88 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 36.5 ms/tok | vram 12384/15040 ram 0/198
glm spec: 0 of 2 drafts accepted (0.0%)
glm kv: KV streaming: 90.02% of 591 block reads hit VRAM, 0.2 MiB read from RAM
glm spec: 2 speculative positions, 0.0% accepted

## Benchmark (maya-bench.txt, from --bench)
Project Maya v1.1.12 benchmark, 2026-10-16 12:31
GPUs: AMD Radeon (gfx908) 32 GB, AMD Radeon (gfx908) 32 GB, AMD Radeon (gfx908) 32 GB, AMD Radeon (gfx908) 32 GB; RAM 252 GB; CPU AMD EPYC 7402 24-Core Processor
setup: maya-maya-s24-hip.json, context 262144, GPUs [0, 1, 2, 3]
decode (writing the answer): mean 58.5 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
    58.0 tokens/s  Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
    56.1 tokens/s  Explain how photosynthesis works, step by step, for a high-school student.
    61.5 tokens/s  Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 455 tokens/s, 2048 tokens
prefill (reading the prompt): 493 tokens/s, 8192 tokens

engine lines:
glm split auto: CUDA1 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free
glm split auto: CUDA2 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free
glm split auto: CUDA3 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free
glm split auto: the host reads RAM at 108 GB/s (a part's CPU lane: 27); the routes from the default coverage curve (no usage counts); a token costs the parts added
glm split auto: layers [0, 12) on CUDA0, [12, 24) on CUDA1, [24, 36) on CUDA2, [36, 45) on CUDA3 - a token 6.5 ms predicted (CUDA0 1.7 ms, 288 slots a layer | CUDA1 1.6 ms, 288 slots a layer | CUDA2 1.6 ms, 288 slots a layer | CUDA3 1.6 ms, 288 slots a layer), 100% of the routed experts in VRAM
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4273 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 12 experts (86 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 2.02 of 31.98 GB in use - dense weights 1.49, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22
glm fast: the expert profile /mnt/nvme0/GLM/maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,12) expert pool 21.89 GB, 360-360 slots/layer (3240 total) - complete: every expert, 3 spares and 69 lendable slots a layer
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4267 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 80, prestage 0: 0 experts); disk landing ring 96 experts (642 MB pinned)
glm fast: CUDA1 VRAM before the expert pool: 1.71 of 31.98 GB in use - dense weights 1.19, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22
glm fast: CUDA1 layers [12,24) expert pool 27.04 GB, 345-345 slots/layer (4140 total) - complete: every expert, 3 spares and 54 lendable slots a layer
glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4267 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 80, prestage 0: 0 experts); disk landing ring 96 experts (642 MB pinned)
glm fast: CUDA2 VRAM before the expert pool: 1.71 of 31.98 GB in use - dense weights 1.19, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22
glm fast: CUDA2 layers [24,36) expert pool 27.04 GB, 345-345 slots/layer (4140 total) - complete: every expert, 3 spares and 54 lendable slots a layer
glm prefill: CUDA3 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4273 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 12 experts (86 MB pinned)
glm fast: CUDA3 VRAM before the expert pool: 2.04 of 31.98 GB in use - dense weights 1.37, state/KV (262144 ctx) 0.24, activations 0.07, other (context, MTP, scratch, prompt path) 0.36
glm fast: CUDA3 layers [36,45) expert pool 24.39 GB, 352-352 slots/layer, the draft layer 352 (3520 total) - complete: every expert, 3 spares and 61 lendable slots a layer
glm fast: CUDA0 RAM tier 0.34 GB pinned, 50 slots
glm fast: CUDA1 RAM tier 0.26 GB pinned, 40 slots
glm fast: CUDA2 RAM tier 0.26 GB pinned, 40 slots
glm fast: CUDA3 RAM tier 0.49 GB pinned, 68 slots
glm fast: CUDA0 tiers warm: 2592 experts (18.8 GB) in 9 s (2.02 GB/s)
glm fast: CUDA3 tiers warm: 2880 experts (21.4 GB) in 11 s (1.99 GB/s)
glm fast: CUDA1 tiers warm: 3456 experts (24.2 GB) in 12 s (1.95 GB/s)
glm fast: CUDA2 tiers warm: 3456 experts (24.2 GB) in 12 s (1.98 GB/s)
glm fast: CUDA0 CPU lane off: the RAM tier holds no expert
glm fast: CUDA1 CPU lane off: the RAM tier holds no expert
glm fast: CUDA2 CPU lane off: the RAM tier holds no expert
glm fast: CUDA3 CPU lane off: the RAM tier holds no expert
glm split: layers [0, 12) on CUDA0, [12, 24) on CUDA1, [24, 36) on CUDA2, [36, 45) on CUDA3 (one 64 KB host hop per boundary per token)
glm stat: decode 17.27 ms/tok (57.92 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 36.5 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 17.25 ms/tok (57.97 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 27.8 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 17.82 ms/tok (56.12 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 27.8 ms/tok | vram 12384/15040 ram 0/198
glm stat: decode 16.27 ms/tok (61.45 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 27.8 ms/tok | vram 12384/15040 ram 0/198
glm stat (prompt only): prompt 2.6 ms/tok | vram 12384/15040 ram 0/198
glm slots: saved a 2047-token conversation (0.18 GB in 0.3 s); 1 kept, 0.18 GB
glm stat (prompt only): prompt 2.2 ms/tok | vram 12384/15040 ram 0/198
glm slots: saved a 2047-token conversation (0.18 GB in 0.2 s); 2 kept, 0.36 GB
glm stat (prompt only): prompt 2.0 ms/tok | vram 12384/15040 ram 0/198

Originally created by @nsaxploit on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/229 Speed report per CONTRIBUTING.md: `./maya.sh --bench` then `./maya.sh --report` on a build from source (HIP), Maya **v1.1.12**, commit `7f96a3a`. ## Hardware - **4× AMD Instinct MI100 32 GB** (gfx908, Arcturus), KFD indices 0–3, each negotiated at **PCIe 4.0 x16** (LnkSta: 16GT/s, Width x16) - CPU/RAM: AMD EPYC 7402 (24 cores / 48 threads, AVX2), 251.6 GB RAM - OS: Debian 13 (trixie), kernel 6.12.107+deb13p2p; ROCm 7.2.4 (`/opt/rocm-7.2.4`), amdgpu in-tree driver - Model disk: WD PC SN810 NVMe 1 TB (448 GB free at pack folder) ## Engine command and environment `./run-maya-maya-s24-hip.sh --host 0.0.0.0` → `maya.py --config maya-maya-s24-hip.json --port 8099`; server launches `/mnt/nvme0/GLM/maya/build-hip/strata --serve` with: ``` --glm-pack /mnt/nvme0/GLM/Maya-data/models/Maya-S24/pack --max-context 262144 --expert-cache auto --prefill auto --kv-streaming on --expert-profile /mnt/nvme0/GLM/maya/data/expert-profile-glm.bin ``` Environment (`STRATA_GLM_*`): `STRATA_GLM_RESERVE_MB=3072`, `STRATA_GLM_RAM_HEADROOM_GB=16`, `STRATA_GLM_PREFILL_SUB=4096`, `STRATA_GLM_PREFILL_MB=6144`, `STRATA_GLM_RAM_GB=60`. ## Model and context - Model: **Maya-S24** quant (IQ2_XXS gate/up, IQ2_S/IQ3_XXS down experts, Q4_K attention + shared experts, MTP draft), 94.7 GB of GGUF - Context: **262144** with `--kv-streaming on` — KV is 0.25 GB per GPU at this context; the expert pool still holds **100% of routed experts in VRAM** (12384/15040 slots, `vram hit 100.00%`, CPU lane never engages) - Warm-up: all tiers warm in 9–12 s per GPU (~2 GB/s), model load 26 s ## Bench results (`./maya.sh --bench`, 2026-10-16) - **Decode: mean 58.5 tokens/s** over 3 answers of 256 tokens (greedy, thinking off): 58.0 / 56.1 / 61.5 - **Prefill: 455 tokens/s at 2048 tokens, 493 tokens/s at 8192 tokens** - Engine memory split lines: 1229 GB/s per MI100, host reads RAM at 108 GB/s, split `[0,12)/[12,24)/[24,36)/[36,45)` across the four GPUs, one 64 KB host hop per boundary per token - Prefill ran as `chunks of 8192 tokens (mixer sub-batches of 4096)` ## What was measured / not measured **Measured:** decode on three 256-token greedy questions, prefill at 2k/8k, startup memory layout and warm-up, one smoke completion at 262144 context. **Not measured:** generation quality/correctness at long context (only 262144 load + a 14-token completion was verified), RAM/disk expert tiers (everything stayed in VRAM, so the CPU lane, disk readers, and RAM fetch paths never engaged), vision, batch/multi-client load, other quants. <details> <summary><code>maya-report.txt</code> (26.7 KB, as produced by <code>./maya.sh --report</code>)</summary> ```text ## Maya version 1.1.12, commit 7f96a3a 2026-10-15, Python 3.13.5, linux ## System Linux-6.12.107+deb13p2p-amd64-x86_64-with-glibc2.41 ## GPUs KFD topology (HIP GPU indices): GPU 0 (AMD Radeon (gfx908), 32 GB, gfx908); driver amdgpu GPU 1 (AMD Radeon (gfx908), 32 GB, gfx908); driver amdgpu GPU 2 (AMD Radeon (gfx908), 32 GB, gfx908); driver amdgpu GPU 3 (AMD Radeon (gfx908), 32 GB, gfx908); driver amdgpu amdgpu driver: in-tree, kernel 6.12.107+deb13p2p-amd64 rocm-smi (tool GPU indices): { "card0": { "VRAM Total Memory (B)": "34342961152", "VRAM Total Used Memory (B)": "6762496", "Card Series": "AMD Instinct MI100", "Card Model": "0x738c", "Card Vendor": "Advanced Micro Devices, Inc. [AMD/ATI]", "Card SKU": "D3431401", "Subsystem ID": "0x0c34", "Device Rev": "0x01", "Node ID": "4", "GUID": "4106", "GFX Version": "gfx908" }, "card1": { "VRAM Total Memory (B)": "34342961152", "VRAM Total Used Memory (B)": "6762496", "Card Series": "AMD Instinct MI100", "Card Model": "0x738c", "Card Vendor": "Advanced Micro Devices, Inc. [AMD/ATI]", "Card SKU": "D3431401", "Subsystem ID": "0x0c34", "Device Rev": "0x01", "Node ID": "3", "GUID": "57403", "GFX Version": "gfx908" }, "card2": { "VRAM Total Memory (B)": "34342961152", "VRAM Total Used Memory (B)": "6762496", "Card Series": "AMD Instinct MI100", "Card Model": "0x738c", "Card Vendor": "Advanced Micro Devices, Inc. [AMD/ATI]", "Card SKU": "D3431401", "Subsystem ID": "0x0c34", "Device Rev": "0x01", "Node ID": "2", "GUID": "45163", "GFX Version": "gfx908" }, "card3": { "VRAM Total Memory (B)": "34342961152", "VRAM Total Used Memory (B)": "6762496", "Card Series": "AMD Instinct MI100", "Card Model": "0x738c", "Card Vendor": "Advanced Micro Devices, Inc. [AMD/ATI]", "Card SKU": "D3431401", "Subsystem ID": "0x0c34", "Device Rev": "0x01", "Node ID": "1", "GUID": "33624", "GFX Version": "gfx908" }, "system": { "Driver version": "6.12.107+deb13p2p-amd64" } } ## ROCm path /opt/rocm-7.2.4 version 7.2.4 ## CPU and RAM AMD EPYC 7402 24-Core Processor, 48 threads, AVX2 RAM 251.6 GB, 207.4 GB available now ## Disks NAME MODEL ROTA TRAN SIZE sda SK hynix SC300B SATA 512GB 0 sata 476.9G sdb SK hynix SC300B SATA 512GB 0 sata 476.9G sdc Virtual HDisk0 0 usb 0B sdd Cruzer 1 usb 117.4G sr0 Virtual CDROM0 0 usb 1024M nvme0n1 PC SN810 NVMe WDC 1024GB 0 nvme 953.9G ## Engine build {"backend": "hip", "archs": ["gfx908"], "rocm": "/opt/rocm-7.2.4", "date": "2026-10-16 02:00"} ## Setup maya-maya-s24-hip.json model Maya-S24, context 262144, GPUs [0, 1, 2, 3], images off, settings {"STRATA_GLM_RESERVE_MB": "3072", "STRATA_GLM_RAM_HEADROOM_GB": "16", "STRATA_GLM_PREFILL_SUB": "4096", "STRATA_GLM_PREFILL_MB": "6144", "STRATA_GLM_RAM_GB": "60"} model folder /mnt/nvme0/GLM/Maya-data/models/Maya-S24: 94.7 GB of GGUF, 448 GB free, not a hard disk ## Engine log maya-maya-s24-hip.log: the speed and memory lines (last 80 of 284) glm stat: decode 19.68 ms/tok (50.80 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 23.58 ms/tok (42.41 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm slots: saved a 69155-token conversation (1.11 GB in 1.0 s); 3 kept, 1.62 GB glm stat: decode 19.98 ms/tok (50.06 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 2.1 ms/tok | vram 12384/15040 ram 0/198 glm slots: saved a 1842-token conversation (0.18 GB in 0.2 s); 4 kept, 1.80 GB glm stat: decode 21.60 ms/tok (46.30 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 1.2 ms/tok | vram 12384/15040 ram 0/198 glm slots: saved a 69925-token conversation (1.12 GB in 1.0 s); 4 kept, 2.73 GB glm stat: decode 22.72 ms/tok (44.02 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 1.3 ms/tok | vram 12384/15040 ram 0/198 glm slots: saved a 88520-token conversation (1.38 GB in 1.2 s); 4 kept, 3.78 GB glm stat: decode 24.44 ms/tok (40.92 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 1.6 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 21.26 ms/tok (47.04 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 20.06 ms/tok (49.86 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 23.07 ms/tok (43.34 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.92 ms/tok (43.63 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.14 ms/tok (45.17 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.2 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 19.41 ms/tok (51.52 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 19.10 ms/tok (52.36 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 23.22 ms/tok (43.06 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 19.25 ms/tok (51.95 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 19.24 ms/tok (51.98 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.41 ms/tok (44.63 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.55 ms/tok (44.34 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.70 ms/tok (44.05 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 19.85 ms/tok (50.38 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.49 ms/tok (44.47 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.60 ms/tok (44.24 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 23.88 ms/tok (41.87 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm slots: saved a 51831-token conversation (0.87 GB in 0.8 s); 4 kept, 3.54 GB glm stat: decode 24.11 ms/tok (41.48 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 1.4 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 21.28 ms/tok (46.99 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.26 ms/tok (44.93 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.54 ms/tok (44.37 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 23.03 ms/tok (43.42 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 21.76 ms/tok (45.96 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 24.38 ms/tok (41.01 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.49 ms/tok (44.47 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 20.94 ms/tok (47.76 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 23.07 ms/tok (43.35 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 23.09 ms/tok (43.31 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.52 ms/tok (44.41 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 20.06 ms/tok (49.85 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 20.35 ms/tok (49.14 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 20.11 ms/tok (49.72 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 21.61 ms/tok (46.27 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 22.97 ms/tok (43.53 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 19.78 ms/tok (50.54 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.0 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 24.41 ms/tok (40.97 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 0.1 ms/tok | vram 12384/15040 ram 0/198 glm split auto: CUDA0 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free glm split auto: CUDA1 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free glm split auto: CUDA2 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free glm split auto: CUDA3 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free glm split auto: the host reads RAM at 112 GB/s (a part's CPU lane: 28); the routes from the default coverage curve (no usage counts); a token costs the parts added glm split auto: layers [0, 12) on CUDA0, [12, 24) on CUDA1, [24, 36) on CUDA2, [36, 45) on CUDA3 - a token 6.5 ms predicted (CUDA0 1.7 ms, 288 slots a layer | CUDA1 1.6 ms, 288 slots a layer | CUDA2 1.6 ms, 288 slots a layer | CUDA3 1.6 ms, 288 slots a layer), 100% of the routed experts in VRAM glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4273 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 12 experts (86 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 2.02 of 31.98 GB in use - dense weights 1.49, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22 glm fast: the expert profile /mnt/nvme0/GLM/maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,12) expert pool 21.89 GB, 360-360 slots/layer (3240 total) - complete: every expert, 3 spares and 69 lendable slots a layer glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4267 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 80, prestage 0: 0 experts); disk landing ring 96 experts (642 MB pinned) glm fast: CUDA1 VRAM before the expert pool: 1.71 of 31.98 GB in use - dense weights 1.19, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22 glm fast: CUDA1 layers [12,24) expert pool 27.04 GB, 345-345 slots/layer (4140 total) - complete: every expert, 3 spares and 54 lendable slots a layer glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4267 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 80, prestage 0: 0 experts); disk landing ring 96 experts (642 MB pinned) glm fast: CUDA2 VRAM before the expert pool: 1.71 of 31.98 GB in use - dense weights 1.19, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22 glm fast: CUDA2 layers [24,36) expert pool 27.04 GB, 345-345 slots/layer (4140 total) - complete: every expert, 3 spares and 54 lendable slots a layer glm prefill: CUDA3 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4273 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 12 experts (86 MB pinned) glm fast: CUDA3 VRAM before the expert pool: 2.04 of 31.98 GB in use - dense weights 1.37, state/KV (262144 ctx) 0.24, activations 0.07, other (context, MTP, scratch, prompt path) 0.36 glm fast: CUDA3 layers [36,45) expert pool 24.39 GB, 352-352 slots/layer, the draft layer 352 (3520 total) - complete: every expert, 3 spares and 61 lendable slots a layer glm fast: CUDA0 RAM tier 0.34 GB pinned, 50 slots glm fast: CUDA1 RAM tier 0.26 GB pinned, 40 slots glm fast: CUDA2 RAM tier 0.26 GB pinned, 40 slots glm fast: CUDA3 RAM tier 0.49 GB pinned, 68 slots glm fast: CUDA0 tiers warm: 2592 experts (18.8 GB) in 9 s (2.07 GB/s) glm fast: CUDA3 tiers warm: 2880 experts (21.4 GB) in 11 s (2.01 GB/s) glm fast: CUDA1 tiers warm: 3456 experts (24.2 GB) in 12 s (1.96 GB/s) glm fast: CUDA2 tiers warm: 3456 experts (24.2 GB) in 12 s (1.99 GB/s) glm fast: CUDA0 CPU lane off: the RAM tier holds no expert glm fast: CUDA1 CPU lane off: the RAM tier holds no expert glm fast: CUDA2 CPU lane off: the RAM tier holds no expert glm fast: CUDA3 CPU lane off: the RAM tier holds no expert glm split: layers [0, 12) on CUDA0, [12, 24) on CUDA1, [24, 36) on CUDA2, [36, 45) on CUDA3 (one 64 KB host hop per boundary per token) glm stat: decode 22.79 ms/tok (43.88 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 36.5 ms/tok | vram 12384/15040 ram 0/198 ## Engine log maya-maya-s24-hip.log: the last 25 lines glm fast: CUDA3 warming the expert tiers 80% (17.2 of 21.4 GB, 9 s) glm fast: CUDA2 warming the expert tiers 80% (19.4 of 24.2 GB, 10 s) glm fast: CUDA1 warming the expert tiers 90% (21.8 of 24.2 GB, 11 s) glm fast: CUDA3 warming the expert tiers 90% (19.3 of 21.4 GB, 10 s) glm fast: CUDA2 warming the expert tiers 90% (21.8 of 24.2 GB, 11 s) glm fast: CUDA3 warming the expert tiers 100% (21.4 of 21.4 GB, 11 s) glm fast: CUDA3 tiers warm: 2880 experts (21.4 GB) in 11 s (2.01 GB/s) glm fast: CUDA1 warming the expert tiers 100% (24.2 of 24.2 GB, 12 s) glm fast: CUDA1 tiers warm: 3456 experts (24.2 GB) in 12 s (1.96 GB/s) glm fast: CUDA2 warming the expert tiers 100% (24.2 of 24.2 GB, 12 s) glm fast: CUDA2 tiers warm: 3456 experts (24.2 GB) in 12 s (1.99 GB/s) glm fast: CUDA0 CPU lane off: the RAM tier holds no expert glm fast: CUDA1 CPU lane off: the RAM tier holds no expert glm fast: CUDA2 CPU lane off: the RAM tier holds no expert glm fast: CUDA3 CPU lane off: the RAM tier holds no expert glm split: layers [0, 12) on CUDA0, [12, 24) on CUDA1, [24, 36) on CUDA2, [36, 45) on CUDA3 (one 64 KB host hop per boundary per token) maya serve: CUDA0: 8302 MiB of VRAM free with everything loaded maya serve: CUDA1: 3334 MiB of VRAM free with everything loaded maya serve: CUDA2: 3334 MiB of VRAM free with everything loaded maya serve: CUDA3: 5714 MiB of VRAM free with everything loaded maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end glm stat: decode 22.79 ms/tok (43.88 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 36.5 ms/tok | vram 12384/15040 ram 0/198 glm spec: 0 of 2 drafts accepted (0.0%) glm kv: KV streaming: 90.02% of 591 block reads hit VRAM, 0.2 MiB read from RAM glm spec: 2 speculative positions, 0.0% accepted ## Benchmark (maya-bench.txt, from --bench) Project Maya v1.1.12 benchmark, 2026-10-16 12:31 GPUs: AMD Radeon (gfx908) 32 GB, AMD Radeon (gfx908) 32 GB, AMD Radeon (gfx908) 32 GB, AMD Radeon (gfx908) 32 GB; RAM 252 GB; CPU AMD EPYC 7402 24-Core Processor setup: maya-maya-s24-hip.json, context 262144, GPUs [0, 1, 2, 3] decode (writing the answer): mean 58.5 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 58.0 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 56.1 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 61.5 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 455 tokens/s, 2048 tokens prefill (reading the prompt): 493 tokens/s, 8192 tokens engine lines: glm split auto: CUDA1 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free glm split auto: CUDA2 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free glm split auto: CUDA3 (AMD Instinct MI100) memory 1229 GB/s, 31.95 GB free glm split auto: the host reads RAM at 108 GB/s (a part's CPU lane: 27); the routes from the default coverage curve (no usage counts); a token costs the parts added glm split auto: layers [0, 12) on CUDA0, [12, 24) on CUDA1, [24, 36) on CUDA2, [36, 45) on CUDA3 - a token 6.5 ms predicted (CUDA0 1.7 ms, 288 slots a layer | CUDA1 1.6 ms, 288 slots a layer | CUDA2 1.6 ms, 288 slots a layer | CUDA3 1.6 ms, 288 slots a layer), 100% of the routed experts in VRAM glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4273 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 12 experts (86 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 2.02 of 31.98 GB in use - dense weights 1.49, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22 glm fast: the expert profile /mnt/nvme0/GLM/maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,12) expert pool 21.89 GB, 360-360 slots/layer (3240 total) - complete: every expert, 3 spares and 69 lendable slots a layer glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4267 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 80, prestage 0: 0 experts); disk landing ring 96 experts (642 MB pinned) glm fast: CUDA1 VRAM before the expert pool: 1.71 of 31.98 GB in use - dense weights 1.19, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22 glm fast: CUDA1 layers [12,24) expert pool 27.04 GB, 345-345 slots/layer (4140 total) - complete: every expert, 3 spares and 54 lendable slots a layer glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4267 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 80, prestage 0: 0 experts); disk landing ring 96 experts (642 MB pinned) glm fast: CUDA2 VRAM before the expert pool: 1.71 of 31.98 GB in use - dense weights 1.19, state/KV (262144 ctx) 0.25, activations 0.06, other (context, MTP, scratch, prompt path) 0.22 glm fast: CUDA2 layers [24,36) expert pool 27.04 GB, 345-345 slots/layer (4140 total) - complete: every expert, 3 spares and 54 lendable slots a layer glm prefill: CUDA3 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 4096), borrowing 4273 MB of the expert pool while a prompt runs (activations 4074, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 12 experts (86 MB pinned) glm fast: CUDA3 VRAM before the expert pool: 2.04 of 31.98 GB in use - dense weights 1.37, state/KV (262144 ctx) 0.24, activations 0.07, other (context, MTP, scratch, prompt path) 0.36 glm fast: CUDA3 layers [36,45) expert pool 24.39 GB, 352-352 slots/layer, the draft layer 352 (3520 total) - complete: every expert, 3 spares and 61 lendable slots a layer glm fast: CUDA0 RAM tier 0.34 GB pinned, 50 slots glm fast: CUDA1 RAM tier 0.26 GB pinned, 40 slots glm fast: CUDA2 RAM tier 0.26 GB pinned, 40 slots glm fast: CUDA3 RAM tier 0.49 GB pinned, 68 slots glm fast: CUDA0 tiers warm: 2592 experts (18.8 GB) in 9 s (2.02 GB/s) glm fast: CUDA3 tiers warm: 2880 experts (21.4 GB) in 11 s (1.99 GB/s) glm fast: CUDA1 tiers warm: 3456 experts (24.2 GB) in 12 s (1.95 GB/s) glm fast: CUDA2 tiers warm: 3456 experts (24.2 GB) in 12 s (1.98 GB/s) glm fast: CUDA0 CPU lane off: the RAM tier holds no expert glm fast: CUDA1 CPU lane off: the RAM tier holds no expert glm fast: CUDA2 CPU lane off: the RAM tier holds no expert glm fast: CUDA3 CPU lane off: the RAM tier holds no expert glm split: layers [0, 12) on CUDA0, [12, 24) on CUDA1, [24, 36) on CUDA2, [36, 45) on CUDA3 (one 64 KB host hop per boundary per token) glm stat: decode 17.27 ms/tok (57.92 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 36.5 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 17.25 ms/tok (57.97 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 27.8 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 17.82 ms/tok (56.12 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 27.8 ms/tok | vram 12384/15040 ram 0/198 glm stat: decode 16.27 ms/tok (61.45 tok/s) | vram hit 100.00% | ram fetches 0.00/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 0.00/tok | cpu lane 0.00/tok in 0.00 ms/tok | prompt 27.8 ms/tok | vram 12384/15040 ram 0/198 glm stat (prompt only): prompt 2.6 ms/tok | vram 12384/15040 ram 0/198 glm slots: saved a 2047-token conversation (0.18 GB in 0.3 s); 1 kept, 0.18 GB glm stat (prompt only): prompt 2.2 ms/tok | vram 12384/15040 ram 0/198 glm slots: saved a 2047-token conversation (0.18 GB in 0.2 s); 2 kept, 0.36 GB glm stat (prompt only): prompt 2.0 ms/tok | vram 12384/15040 ram 0/198 ``` </details>
Author
Owner

@nsaxploit commented on GitHub (Oct 16, 2026):

Building this engine for gfx908 (4× MI100) — what it takes on v1.1.12

The numbers above come from a build with local, uncommitted changes on top of v1.1.12 — the released HIP backend refuses gfx908. What's needed, in case it's useful for the AMD area of CONTRIBUTING:

Why v1.1.12 refuses gfx908

  1. Configure time — cmake/hip_backend.cmake classifies archs into validated (gfx1100, gfx1201), community (gfx1101, gfx1200), unvalidated (gfx1010 … gfx1151) and FATAL_ERRORs on anything else; gfx908 is in none of the lists.
  2. Startup — src/core/device.cu, arch_problem(): warpSize != 32 → "runs wave64; Maya's HIP kernels need wave32".
  3. The compat layer itself assumes wave32 — require_full_wave_mask(0xffffffff) traps on a 64-lane wave; __ballot_sync takes a 32-bit mask as-is; __syncwarp is workgroup-scoped; the __dp4a chain has no CDNA branch; mapped host alloc doesn't force coherence (a CPU↔GPU doorbell spin can sit unseen in GPU L2).

Approach (inherited from Strata's experimental gfx906/908 layer) — keep every kernel written for a 32-lane warp; a CUDA warp becomes the logical 32-lane half of the 64-lane wavefront, so arithmetic, lane mapping and reduction order stay identical to wave32:

  • #define HIP_DISABLE_WARP_SYNC_BUILTINS 1 before hip_runtime.h — the layer supplies its own sync builtins
  • shuffles keep width 32, and the kernels' 0xffffffff mask is interpreted per 32-lane half (kernels unchanged)
  • ballot: static_cast<unsigned>(__ballot(p) >> (__lane_id() & 32)) — each half sees its own bits; shift is 0 on wave32 (old behaviour)
  • __syncwarp = wavefront-scope release fence + wave barrier + acquire fence
  • mapped host allocations forced hipHostMallocCoherent
  • __dp4a → __builtin_amdgcn_sdot4 on gfx908 (v_dot4_i32_i8 exists on CDNA1)
  • __nanosleep → s_sleep scaled to the unit (~40 ns each)

Diff vs v1.1.12: 6 files, +61/−23

file what changed
cmake/hip_backend.cmake new wave64 arch list (gfx908) + configure status line
src/core/device.cu accept warpSize 64 when compiled for the exact arch
include/strata/hip_compat/cuda_runtime.h warp-sync builtin disable + coherent cudaHostAlloc
include/strata/hip_compat/intrinsics.hpp per-half ballot, wavefront-scope syncwarp, CDNA sdot4, sleep scaling
tests/hip/intrinsics.cpp probe accepts wave32 or wave64
maya.py gfx908 arch tier, compile for exactly the chosen cards, HIP GPU-count limit raised from 2 to the engine's 16-part split, tests built on

Build (tested on ROCm 7.2.4):

cmake -S . -B build-hip -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_PREFIX_PATH=/opt/rocm-7.2.4 \
  -DCMAKE_HIP_COMPILER=/opt/rocm-7.2.4/llvm/bin/clang++ \
  -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF \
  -DSTRATA_PREFILL_MMQ=ON -DSTRATA_NATIVE_EXPERTS=ON \
  -DSTRATA_BUILD_TESTS=ON \
  -DSTRATA_GGML_DIR=$PWD/third_party/llama.cpp \
  '-DCMAKE_HIP_ARCHITECTURES=gfx908'
cmake --build build-hip -j "$(nproc)" \
  --target strata hip_expert_kernel_bench glm_ffn_parity glm_layer_parity \
  glm_model_test iq1_s_parity hip_intrinsics

Prereqs: ROCm 7 with a HIP compiler + hipBLAS(+Lt), CMake ≥ 3.24, C++20, Python 3.10+. With gfx908 accepted, ./maya.sh --backend hip --check lists the cards as usable and the normal setup path passes these flags itself.

Run / the wave64 gate — the parity harness is what certifies the half-wavefront layer:

export LD_LIBRARY_PATH=/opt/rocm/lib
HIP_VISIBLE_DEVICES=0 ctest --test-dir build-hip --output-on-failure --timeout 60 \
  -R '^(glm_(hc|kda|ffn|dsa|layer)_parity|glm_model_test|hip_intrinsics|hip_(glm_handoff|glm_prefill_attention|handoff|device_selftest|prefill_mmq_parity|expert_cache_staging)|iq1_s_parity)$'
HIP_VISIBLE_DEVICES=0 build-hip/hip_expert_kernel_bench --parity-only --sweep

Notes

  • The 4-way layer split (--gpus 0,1,2,3) works: upstream's HIP setup accepts at most two cards; the diff raises this to the engine's 16-part limit. One 64 KB host hop per boundary per token — no P2P needed.
  • No gfx908 hipBLASLt tuning table exists → the loader falls back to plain hipBLAS (GEMM Ex); tools/hip/tune_hipblaslt could generate one.
  • 128 GB VRAM total → the whole expert pool fits: vram hit 100.00%, CPU lane off, RAM/SSD tiers idle in this configuration.
  • The genuinely new risk surface is the GLM-specific kernels (KDA, QSA/DSA, hyper-connections, fused routing/handoff) running through the half-wavefront mapping for the first time — that's what the parity set above is for; end-to-end evidence is the benchmark above plus service at 262144 context.

Status: local experimental changes, not upstream. Validated here by build, the benchmark above, and serving; the parity suite ships with the build (STRATA_BUILD_TESTS=ON) — I can post those results too. Happy to open a PR with this diff and the measurements, per CONTRIBUTING, if it's useful.

<!-- gh-comment-id:6221497152 --> @nsaxploit commented on GitHub (Oct 16, 2026): ### Building this engine for gfx908 (4× MI100) — what it takes on v1.1.12 The numbers above come from a build with **local, uncommitted changes on top of v1.1.12** — the released HIP backend refuses gfx908. What's needed, in case it's useful for the AMD area of CONTRIBUTING: **Why v1.1.12 refuses gfx908** 1. **Configure time** — `cmake/hip_backend.cmake` classifies archs into validated (`gfx1100`, `gfx1201`), community (`gfx1101`, `gfx1200`), unvalidated (`gfx1010 … gfx1151`) and `FATAL_ERROR`s on anything else; `gfx908` is in none of the lists. 2. **Startup** — `src/core/device.cu`, `arch_problem()`: `warpSize != 32` → *"runs wave64; Maya's HIP kernels need wave32"*. 3. **The compat layer itself assumes wave32** — `require_full_wave_mask(0xffffffff)` traps on a 64-lane wave; `__ballot_sync` takes a 32-bit mask as-is; `__syncwarp` is workgroup-scoped; the `__dp4a` chain has no CDNA branch; mapped host alloc doesn't force coherence (a CPU↔GPU doorbell spin can sit unseen in GPU L2). **Approach (inherited from Strata's experimental gfx906/908 layer)** — keep every kernel written for a 32-lane warp; a CUDA warp becomes the *logical 32-lane half* of the 64-lane wavefront, so arithmetic, lane mapping and reduction order stay identical to wave32: - `#define HIP_DISABLE_WARP_SYNC_BUILTINS 1` before `hip_runtime.h` — the layer supplies its own sync builtins - shuffles keep width 32, and the kernels' `0xffffffff` mask is interpreted per 32-lane half (kernels unchanged) - ballot: `static_cast<unsigned>(__ballot(p) >> (__lane_id() & 32))` — each half sees its own bits; shift is 0 on wave32 (old behaviour) - `__syncwarp` = wavefront-scope release fence + wave barrier + acquire fence - mapped host allocations forced `hipHostMallocCoherent` - `__dp4a` → `__builtin_amdgcn_sdot4` on gfx908 (`v_dot4_i32_i8` exists on CDNA1) - `__nanosleep` → `s_sleep` scaled to the unit (~40 ns each) **Diff vs v1.1.12: 6 files, +61/−23** | file | what changed | |---|---| | `cmake/hip_backend.cmake` | new wave64 arch list (`gfx908`) + configure status line | | `src/core/device.cu` | accept `warpSize 64` when compiled for the exact arch | | `include/strata/hip_compat/cuda_runtime.h` | warp-sync builtin disable + coherent `cudaHostAlloc` | | `include/strata/hip_compat/intrinsics.hpp` | per-half ballot, wavefront-scope `syncwarp`, CDNA `sdot4`, sleep scaling | | `tests/hip/intrinsics.cpp` | probe accepts wave32 **or** wave64 | | `maya.py` | `gfx908` arch tier, compile for exactly the chosen cards, HIP GPU-count limit raised from 2 to the engine's 16-part split, tests built on | **Build** (tested on ROCm 7.2.4): ```sh cmake -S . -B build-hip -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_PREFIX_PATH=/opt/rocm-7.2.4 \ -DCMAKE_HIP_COMPILER=/opt/rocm-7.2.4/llvm/bin/clang++ \ -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF \ -DSTRATA_PREFILL_MMQ=ON -DSTRATA_NATIVE_EXPERTS=ON \ -DSTRATA_BUILD_TESTS=ON \ -DSTRATA_GGML_DIR=$PWD/third_party/llama.cpp \ '-DCMAKE_HIP_ARCHITECTURES=gfx908' cmake --build build-hip -j "$(nproc)" \ --target strata hip_expert_kernel_bench glm_ffn_parity glm_layer_parity \ glm_model_test iq1_s_parity hip_intrinsics ``` Prereqs: ROCm 7 with a HIP compiler + hipBLAS(+Lt), CMake ≥ 3.24, C++20, Python 3.10+. With `gfx908` accepted, `./maya.sh --backend hip --check` lists the cards as usable and the normal setup path passes these flags itself. **Run / the wave64 gate** — the parity harness is what certifies the half-wavefront layer: ```sh export LD_LIBRARY_PATH=/opt/rocm/lib HIP_VISIBLE_DEVICES=0 ctest --test-dir build-hip --output-on-failure --timeout 60 \ -R '^(glm_(hc|kda|ffn|dsa|layer)_parity|glm_model_test|hip_intrinsics|hip_(glm_handoff|glm_prefill_attention|handoff|device_selftest|prefill_mmq_parity|expert_cache_staging)|iq1_s_parity)$' HIP_VISIBLE_DEVICES=0 build-hip/hip_expert_kernel_bench --parity-only --sweep ``` **Notes** - The 4-way layer split (`--gpus 0,1,2,3`) works: upstream's HIP setup accepts at most two cards; the diff raises this to the engine's 16-part limit. One 64 KB host hop per boundary per token — no P2P needed. - No gfx908 hipBLASLt tuning table exists → the loader falls back to plain hipBLAS (GEMM Ex); `tools/hip/tune_hipblaslt` could generate one. - 128 GB VRAM total → the whole expert pool fits: `vram hit 100.00%`, CPU lane off, RAM/SSD tiers idle in this configuration. - The genuinely new risk surface is the GLM-specific kernels (KDA, QSA/DSA, hyper-connections, fused routing/handoff) running through the half-wavefront mapping for the first time — that's what the parity set above is for; end-to-end evidence is the benchmark above plus service at 262144 context. **Status:** local experimental changes, not upstream. Validated here by build, the benchmark above, and serving; the parity suite ships with the build (`STRATA_BUILD_TESTS=ON`) — I can post those results too. **Happy to open a PR with this diff and the measurements, per CONTRIBUTING**, if it's useful.
Author
Owner

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

Thanks a lot for this, @nsaxploit - 58.5 tok/s on four MI100s, and the build notes are exactly what we needed. Yes, please open the PR. Two requests:

  1. Keep the shared AMD path as it is on wave32 cards. Some of the changes sit in the compat layer every AMD build uses - hipHostMallocCoherent for mapped allocations and the fenced __syncwarp. The Strix Halo and the RDNA cards lean on mapped host memory (on an APU the RAM tier is host memory), so we'd like those to apply only when building for wave64 (gfx908, and gfx906 if it fits), with wave32 builds compiling to what they do today. We'll check the PR on a Radeon 8065S for the same tokens and speed before merging.
  2. More than two GPUs on HIP is also in #183 (@izabera). Keeping that part small in your PR makes it easy for whichever lands second to rebase.

We don't have MI100 or MI50 cards, so it would ship as experimental, validated on yours: the parity results (your ctest list and hip_expert_kernel_bench --parity-only --sweep) in the PR would help. The MI100 owner in #176 may be able to test it too, and if gfx906 works with the same layer, the MI50 owner in #193.

<!-- gh-comment-id:6224250411 --> @mw00 commented on GitHub (Oct 16, 2026): Thanks a lot for this, @nsaxploit - 58.5 tok/s on four MI100s, and the build notes are exactly what we needed. Yes, please open the PR. Two requests: 1. **Keep the shared AMD path as it is on wave32 cards.** Some of the changes sit in the compat layer every AMD build uses - `hipHostMallocCoherent` for mapped allocations and the fenced `__syncwarp`. The Strix Halo and the RDNA cards lean on mapped host memory (on an APU the RAM tier is host memory), so we'd like those to apply only when building for wave64 (gfx908, and gfx906 if it fits), with wave32 builds compiling to what they do today. We'll check the PR on a Radeon 8065S for the same tokens and speed before merging. 2. **More than two GPUs on HIP** is also in #183 (@izabera). Keeping that part small in your PR makes it easy for whichever lands second to rebase. We don't have MI100 or MI50 cards, so it would ship as experimental, validated on yours: the parity results (your ctest list and `hip_expert_kernel_bench --parity-only --sweep`) in the PR would help. The MI100 owner in #176 may be able to test it too, and if gfx906 works with the same layer, the MI50 owner in #193.
Author
Owner

@nsaxploit commented on GitHub (Oct 17, 2026):

PR up: https://github.com/mw00/project-maya/pull/245 — parity results are in the PR description.

<!-- gh-comment-id:6230213885 --> @nsaxploit commented on GitHub (Oct 17, 2026): PR up: https://github.com/mw00/project-maya/pull/245 — parity results are in the PR description.
Author
Owner

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

Thank you, @nsaxploit! The MI100 support is tracked in your PR #245 (it needs a rebase on the current main); closing this report in its favour.

<!-- gh-comment-id:6295605644 --> @mw00 commented on GitHub (Oct 20, 2026): Thank you, @nsaxploit! The MI100 support is tracked in your PR #245 (it needs a rebase on the current main); closing this report in its favour.
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#88
No description provided.