[GH-ISSUE #498] Speed report: 2x RTX 5090 + RTX 4090 48 GB (x8/x8/x4), i7-13700K, 188 GB - Maya-S / Maya-M-Derisked, MTP vs DFlash2, 2 vs 3 GPUs, --parallel #200

Closed
opened 2026-10-29 21:22:29 +07:00 by bsakaguchi · 1 comment
Owner

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

Speed report: 2x RTX 5090 + RTX 4090 48 GB (mixed split), Maya-S and Maya-M-Derisked, MTP vs DFlash2, 2 vs 3 GPUs, --parallel

One box, one day (2026-10-25), Maya v1.1.26 (commit f26d8ba), all runs sequential with nothing else on the GPUs.

Hardware

  • GPU 0, 1: RTX 5090 32 GB, PCIe 5.0 x8 each; GPU 2: RTX 4090 48 GB, PCIe 4.0 x4 (6.1 GB/s measured host to device)
  • i7-13700K (24 threads), 188 GB DDR5, models on a Samsung 990 PRO 4TB; Ubuntu 24.04, kernel 6.8, driver 595.58.03, CUDA 13.3
  • Power limits stock (600 / 600 / 450 W). Engine rebuilt by the setup for sm_89;sm_120 once the 4090 was added
  • Every config: context 32768, --expert-cache auto, KV streaming on, the shipped expert profile, --vram-reserve-mib 1640 --vram-reserve-later-mib 1640, layer split auto

1. Official --bench (3 greedy 256-token answers, thinking off)

Model Drafting GPUs --prefill Decode 2K prefill 8K prefill
Maya-S (v2 IQ2_XXS) MTP 0,1 32768 86.5 1111 2337
Maya-S MTP 0,1,2 32768 110.2 1710 2365
Maya-S MTP 0,1,2 auto 107.1 1842 2520
Maya-S DFlash2 0,1,2 auto 148.6 2002 2605
Maya-M-Derisked (IQ2_S) MTP 0,1 auto 62.3 830 1948
Maya-M-Derisked MTP 0,1,2 auto 92.1 1832 2439
Maya-M-Derisked DFlash2 0,1,2 auto 123.4 1520 2341

For reference, DFlash2 on the two 5090s alone (2026-10-23, same version) was slower than MTP: Maya-S 71.2, Maya-M 49.0 tok/s decode, the batched verify window pushing RAM-tier experts to the CPU lane. With the 4090 it is 35-39% faster than MTP.

2. 16K-token prompts over the API (streaming; decode = tokens after the first / time after it; greedy, 600 tokens, median of 3)

Model Drafting GPUs --prefill Decode code / zh prose / rewrite (copy-and-fix) 16K prefill
Maya-S MTP 0,1 32768 84.6 / 93.3 / 102.2 2.67-2.86K
Maya-S MTP 0,1,2 32768 97.2 / 92.7 / 99.2 2.25-2.44K
Maya-S MTP 0,1,2 auto 103.9 / 97.6 / 107.7 3.33-3.63K
Maya-S DFlash2 0,1,2 auto 115.4 / 99.3 / 150.2 3.39-3.70K
Maya-M-Derisked MTP 0,1 auto 63.1 / 68.0 / 69.0 2.47-2.65K
Maya-M-Derisked MTP 0,1,2 auto 88.2 / 84.4 / 92.2 3.08-3.31K
Maya-M-Derisked DFlash2 0,1,2 auto 98.6 / 91.9 / 125.7 3.10-3.39K

Maya-M-Derisked, 3 GPUs, DFlash2 vs --parallel 2 + MAYA_GLM_SPLIT_ROWS=2 (a lone request there runs the MTP path), single request:

Prompt DFlash2 code / zh / rewrite p2 + rows2 (MTP) code / zh / rewrite
1K 122.9 / 103.0 / 143.1 94.2 / 90.8 / 96.7
4K 101.2 / 93.9 / 136.6 86.6 / 86.4 / 91.7
16K 101.5 / 89.0 / 127.5 86.0 / 84.9 / 88.1

3. Concurrency, 3 GPUs (2K-token prompts, 400 tokens, greedy; aggregate = all tokens / wall time incl. prefill)

Model Config N=1 N=2 N=4
Maya-S DFlash2, --parallel 1 (queued) 80.1 - 80.9
Maya-S --parallel 4 74.7 100.6 124.8
Maya-S --parallel 4 + SPLIT_ROWS=2 + EVEN_GROUPS=1 75.3 100.7 124.3
Maya-S ... + MULTI_MTP=3 73.7 98.0 99.0
Maya-M-Derisked DFlash2, --parallel 1 (queued) 72.3 - 71.4
Maya-M-Derisked --parallel 4 67.2 95.4 103.1
Maya-M-Derisked --parallel 4 + SPLIT_ROWS=2 + EVEN_GROUPS=1 66.8 95.1 116.9
Maya-M-Derisked ... + MULTI_MTP=3 66.8 92.5 84.9
Maya-M-Derisked --parallel 2 + SPLIT_ROWS=2 (no EVEN_GROUPS) 66.0 73.7 -

MULTI_MTP=3 accepted 48-63% of drafts (2.4-2.9 tokens a verify step) and lost at N=4 on this split. SPLIT_ROWS helps only Maya-M, whose experts (~108 GB) do not fit the ~85 GB expert pool of the three cards; for Maya-S (~89 GB of experts, 11232 of 11361 slots in VRAM) it is neutral. Without EVEN_GROUPS, two requests form one group and the split goes serial (73.7 vs 95.1).

Notes

  • --prefill 32768 on a multi-GPU split makes a 16K prompt one chunk, and a chunk goes through the parts one after another: Maya-S 3 GPUs, 16K prompt, 1 chunk 5.87 s (2790 tok/s, parts 1.89 + 1.69 + 1.95 s) vs auto 2 chunks 4.33 s on Maya-M (3782 tok/s, parts overlapped). The 4090's part is the slowest stage on the prompt (its x4 link stages experts at ~5.2 GB/s vs ~20 GB/s on the 5090s).
  • The third card's gain comes from the RAM tier: Maya-S VRAM hit 85-92% on two cards -> 98-99% on three; Maya-M-Derisked still runs a CPU lane of ~3 ms of its ~8 ms token on three cards (vram 10436/10548 ram 1648/2592). Three-part decode is serial (see #235), so these numbers have room to grow.
  • With DFlash2 on 3 GPUs the 4090 still had ~10 GB free (CUDA2: 10254 MiB of VRAM free with everything loaded) while the 5090s were at the 1.6 GB reserve.
maya-report.txt (Maya-M-Derisked, 3 GPUs, DFlash2; LAN address lines removed)
## Maya
version 1.1.26, commit f26d8ba 2026-10-23, Python 3.12.3, linux

## System
Linux-6.8.0-136-generic-x86_64-with-glibc2.39

## GPUs
index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu
0, NVIDIA GeForce RTX 5090, 32607 MiB, 31641 MiB, 595.58.03, 5, 8, 16, 600.00 W, 58
1, NVIDIA GeForce RTX 5090, 32607 MiB, 31643 MiB, 595.58.03, 5, 8, 16, 600.00 W, 64
2, NVIDIA GeForce RTX 4090, 49140 MiB, 39238 MiB, 595.58.03, 4, 4, 16, 450.00 W, 57

## CPU and RAM
13th Gen Intel(R) Core(TM) i7-13700K, 24 threads, AVX2
RAM 188.5 GB, 148.5 GB available now

## Disks
NAME    MODEL                   ROTA TRAN     SIZE
loop0                              0            4K
loop1                              0         66.8M
loop2                              0         66.8M
loop3                              0        262.3M
loop4                              0        614.5M
loop5                              0        283.8M
loop6                              0        615.3M
loop7                              0         91.7M
loop8                              0          395M
loop9                              0          402M
loop10                             0         50.3M
loop11                             0         44.7M
loop12                             0        222.9M
loop13                             0        222.9M
nvme1n1 Samsung SSD 990 PRO 4TB    0 nvme     3.6T
nvme0n1 CT1000P3PSSD8              0 nvme   931.5G

## Engine build
{"archs": [89, 120], "nvcc": "/usr/local/cuda-13.3/bin/nvcc", "host_compiler": null, "date": "2026-10-25 20:08"}

## Setup maya-maya-m-derisked.json
model Maya-M-Derisked, context 32768, GPUs [0, 1, 2], images on, settings {}
model folder /mnt/models/llm/Maya-data/models/Maya-M-Derisked: 116.0 GB of GGUF, 1238 GB free, not a hard disk

## Engine log maya-maya-m-derisked.log: the speed and memory lines (last 80 of 936)
glm prefill: CUDA2 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA2 VRAM before the expert pool: 4.19 of 47.37 GB in use - dense weights 2.39, state/KV (32768 ctx) 0.21, activations 0.07, other (context, MTP, scratch, prompt path) 1.52
glm fast: CUDA2 layers [31,45) expert pool 33.09 GB, 291-291 slots/layer (4074 total)
glm fast: CUDA0 RAM tier 8.35 GB pinned, 1035 slots
glm fast: CUDA1 RAM tier 10.99 GB pinned, 1375 slots
glm fast: CUDA2 RAM tier 2.53 GB pinned, 312 slots
glm fast: CUDA0 tiers warm: 3744 experts (32.6 GB) in 14 s (2.41 GB/s)
glm fast: CUDA1 tiers warm: 4320 experts (37.1 GB) in 13 s (2.79 GB/s)
glm fast: CUDA2 tiers warm: 4032 experts (35.1 GB) in 16 s (2.17 GB/s)
glm fast: CUDA0 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.152 ms on the CPU vs 0.329 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6
glm fast: CUDA1 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.167 ms on the CPU vs 0.324 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 5
glm fast: CUDA2 CPU lane off: the RAM tier holds no expert
glm split: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token)
glm stat: decode 10.28 ms/tok (97.23 tok/s) | vram hit 95.66% | ram fetches 4.20/tok | disk 0.00 reads/tok in 0.24 waits/tok, 0.00 ms/tok | promotions 3.92/tok | cpu lane 17.12/tok in 3.86 ms/tok | prompt 15.6 ms/tok | vram 10434/10548 ram 1656/2722
glm split auto: CUDA0 (NVIDIA GeForce RTX 5090) memory 1792 GB/s, 30.72 GB free
glm split auto: CUDA1 (NVIDIA GeForce RTX 5090) memory 1792 GB/s, 30.74 GB free
glm split auto: CUDA2 (NVIDIA GeForce RTX 4090) memory 1008 GB/s, 46.89 GB free
glm split auto: the host reads RAM at 67 GB/s (a part's CPU lane: 33); the routes from the default coverage curve (no usage counts); the DFlash pipelined window: a round of a kept drafts costs the parts added + a x the slowest
glm split auto: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 - a token 15.8 ms predicted (CUDA0 8.5 ms, 245 slots a layer | CUDA1 8.3 ms, 219 slots a layer | CUDA2 9.1 ms, 288 slots a layer), 99% of the routed experts in VRAM
glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 3.83 of 31.35 GB in use - dense weights 2.45, state/KV (32768 ctx) 0.22, activations 0.07, other (context, MTP, scratch, prompt path) 1.09
glm fast: the expert profile ~/maya/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 the vision encoder borrows the pool's tail (3.06 GB) while it encodes
glm fast: CUDA0 layers [0,16) expert pool 25.92 GB, 196-281 slots/layer (3183 total)
glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2049 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 99, prestage 0: 0 experts); disk landing ring 96 experts (789 MB pinned)
glm fast: CUDA1 VRAM before the expert pool: 3.35 of 31.36 GB in use - dense weights 2.02, state/KV (32768 ctx) 0.18, activations 0.07, other (context, MTP, scratch, prompt path) 1.08
glm fast: CUDA1 layers [16,31) expert pool 26.40 GB, 204-239 slots/layer (3291 total)
glm prefill: CUDA2 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA2 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA2 VRAM before the expert pool: 4.19 of 47.37 GB in use - dense weights 2.39, state/KV (32768 ctx) 0.21, activations 0.07, other (context, MTP, scratch, prompt path) 1.52
glm fast: CUDA2 layers [31,45) expert pool 33.09 GB, 291-291 slots/layer (4074 total)
glm fast: CUDA0 RAM tier 8.35 GB pinned, 1035 slots
glm fast: CUDA1 RAM tier 10.99 GB pinned, 1375 slots
glm fast: CUDA2 RAM tier 2.53 GB pinned, 312 slots
glm fast: CUDA0 tiers warm: 3744 experts (32.6 GB) in 13 s (2.42 GB/s)
glm fast: CUDA1 tiers warm: 4320 experts (37.1 GB) in 13 s (2.80 GB/s)
glm fast: CUDA2 tiers warm: 4032 experts (35.1 GB) in 16 s (2.17 GB/s)
glm fast: CUDA0 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.156 ms on the CPU vs 0.329 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 6
glm fast: CUDA1 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.167 ms on the CPU vs 0.324 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 5
glm fast: CUDA2 CPU lane off: the RAM tier holds no expert
glm split: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token)
glm stat: decode 8.47 ms/tok (118.07 tok/s) | vram hit 96.55% | ram fetches 3.26/tok | disk 0.00 reads/tok in 0.23 waits/tok, 0.00 ms/tok | promotions 2.00/tok | cpu lane 14.88/tok in 3.49 ms/tok | prompt 15.3 ms/tok | vram 10444/10548 ram 1651/2722
glm split auto: CUDA0 (NVIDIA GeForce RTX 5090) memory 1792 GB/s, 30.66 GB free
glm split auto: CUDA1 (NVIDIA GeForce RTX 5090) memory 1792 GB/s, 30.68 GB free
glm split auto: CUDA2 (NVIDIA GeForce RTX 4090) memory 1008 GB/s, 46.86 GB free
glm split auto: the host reads RAM at 66 GB/s (a part's CPU lane: 33); the routes from the default coverage curve (no usage counts); the DFlash pipelined window: a round of a kept drafts costs the parts added + a x the slowest
glm split auto: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 - a token 15.8 ms predicted (CUDA0 8.5 ms, 244 slots a layer | CUDA1 8.3 ms, 219 slots a layer | CUDA2 9.1 ms, 288 slots a layer), 99% of the routed experts in VRAM
glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 3.88 of 31.35 GB in use - dense weights 2.45, state/KV (32768 ctx) 0.22, activations 0.07, other (context, MTP, scratch, prompt path) 1.14
glm fast: the expert profile ~/maya/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 the vision encoder borrows the pool's tail (3.06 GB) while it encodes
glm fast: CUDA0 layers [0,16) expert pool 25.86 GB, 195-280 slots/layer (3176 total)
glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2049 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 99, prestage 0: 0 experts); disk landing ring 96 experts (789 MB pinned)
glm fast: CUDA1 VRAM before the expert pool: 3.41 of 31.36 GB in use - dense weights 2.02, state/KV (32768 ctx) 0.18, activations 0.07, other (context, MTP, scratch, prompt path) 1.14
glm fast: CUDA1 layers [16,31) expert pool 26.35 GB, 204-238 slots/layer (3284 total)
glm prefill: CUDA2 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA2 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA2 VRAM before the expert pool: 4.23 of 47.37 GB in use - dense weights 2.39, state/KV (32768 ctx) 0.21, activations 0.07, other (context, MTP, scratch, prompt path) 1.56
glm fast: CUDA2 layers [31,45) expert pool 33.09 GB, 291-291 slots/layer (4074 total)
glm fast: CUDA0 RAM tier 8.40 GB pinned, 1042 slots
glm fast: CUDA1 RAM tier 11.05 GB pinned, 1382 slots
glm fast: CUDA2 RAM tier 2.53 GB pinned, 312 slots
glm fast: CUDA0 tiers warm: 3744 experts (32.6 GB) in 13 s (2.43 GB/s)
glm fast: CUDA1 tiers warm: 4320 experts (37.1 GB) in 13 s (2.80 GB/s)
glm fast: CUDA2 tiers warm: 4032 experts (35.1 GB) in 16 s (2.18 GB/s)
glm fast: CUDA0 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.157 ms on the CPU vs 0.329 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 6
glm fast: CUDA1 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.167 ms on the CPU vs 0.324 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 5
glm fast: CUDA2 CPU lane off: the RAM tier holds no expert
glm split: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token)

## Engine log maya-maya-m-derisked.log: the last 25 lines
glm fast: CUDA1 warming the expert tiers 90% (33.4 of 37.1 GB, 12 s)
glm fast: CUDA2 warming the expert tiers 60% (21.1 of 35.1 GB, 12 s)
glm fast: CUDA1 warming the expert tiers 100% (37.1 of 37.1 GB, 13 s)
glm fast: CUDA1 tiers warm: 4320 experts (37.1 GB) in 13 s (2.80 GB/s)
glm fast: CUDA2 warming the expert tiers 70% (24.6 of 35.1 GB, 13 s)
glm fast: CUDA2 warming the expert tiers 80% (28.1 of 35.1 GB, 14 s)
glm fast: CUDA2 warming the expert tiers 90% (31.6 of 35.1 GB, 15 s)
glm fast: CUDA2 warming the expert tiers 100% (35.1 of 35.1 GB, 16 s)
glm fast: CUDA2 tiers warm: 4032 experts (35.1 GB) in 16 s (2.18 GB/s)
glm fast: CUDA0 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.157 ms on the CPU vs 0.329 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 6
glm fast: CUDA1 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.167 ms on the CPU vs 0.324 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 5
glm fast: CUDA2 CPU lane off: the RAM tier holds no expert
glm split: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token)
glm dflash: 5 layers, hidden 4096, 32 heads (8 kv), block 8, window 2048, selector top-16 rank 256, reads trunk layers 6,15,25,34,43; 717 MB on CUDA2
maya serve: CUDA0: 1586 MiB of VRAM free with everything loaded
maya serve: CUDA1: 1593 MiB of VRAM free with everything loaded
maya serve: CUDA2: 10254 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
[maya] images: the vision encoder starts when a picture arrives, in 3.06 GB the model lends it
[maya] thinking level when a request names none: high
[maya] thinking budget: 32768 tokens (then the answer)
ready: http://127.0.0.1:8061/v1  (OpenAI: /v1/chat/completions, /v1/responses, Anthropic: /v1/messages, context 32768 tokens, images on)
       open http://127.0.0.1:8061/ in a browser to chat; close this window to stop the model

## Benchmark (maya-bench.txt, from --bench)
Project Maya v1.1.26 benchmark, 2026-10-25 20:47
GPUs: NVIDIA GeForce RTX 5090 32 GB, NVIDIA GeForce RTX 5090 32 GB, NVIDIA GeForce RTX 4090 48 GB; RAM 188 GB; CPU 13th Gen Intel(R) Core(TM) i7-13700K
setup: maya-maya-m-derisked.json, context 32768, GPUs [0, 1, 2]
decode (writing the answer): mean 123.4 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
   123.9 tokens/s  Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
   111.7 tokens/s  Explain how photosynthesis works, step by step, for a high-school student.
   134.8 tokens/s  Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 1520 tokens/s, 2048 tokens
prefill (reading the prompt): 2341 tokens/s, 8192 tokens

engine lines:
glm fast: CUDA1 layers [16,31) expert pool 26.40 GB, 204-239 slots/layer (3291 total)
glm prefill: CUDA2 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA2 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA2 VRAM before the expert pool: 4.19 of 47.37 GB in use - dense weights 2.39, state/KV (32768 ctx) 0.21, activations 0.07, other (context, MTP, scratch, prompt path) 1.52
glm fast: CUDA2 layers [31,45) expert pool 33.09 GB, 291-291 slots/layer (4074 total)
glm fast: CUDA0 RAM tier 7.29 GB pinned, 905 slots
glm fast: CUDA1 RAM tier 10.99 GB pinned, 1375 slots
glm fast: CUDA2 RAM tier 2.53 GB pinned, 312 slots
glm fast: CUDA0 tiers warm: 3744 experts (32.6 GB) in 14 s (2.40 GB/s)
glm fast: CUDA1 tiers warm: 4320 experts (37.1 GB) in 13 s (2.78 GB/s)
glm fast: CUDA2 tiers warm: 4032 experts (35.1 GB) in 16 s (2.17 GB/s)
glm fast: CUDA0 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.157 ms on the CPU vs 0.329 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 6
glm fast: CUDA1 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.167 ms on the CPU vs 0.324 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 5
glm fast: CUDA2 CPU lane off: the RAM tier holds no expert
glm split: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token)
glm stat: decode 7.99 ms/tok (125.09 tok/s) | vram hit 96.92% | ram fetches 2.39/tok | disk 0.00 reads/tok in 0.06 waits/tok, 0.00 ms/tok | promotions 1.95/tok | cpu lane 13.08/tok in 2.93 ms/tok | prompt 15.3 ms/tok | vram 10436/10548 ram 1648/2592
glm stat: decode 8.07 ms/tok (123.87 tok/s) | vram hit 96.62% | ram fetches 2.75/tok | disk 0.00 reads/tok in 0.11 waits/tok, 0.00 ms/tok | promotions 2.07/tok | cpu lane 13.75/tok in 3.18 ms/tok | prompt 14.4 ms/tok | vram 10437/10548 ram 1634/2592
glm stat: decode 8.95 ms/tok (111.67 tok/s) | vram hit 97.68% | ram fetches 1.94/tok | disk 0.00 reads/tok in 0.08 waits/tok, 0.00 ms/tok | promotions 1.71/tok | cpu lane 11.88/tok in 2.64 ms/tok | prompt 14.1 ms/tok | vram 10434/10548 ram 1657/2592
glm stat: decode 7.42 ms/tok (134.77 tok/s) | vram hit 96.49% | ram fetches 2.68/tok | disk 0.00 reads/tok in 0.13 waits/tok, 0.00 ms/tok | promotions 1.86/tok | cpu lane 13.18/tok in 3.07 ms/tok | prompt 14.7 ms/tok | vram 10432/10548 ram 1656/2592
glm prefill: CUDA0 the MMQ scratch pool has 16.0 MB of the loan (16.0 MB past the layout's need; 126 experts more lent for it)
glm prefill: CUDA1 the MMQ scratch pool has 16.0 MB of the loan (16.0 MB past the layout's need; 137 experts more lent for it)
glm prefill: CUDA2 the MMQ scratch pool has 16.0 MB of the loan (16.0 MB past the layout's need; 118 experts more lent for it)
glm prefill: CUDA0 chunk 1/1, 2047 tokens, wall 337 ms | the copy lane 288 ms: copies 154 (21.0 GB/s), ring wait 21, gaps 0, mixer windows 113 | lead 46, tail 2 | pcie 3.23 GB (ram 3.23, disk 0.00) + 0.86 GB vram | experts: staged 507, resident 2936 (175024 rows), prestaged 0, cpu 277 (2324 rows, 170 ms) | plan 3 ms host, disk wait 0 ms, hop in 0 ms | layer lane 16.4/9.2 ms max/min
glm prefill: CUDA1 chunk 1/1, 2047 tokens, wall 482 ms | the copy lane 475 ms: copies 352 (23.2 GB/s), ring wait 14, gaps 0, mixer windows 108 | lead 7, tail 0 | pcie 8.16 GB (ram 8.16, disk 0.00) + 0.82 GB vram | experts: staged 1123, resident 3036 (173475 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 5 ms | layer lane 29.3/18.5 ms max/min
glm prefill: CUDA2 chunk 1/1, 2047 tokens, wall 352 ms | the copy lane 337 ms: copies 194 (4.0 GB/s), ring wait 0, gaps 0, mixer windows 143 | lead 11, tail 4 | pcie 0.78 GB (ram 0.78, disk 0.00) + 0.47 GB vram | experts: staged 155, resident 3822 (223190 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 22 ms | layer lane 19.7/7.1 ms max/min
glm prefill: 2047 tokens in 1215.1 ms (0.59 ms/token, 1685 tok/s), 1 chunk of 2048 tokens | CUDA0 337 ms, CUDA1 482 ms (hop in 5 ms), CUDA2 352 ms (hop in 22 ms)
glm stat (prompt only): prompt 0.7 ms/tok | vram 10060/10548 ram 1962/2592
glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 1 kept, 0.18 GB
glm prefill: CUDA0 chunk 1/1, 2047 tokens, wall 348 ms | the copy lane 306 ms: copies 163 (21.2 GB/s), ring wait 19, gaps 0, mixer windows 124 | lead 39, tail 2 | pcie 3.46 GB (ram 3.46, disk 0.00) + 0.88 GB vram | experts: staged 539, resident 2936 (180432 rows), prestaged 0, cpu 274 (2452 rows, 191 ms) | plan 0 ms host, disk wait 0 ms, hop in 0 ms | layer lane 18.6/9.6 ms max/min
glm prefill: CUDA1 chunk 1/1, 2047 tokens, wall 506 ms | the copy lane 498 ms: copies 372 (23.3 GB/s), ring wait 18, gaps 0, mixer windows 108 | lead 7, tail 0 | pcie 8.67 GB (ram 8.67, disk 0.00) + 0.91 GB vram | experts: staged 1198, resident 3036 (189719 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 5 ms | layer lane 30.5/18.9 ms max/min
glm prefill: CUDA2 chunk 1/1, 2047 tokens, wall 361 ms | the copy lane 349 ms: copies 209 (4.0 GB/s), ring wait 0, gaps 0, mixer windows 139 | lead 11, tail 1 | pcie 0.83 GB (ram 0.83, disk 0.00) + 0.61 GB vram | experts: staged 178, resident 3822 (225357 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 22 ms | layer lane 21.1/10.2 ms max/min
glm prefill: 2047 tokens in 1258.3 ms (0.61 ms/token, 1627 tok/s), 1 chunk of 2048 tokens | CUDA0 348 ms, CUDA1 506 ms (hop in 5 ms), CUDA2 361 ms (hop in 22 ms)
glm stat (prompt only): prompt 0.7 ms/tok | vram 10065/10548 ram 1959/2592
glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 2 kept, 0.36 GB
glm prefill: CUDA0 chunk 1/1, 8191 tokens, wall 994 ms | the copy lane 793 ms: copies 199 (25.2 GB/s), ring wait 152, gaps 0, mixer windows 442 | lead 194, tail 6 | pcie 5.01 GB (ram 5.01, disk 0.00) + 0.00 GB vram | experts: staged 621, resident 2936 (732544 rows), prestaged 0, cpu 207 (4550 rows, 355 ms) | plan 5 ms host, disk wait 0 ms, hop in 0 ms | layer lane 35.0/21.3 ms max/min
glm prefill: CUDA1 chunk 1/1, 8191 tokens, wall 1046 ms | the copy lane 1018 ms: copies 409 (24.9 GB/s), ring wait 164, gaps 0, mixer windows 445 | lead 27, tail 1 | pcie 10.17 GB (ram 10.17, disk 0.00) + 0.02 GB vram | experts: staged 1275, resident 3036 (792077 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 20 ms | layer lane 42.7/33.3 ms max/min
glm prefill: CUDA2 chunk 1/1, 8191 tokens, wall 996 ms | the copy lane 936 ms: copies 292 (5.7 GB/s), ring wait 107, gaps 0, mixer windows 537 | lead 58, tail 1 | pcie 1.66 GB (ram 1.66, disk 0.00) + 0.00 GB vram | experts: staged 205, resident 3822 (908861 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 88 ms | layer lane 30.5/26.9 ms max/min
glm prefill: 8191 tokens in 3208.3 ms (0.39 ms/token, 2553 tok/s), 1 chunk of 8192 tokens | CUDA0 994 ms, CUDA1 1046 ms (hop in 20 ms), CUDA2 996 ms (hop in 88 ms)
glm stat (prompt only): prompt 0.4 ms/tok | vram 9763/10548 ram 2267/2592

Originally created by @prismaillya17 on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/498 ## Speed report: 2x RTX 5090 + RTX 4090 48 GB (mixed split), Maya-S and Maya-M-Derisked, MTP vs DFlash2, 2 vs 3 GPUs, `--parallel` One box, one day (2026-10-25), Maya v1.1.26 (commit `f26d8ba`), all runs sequential with nothing else on the GPUs. ### Hardware - GPU 0, 1: RTX 5090 32 GB, PCIe 5.0 **x8** each; GPU 2: RTX 4090 **48 GB**, PCIe 4.0 **x4** (6.1 GB/s measured host to device) - i7-13700K (24 threads), 188 GB DDR5, models on a Samsung 990 PRO 4TB; Ubuntu 24.04, kernel 6.8, driver 595.58.03, CUDA 13.3 - Power limits stock (600 / 600 / 450 W). Engine rebuilt by the setup for `sm_89;sm_120` once the 4090 was added - Every config: context 32768, `--expert-cache auto`, KV streaming on, the shipped expert profile, `--vram-reserve-mib 1640 --vram-reserve-later-mib 1640`, layer split auto ### 1. Official `--bench` (3 greedy 256-token answers, thinking off) | Model | Drafting | GPUs | `--prefill` | Decode | 2K prefill | 8K prefill | | --- | --- | --- | --- | ---: | ---: | ---: | | Maya-S (v2 IQ2_XXS) | MTP | 0,1 | 32768 | 86.5 | 1111 | 2337 | | Maya-S | MTP | 0,1,2 | 32768 | 110.2 | 1710 | 2365 | | Maya-S | MTP | 0,1,2 | auto | 107.1 | 1842 | 2520 | | Maya-S | DFlash2 | 0,1,2 | auto | **148.6** | 2002 | 2605 | | Maya-M-Derisked (IQ2_S) | MTP | 0,1 | auto | 62.3 | 830 | 1948 | | Maya-M-Derisked | MTP | 0,1,2 | auto | 92.1 | 1832 | 2439 | | Maya-M-Derisked | DFlash2 | 0,1,2 | auto | **123.4** | 1520 | 2341 | For reference, DFlash2 on the two 5090s alone (2026-10-23, same version) was *slower* than MTP: Maya-S 71.2, Maya-M 49.0 tok/s decode, the batched verify window pushing RAM-tier experts to the CPU lane. With the 4090 it is 35-39% faster than MTP. ### 2. 16K-token prompts over the API (streaming; decode = tokens after the first / time after it; greedy, 600 tokens, median of 3) | Model | Drafting | GPUs | `--prefill` | Decode code / zh prose / rewrite (copy-and-fix) | 16K prefill | | --- | --- | --- | --- | --- | ---: | | Maya-S | MTP | 0,1 | 32768 | 84.6 / 93.3 / 102.2 | 2.67-2.86K | | Maya-S | MTP | 0,1,2 | 32768 | 97.2 / 92.7 / 99.2 | 2.25-2.44K | | Maya-S | MTP | 0,1,2 | auto | 103.9 / 97.6 / 107.7 | 3.33-3.63K | | Maya-S | DFlash2 | 0,1,2 | auto | 115.4 / 99.3 / **150.2** | 3.39-3.70K | | Maya-M-Derisked | MTP | 0,1 | auto | 63.1 / 68.0 / 69.0 | 2.47-2.65K | | Maya-M-Derisked | MTP | 0,1,2 | auto | 88.2 / 84.4 / 92.2 | 3.08-3.31K | | Maya-M-Derisked | DFlash2 | 0,1,2 | auto | 98.6 / 91.9 / **125.7** | 3.10-3.39K | Maya-M-Derisked, 3 GPUs, DFlash2 vs `--parallel 2` + `MAYA_GLM_SPLIT_ROWS=2` (a lone request there runs the MTP path), single request: | Prompt | DFlash2 code / zh / rewrite | p2 + rows2 (MTP) code / zh / rewrite | | --- | --- | --- | | 1K | 122.9 / 103.0 / 143.1 | 94.2 / 90.8 / 96.7 | | 4K | 101.2 / 93.9 / 136.6 | 86.6 / 86.4 / 91.7 | | 16K | 101.5 / 89.0 / 127.5 | 86.0 / 84.9 / 88.1 | ### 3. Concurrency, 3 GPUs (2K-token prompts, 400 tokens, greedy; aggregate = all tokens / wall time incl. prefill) | Model | Config | N=1 | N=2 | N=4 | | --- | --- | ---: | ---: | ---: | | Maya-S | DFlash2, `--parallel 1` (queued) | 80.1 | - | 80.9 | | Maya-S | `--parallel 4` | 74.7 | 100.6 | **124.8** | | Maya-S | `--parallel 4` + `SPLIT_ROWS=2` + `EVEN_GROUPS=1` | 75.3 | 100.7 | 124.3 | | Maya-S | ... + `MULTI_MTP=3` | 73.7 | 98.0 | 99.0 | | Maya-M-Derisked | DFlash2, `--parallel 1` (queued) | 72.3 | - | 71.4 | | Maya-M-Derisked | `--parallel 4` | 67.2 | 95.4 | 103.1 | | Maya-M-Derisked | `--parallel 4` + `SPLIT_ROWS=2` + `EVEN_GROUPS=1` | 66.8 | 95.1 | **116.9** | | Maya-M-Derisked | ... + `MULTI_MTP=3` | 66.8 | 92.5 | 84.9 | | Maya-M-Derisked | `--parallel 2` + `SPLIT_ROWS=2` (no `EVEN_GROUPS`) | 66.0 | 73.7 | - | `MULTI_MTP=3` accepted 48-63% of drafts (2.4-2.9 tokens a verify step) and lost at N=4 on this split. `SPLIT_ROWS` helps only Maya-M, whose experts (~108 GB) do not fit the ~85 GB expert pool of the three cards; for Maya-S (~89 GB of experts, 11232 of 11361 slots in VRAM) it is neutral. Without `EVEN_GROUPS`, two requests form one group and the split goes serial (73.7 vs 95.1). ### Notes - **`--prefill 32768` on a multi-GPU split** makes a 16K prompt one chunk, and a chunk goes through the parts one after another: Maya-S 3 GPUs, 16K prompt, 1 chunk 5.87 s (2790 tok/s, parts 1.89 + 1.69 + 1.95 s) vs `auto` 2 chunks 4.33 s on Maya-M (3782 tok/s, parts overlapped). The 4090's part is the slowest stage on the prompt (its x4 link stages experts at ~5.2 GB/s vs ~20 GB/s on the 5090s). - The third card's gain comes from the RAM tier: Maya-S VRAM hit 85-92% on two cards -> 98-99% on three; Maya-M-Derisked still runs a CPU lane of ~3 ms of its ~8 ms token on three cards (`vram 10436/10548 ram 1648/2592`). Three-part decode is serial (see #235), so these numbers have room to grow. - With DFlash2 on 3 GPUs the 4090 still had ~10 GB free (`CUDA2: 10254 MiB of VRAM free with everything loaded`) while the 5090s were at the 1.6 GB reserve. <details><summary>maya-report.txt (Maya-M-Derisked, 3 GPUs, DFlash2; LAN address lines removed)</summary> ``` ## Maya version 1.1.26, commit f26d8ba 2026-10-23, Python 3.12.3, linux ## System Linux-6.8.0-136-generic-x86_64-with-glibc2.39 ## GPUs index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu 0, NVIDIA GeForce RTX 5090, 32607 MiB, 31641 MiB, 595.58.03, 5, 8, 16, 600.00 W, 58 1, NVIDIA GeForce RTX 5090, 32607 MiB, 31643 MiB, 595.58.03, 5, 8, 16, 600.00 W, 64 2, NVIDIA GeForce RTX 4090, 49140 MiB, 39238 MiB, 595.58.03, 4, 4, 16, 450.00 W, 57 ## CPU and RAM 13th Gen Intel(R) Core(TM) i7-13700K, 24 threads, AVX2 RAM 188.5 GB, 148.5 GB available now ## Disks NAME MODEL ROTA TRAN SIZE loop0 0 4K loop1 0 66.8M loop2 0 66.8M loop3 0 262.3M loop4 0 614.5M loop5 0 283.8M loop6 0 615.3M loop7 0 91.7M loop8 0 395M loop9 0 402M loop10 0 50.3M loop11 0 44.7M loop12 0 222.9M loop13 0 222.9M nvme1n1 Samsung SSD 990 PRO 4TB 0 nvme 3.6T nvme0n1 CT1000P3PSSD8 0 nvme 931.5G ## Engine build {"archs": [89, 120], "nvcc": "/usr/local/cuda-13.3/bin/nvcc", "host_compiler": null, "date": "2026-10-25 20:08"} ## Setup maya-maya-m-derisked.json model Maya-M-Derisked, context 32768, GPUs [0, 1, 2], images on, settings {} model folder /mnt/models/llm/Maya-data/models/Maya-M-Derisked: 116.0 GB of GGUF, 1238 GB free, not a hard disk ## Engine log maya-maya-m-derisked.log: the speed and memory lines (last 80 of 936) glm prefill: CUDA2 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA2 VRAM before the expert pool: 4.19 of 47.37 GB in use - dense weights 2.39, state/KV (32768 ctx) 0.21, activations 0.07, other (context, MTP, scratch, prompt path) 1.52 glm fast: CUDA2 layers [31,45) expert pool 33.09 GB, 291-291 slots/layer (4074 total) glm fast: CUDA0 RAM tier 8.35 GB pinned, 1035 slots glm fast: CUDA1 RAM tier 10.99 GB pinned, 1375 slots glm fast: CUDA2 RAM tier 2.53 GB pinned, 312 slots glm fast: CUDA0 tiers warm: 3744 experts (32.6 GB) in 14 s (2.41 GB/s) glm fast: CUDA1 tiers warm: 4320 experts (37.1 GB) in 13 s (2.79 GB/s) glm fast: CUDA2 tiers warm: 4032 experts (35.1 GB) in 16 s (2.17 GB/s) glm fast: CUDA0 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.152 ms on the CPU vs 0.329 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6 glm fast: CUDA1 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.167 ms on the CPU vs 0.324 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 5 glm fast: CUDA2 CPU lane off: the RAM tier holds no expert glm split: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token) glm stat: decode 10.28 ms/tok (97.23 tok/s) | vram hit 95.66% | ram fetches 4.20/tok | disk 0.00 reads/tok in 0.24 waits/tok, 0.00 ms/tok | promotions 3.92/tok | cpu lane 17.12/tok in 3.86 ms/tok | prompt 15.6 ms/tok | vram 10434/10548 ram 1656/2722 glm split auto: CUDA0 (NVIDIA GeForce RTX 5090) memory 1792 GB/s, 30.72 GB free glm split auto: CUDA1 (NVIDIA GeForce RTX 5090) memory 1792 GB/s, 30.74 GB free glm split auto: CUDA2 (NVIDIA GeForce RTX 4090) memory 1008 GB/s, 46.89 GB free glm split auto: the host reads RAM at 67 GB/s (a part's CPU lane: 33); the routes from the default coverage curve (no usage counts); the DFlash pipelined window: a round of a kept drafts costs the parts added + a x the slowest glm split auto: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 - a token 15.8 ms predicted (CUDA0 8.5 ms, 245 slots a layer | CUDA1 8.3 ms, 219 slots a layer | CUDA2 9.1 ms, 288 slots a layer), 99% of the routed experts in VRAM glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 3.83 of 31.35 GB in use - dense weights 2.45, state/KV (32768 ctx) 0.22, activations 0.07, other (context, MTP, scratch, prompt path) 1.09 glm fast: the expert profile ~/maya/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 the vision encoder borrows the pool's tail (3.06 GB) while it encodes glm fast: CUDA0 layers [0,16) expert pool 25.92 GB, 196-281 slots/layer (3183 total) glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2049 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 99, prestage 0: 0 experts); disk landing ring 96 experts (789 MB pinned) glm fast: CUDA1 VRAM before the expert pool: 3.35 of 31.36 GB in use - dense weights 2.02, state/KV (32768 ctx) 0.18, activations 0.07, other (context, MTP, scratch, prompt path) 1.08 glm fast: CUDA1 layers [16,31) expert pool 26.40 GB, 204-239 slots/layer (3291 total) glm prefill: CUDA2 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA2 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA2 VRAM before the expert pool: 4.19 of 47.37 GB in use - dense weights 2.39, state/KV (32768 ctx) 0.21, activations 0.07, other (context, MTP, scratch, prompt path) 1.52 glm fast: CUDA2 layers [31,45) expert pool 33.09 GB, 291-291 slots/layer (4074 total) glm fast: CUDA0 RAM tier 8.35 GB pinned, 1035 slots glm fast: CUDA1 RAM tier 10.99 GB pinned, 1375 slots glm fast: CUDA2 RAM tier 2.53 GB pinned, 312 slots glm fast: CUDA0 tiers warm: 3744 experts (32.6 GB) in 13 s (2.42 GB/s) glm fast: CUDA1 tiers warm: 4320 experts (37.1 GB) in 13 s (2.80 GB/s) glm fast: CUDA2 tiers warm: 4032 experts (35.1 GB) in 16 s (2.17 GB/s) glm fast: CUDA0 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.156 ms on the CPU vs 0.329 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 6 glm fast: CUDA1 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.167 ms on the CPU vs 0.324 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 5 glm fast: CUDA2 CPU lane off: the RAM tier holds no expert glm split: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token) glm stat: decode 8.47 ms/tok (118.07 tok/s) | vram hit 96.55% | ram fetches 3.26/tok | disk 0.00 reads/tok in 0.23 waits/tok, 0.00 ms/tok | promotions 2.00/tok | cpu lane 14.88/tok in 3.49 ms/tok | prompt 15.3 ms/tok | vram 10444/10548 ram 1651/2722 glm split auto: CUDA0 (NVIDIA GeForce RTX 5090) memory 1792 GB/s, 30.66 GB free glm split auto: CUDA1 (NVIDIA GeForce RTX 5090) memory 1792 GB/s, 30.68 GB free glm split auto: CUDA2 (NVIDIA GeForce RTX 4090) memory 1008 GB/s, 46.86 GB free glm split auto: the host reads RAM at 66 GB/s (a part's CPU lane: 33); the routes from the default coverage curve (no usage counts); the DFlash pipelined window: a round of a kept drafts costs the parts added + a x the slowest glm split auto: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 - a token 15.8 ms predicted (CUDA0 8.5 ms, 244 slots a layer | CUDA1 8.3 ms, 219 slots a layer | CUDA2 9.1 ms, 288 slots a layer), 99% of the routed experts in VRAM glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 3.88 of 31.35 GB in use - dense weights 2.45, state/KV (32768 ctx) 0.22, activations 0.07, other (context, MTP, scratch, prompt path) 1.14 glm fast: the expert profile ~/maya/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 the vision encoder borrows the pool's tail (3.06 GB) while it encodes glm fast: CUDA0 layers [0,16) expert pool 25.86 GB, 195-280 slots/layer (3176 total) glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2049 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 99, prestage 0: 0 experts); disk landing ring 96 experts (789 MB pinned) glm fast: CUDA1 VRAM before the expert pool: 3.41 of 31.36 GB in use - dense weights 2.02, state/KV (32768 ctx) 0.18, activations 0.07, other (context, MTP, scratch, prompt path) 1.14 glm fast: CUDA1 layers [16,31) expert pool 26.35 GB, 204-238 slots/layer (3284 total) glm prefill: CUDA2 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA2 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA2 VRAM before the expert pool: 4.23 of 47.37 GB in use - dense weights 2.39, state/KV (32768 ctx) 0.21, activations 0.07, other (context, MTP, scratch, prompt path) 1.56 glm fast: CUDA2 layers [31,45) expert pool 33.09 GB, 291-291 slots/layer (4074 total) glm fast: CUDA0 RAM tier 8.40 GB pinned, 1042 slots glm fast: CUDA1 RAM tier 11.05 GB pinned, 1382 slots glm fast: CUDA2 RAM tier 2.53 GB pinned, 312 slots glm fast: CUDA0 tiers warm: 3744 experts (32.6 GB) in 13 s (2.43 GB/s) glm fast: CUDA1 tiers warm: 4320 experts (37.1 GB) in 13 s (2.80 GB/s) glm fast: CUDA2 tiers warm: 4032 experts (35.1 GB) in 16 s (2.18 GB/s) glm fast: CUDA0 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.157 ms on the CPU vs 0.329 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 6 glm fast: CUDA1 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.167 ms on the CPU vs 0.324 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 5 glm fast: CUDA2 CPU lane off: the RAM tier holds no expert glm split: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token) ## Engine log maya-maya-m-derisked.log: the last 25 lines glm fast: CUDA1 warming the expert tiers 90% (33.4 of 37.1 GB, 12 s) glm fast: CUDA2 warming the expert tiers 60% (21.1 of 35.1 GB, 12 s) glm fast: CUDA1 warming the expert tiers 100% (37.1 of 37.1 GB, 13 s) glm fast: CUDA1 tiers warm: 4320 experts (37.1 GB) in 13 s (2.80 GB/s) glm fast: CUDA2 warming the expert tiers 70% (24.6 of 35.1 GB, 13 s) glm fast: CUDA2 warming the expert tiers 80% (28.1 of 35.1 GB, 14 s) glm fast: CUDA2 warming the expert tiers 90% (31.6 of 35.1 GB, 15 s) glm fast: CUDA2 warming the expert tiers 100% (35.1 of 35.1 GB, 16 s) glm fast: CUDA2 tiers warm: 4032 experts (35.1 GB) in 16 s (2.18 GB/s) glm fast: CUDA0 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.157 ms on the CPU vs 0.329 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 6 glm fast: CUDA1 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.167 ms on the CPU vs 0.324 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 5 glm fast: CUDA2 CPU lane off: the RAM tier holds no expert glm split: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token) glm dflash: 5 layers, hidden 4096, 32 heads (8 kv), block 8, window 2048, selector top-16 rank 256, reads trunk layers 6,15,25,34,43; 717 MB on CUDA2 maya serve: CUDA0: 1586 MiB of VRAM free with everything loaded maya serve: CUDA1: 1593 MiB of VRAM free with everything loaded maya serve: CUDA2: 10254 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 [maya] images: the vision encoder starts when a picture arrives, in 3.06 GB the model lends it [maya] thinking level when a request names none: high [maya] thinking budget: 32768 tokens (then the answer) ready: http://127.0.0.1:8061/v1 (OpenAI: /v1/chat/completions, /v1/responses, Anthropic: /v1/messages, context 32768 tokens, images on) open http://127.0.0.1:8061/ in a browser to chat; close this window to stop the model ## Benchmark (maya-bench.txt, from --bench) Project Maya v1.1.26 benchmark, 2026-10-25 20:47 GPUs: NVIDIA GeForce RTX 5090 32 GB, NVIDIA GeForce RTX 5090 32 GB, NVIDIA GeForce RTX 4090 48 GB; RAM 188 GB; CPU 13th Gen Intel(R) Core(TM) i7-13700K setup: maya-maya-m-derisked.json, context 32768, GPUs [0, 1, 2] decode (writing the answer): mean 123.4 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 123.9 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 111.7 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 134.8 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 1520 tokens/s, 2048 tokens prefill (reading the prompt): 2341 tokens/s, 8192 tokens engine lines: glm fast: CUDA1 layers [16,31) expert pool 26.40 GB, 204-239 slots/layer (3291 total) glm prefill: CUDA2 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA2 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA2 VRAM before the expert pool: 4.19 of 47.37 GB in use - dense weights 2.39, state/KV (32768 ctx) 0.21, activations 0.07, other (context, MTP, scratch, prompt path) 1.52 glm fast: CUDA2 layers [31,45) expert pool 33.09 GB, 291-291 slots/layer (4074 total) glm fast: CUDA0 RAM tier 7.29 GB pinned, 905 slots glm fast: CUDA1 RAM tier 10.99 GB pinned, 1375 slots glm fast: CUDA2 RAM tier 2.53 GB pinned, 312 slots glm fast: CUDA0 tiers warm: 3744 experts (32.6 GB) in 14 s (2.40 GB/s) glm fast: CUDA1 tiers warm: 4320 experts (37.1 GB) in 13 s (2.78 GB/s) glm fast: CUDA2 tiers warm: 4032 experts (35.1 GB) in 16 s (2.17 GB/s) glm fast: CUDA0 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.157 ms on the CPU vs 0.329 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 6 glm fast: CUDA1 CPU lane: 14 threads (one pool, shared by the split's GPUs), an expert 0.167 ms on the CPU vs 0.324 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 5 glm fast: CUDA2 CPU lane off: the RAM tier holds no expert glm split: layers [0, 16) on CUDA0, [16, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token) glm stat: decode 7.99 ms/tok (125.09 tok/s) | vram hit 96.92% | ram fetches 2.39/tok | disk 0.00 reads/tok in 0.06 waits/tok, 0.00 ms/tok | promotions 1.95/tok | cpu lane 13.08/tok in 2.93 ms/tok | prompt 15.3 ms/tok | vram 10436/10548 ram 1648/2592 glm stat: decode 8.07 ms/tok (123.87 tok/s) | vram hit 96.62% | ram fetches 2.75/tok | disk 0.00 reads/tok in 0.11 waits/tok, 0.00 ms/tok | promotions 2.07/tok | cpu lane 13.75/tok in 3.18 ms/tok | prompt 14.4 ms/tok | vram 10437/10548 ram 1634/2592 glm stat: decode 8.95 ms/tok (111.67 tok/s) | vram hit 97.68% | ram fetches 1.94/tok | disk 0.00 reads/tok in 0.08 waits/tok, 0.00 ms/tok | promotions 1.71/tok | cpu lane 11.88/tok in 2.64 ms/tok | prompt 14.1 ms/tok | vram 10434/10548 ram 1657/2592 glm stat: decode 7.42 ms/tok (134.77 tok/s) | vram hit 96.49% | ram fetches 2.68/tok | disk 0.00 reads/tok in 0.13 waits/tok, 0.00 ms/tok | promotions 1.86/tok | cpu lane 13.18/tok in 3.07 ms/tok | prompt 14.7 ms/tok | vram 10432/10548 ram 1656/2592 glm prefill: CUDA0 the MMQ scratch pool has 16.0 MB of the loan (16.0 MB past the layout's need; 126 experts more lent for it) glm prefill: CUDA1 the MMQ scratch pool has 16.0 MB of the loan (16.0 MB past the layout's need; 137 experts more lent for it) glm prefill: CUDA2 the MMQ scratch pool has 16.0 MB of the loan (16.0 MB past the layout's need; 118 experts more lent for it) glm prefill: CUDA0 chunk 1/1, 2047 tokens, wall 337 ms | the copy lane 288 ms: copies 154 (21.0 GB/s), ring wait 21, gaps 0, mixer windows 113 | lead 46, tail 2 | pcie 3.23 GB (ram 3.23, disk 0.00) + 0.86 GB vram | experts: staged 507, resident 2936 (175024 rows), prestaged 0, cpu 277 (2324 rows, 170 ms) | plan 3 ms host, disk wait 0 ms, hop in 0 ms | layer lane 16.4/9.2 ms max/min glm prefill: CUDA1 chunk 1/1, 2047 tokens, wall 482 ms | the copy lane 475 ms: copies 352 (23.2 GB/s), ring wait 14, gaps 0, mixer windows 108 | lead 7, tail 0 | pcie 8.16 GB (ram 8.16, disk 0.00) + 0.82 GB vram | experts: staged 1123, resident 3036 (173475 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 5 ms | layer lane 29.3/18.5 ms max/min glm prefill: CUDA2 chunk 1/1, 2047 tokens, wall 352 ms | the copy lane 337 ms: copies 194 (4.0 GB/s), ring wait 0, gaps 0, mixer windows 143 | lead 11, tail 4 | pcie 0.78 GB (ram 0.78, disk 0.00) + 0.47 GB vram | experts: staged 155, resident 3822 (223190 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 22 ms | layer lane 19.7/7.1 ms max/min glm prefill: 2047 tokens in 1215.1 ms (0.59 ms/token, 1685 tok/s), 1 chunk of 2048 tokens | CUDA0 337 ms, CUDA1 482 ms (hop in 5 ms), CUDA2 352 ms (hop in 22 ms) glm stat (prompt only): prompt 0.7 ms/tok | vram 10060/10548 ram 1962/2592 glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 1 kept, 0.18 GB glm prefill: CUDA0 chunk 1/1, 2047 tokens, wall 348 ms | the copy lane 306 ms: copies 163 (21.2 GB/s), ring wait 19, gaps 0, mixer windows 124 | lead 39, tail 2 | pcie 3.46 GB (ram 3.46, disk 0.00) + 0.88 GB vram | experts: staged 539, resident 2936 (180432 rows), prestaged 0, cpu 274 (2452 rows, 191 ms) | plan 0 ms host, disk wait 0 ms, hop in 0 ms | layer lane 18.6/9.6 ms max/min glm prefill: CUDA1 chunk 1/1, 2047 tokens, wall 506 ms | the copy lane 498 ms: copies 372 (23.3 GB/s), ring wait 18, gaps 0, mixer windows 108 | lead 7, tail 0 | pcie 8.67 GB (ram 8.67, disk 0.00) + 0.91 GB vram | experts: staged 1198, resident 3036 (189719 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 5 ms | layer lane 30.5/18.9 ms max/min glm prefill: CUDA2 chunk 1/1, 2047 tokens, wall 361 ms | the copy lane 349 ms: copies 209 (4.0 GB/s), ring wait 0, gaps 0, mixer windows 139 | lead 11, tail 1 | pcie 0.83 GB (ram 0.83, disk 0.00) + 0.61 GB vram | experts: staged 178, resident 3822 (225357 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 22 ms | layer lane 21.1/10.2 ms max/min glm prefill: 2047 tokens in 1258.3 ms (0.61 ms/token, 1627 tok/s), 1 chunk of 2048 tokens | CUDA0 348 ms, CUDA1 506 ms (hop in 5 ms), CUDA2 361 ms (hop in 22 ms) glm stat (prompt only): prompt 0.7 ms/tok | vram 10065/10548 ram 1959/2592 glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 2 kept, 0.36 GB glm prefill: CUDA0 chunk 1/1, 8191 tokens, wall 994 ms | the copy lane 793 ms: copies 199 (25.2 GB/s), ring wait 152, gaps 0, mixer windows 442 | lead 194, tail 6 | pcie 5.01 GB (ram 5.01, disk 0.00) + 0.00 GB vram | experts: staged 621, resident 2936 (732544 rows), prestaged 0, cpu 207 (4550 rows, 355 ms) | plan 5 ms host, disk wait 0 ms, hop in 0 ms | layer lane 35.0/21.3 ms max/min glm prefill: CUDA1 chunk 1/1, 8191 tokens, wall 1046 ms | the copy lane 1018 ms: copies 409 (24.9 GB/s), ring wait 164, gaps 0, mixer windows 445 | lead 27, tail 1 | pcie 10.17 GB (ram 10.17, disk 0.00) + 0.02 GB vram | experts: staged 1275, resident 3036 (792077 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 20 ms | layer lane 42.7/33.3 ms max/min glm prefill: CUDA2 chunk 1/1, 8191 tokens, wall 996 ms | the copy lane 936 ms: copies 292 (5.7 GB/s), ring wait 107, gaps 0, mixer windows 537 | lead 58, tail 1 | pcie 1.66 GB (ram 1.66, disk 0.00) + 0.00 GB vram | experts: staged 205, resident 3822 (908861 rows), prestaged 0, cpu 0 (0 rows, 0 ms) | plan 0 ms host, disk wait 0 ms, hop in 88 ms | layer lane 30.5/26.9 ms max/min glm prefill: 8191 tokens in 3208.3 ms (0.39 ms/token, 2553 tok/s), 1 chunk of 8192 tokens | CUDA0 994 ms, CUDA1 1046 ms (hop in 20 ms), CUDA2 996 ms (hop in 88 ms) glm stat (prompt only): prompt 0.4 ms/tok | vram 9763/10548 ram 2267/2592 ``` </details>
Author
Owner

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

Thank you for such a complete set: two vs three GPUs, MTP vs DFlash2, and --parallel with its options. Your DFlash2 rows are now at the top of the speed table for the next release: 148.6 tokens/s with Maya-S and 123.4 with Maya-M-Derisked on two RTX 5090s and an RTX 4090 48 GB. The notes on the single prompt chunk going through the parts one after another and the idle room on the 4090 under DFlash2 are noted for the split work. Closing as done.

<!-- gh-comment-id:6446358883 --> @mw00 commented on GitHub (Oct 27, 2026): Thank you for such a complete set: two vs three GPUs, MTP vs DFlash2, and `--parallel` with its options. Your DFlash2 rows are now at the top of the speed table for the next release: 148.6 tokens/s with Maya-S and 123.4 with Maya-M-Derisked on two RTX 5090s and an RTX 4090 48 GB. The notes on the single prompt chunk going through the parts one after another and the idle room on the 4090 under DFlash2 are noted for the split work. Closing as done.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mw00/project-maya#200
No description provided.