[GH-ISSUE #200] Maya-S24 on a 32 GB 4080 SUPER + 3970X: 262k context and tuning results #76

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

Originally created by @Micro-ATP on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/200

Some results from running Maya-S24 on my machine:

  • RTX 4080 SUPER modified to 32 GB VRAM, PCIe 4.0 x16
  • Threadripper 3970X, 32 CPU inference threads, 157 GiB usable RAM
  • SATA SSD, Maya 1.1.11 (8931339)

One slot, 262144 context, FP16 KV streaming with a 32768-position GPU window, shipped expert profile, auto expert cache/prefill:

--vram-reserve-mib 1536
STRATA_GLM_RAM_RESIDENT=1
STRATA_GLM_RAM_HEADROOM_GB=20
STRATA_GLM_PCIE_SHARE=0.25

The expert pools are about 23.15 GiB in VRAM and 69.72 GiB in RAM. Once loaded, expert disk reads stay at zero.

Each configuration got a fresh engine and warmup, with one request at a time and no prefix reuse. Short tests: three prompts, 256 output tokens, greedy, thinking off. 8k test: real server code, 1536 output tokens, high thinking, temperature 1, top_p 0.95.

Decode mode Short prompts, tok/s 8k code, tok/s
Plain 28.67 26.55
Single-GPU MTP 25.71 24.72
DFlash2 Q4_K_M 24.51 22.59

MTP used STRATA_GLM_MTP_DECODE=1; DFlash2 used default draft settings. They accepted 75% and 91% of drafts on the 8k run, but both were slower. PROMOTE_MIN=6, LRU, and the combination didn't give a clear win either. Plain decode repeated at 26.48/26.55 tok/s.

In a separate KV comparison, INT8 reduced host latent KV from 2.75 to 1.46 GiB and added 25 VRAM expert slots. FP16/INT8 decode was 26.04/25.21 tok/s at 8k input and 24.56/24.58 at 128k. I've kept FP16.

Both KV formats passed a near-262k capacity check with three markers at the beginning, middle and end. This wasn't a full quality benchmark. Prefill was around 1.4-1.5k tok/s; a fresh near-limit prompt took about three minutes before the answer.

SATA cold startup takes about four minutes. We're moving to a PCIe 3.0 SSD soon and will compare startup times then.

Originally created by @Micro-ATP on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/200 Some results from running Maya-S24 on my machine: - RTX 4080 SUPER modified to 32 GB VRAM, PCIe 4.0 x16 - Threadripper 3970X, 32 CPU inference threads, 157 GiB usable RAM - SATA SSD, Maya 1.1.11 (`8931339`) One slot, 262144 context, FP16 KV streaming with a 32768-position GPU window, shipped expert profile, auto expert cache/prefill: ```text --vram-reserve-mib 1536 STRATA_GLM_RAM_RESIDENT=1 STRATA_GLM_RAM_HEADROOM_GB=20 STRATA_GLM_PCIE_SHARE=0.25 ``` The expert pools are about 23.15 GiB in VRAM and 69.72 GiB in RAM. Once loaded, expert disk reads stay at zero. Each configuration got a fresh engine and warmup, with one request at a time and no prefix reuse. Short tests: three prompts, 256 output tokens, greedy, thinking off. 8k test: real server code, 1536 output tokens, high thinking, temperature 1, top_p 0.95. | Decode mode | Short prompts, tok/s | 8k code, tok/s | | --- | ---: | ---: | | Plain | 28.67 | 26.55 | | Single-GPU MTP | 25.71 | 24.72 | | DFlash2 Q4_K_M | 24.51 | 22.59 | MTP used `STRATA_GLM_MTP_DECODE=1`; DFlash2 used default draft settings. They accepted 75% and 91% of drafts on the 8k run, but both were slower. `PROMOTE_MIN=6`, LRU, and the combination didn't give a clear win either. Plain decode repeated at 26.48/26.55 tok/s. In a separate KV comparison, INT8 reduced host latent KV from 2.75 to 1.46 GiB and added 25 VRAM expert slots. FP16/INT8 decode was 26.04/25.21 tok/s at 8k input and 24.56/24.58 at 128k. I've kept FP16. Both KV formats passed a near-262k capacity check with three markers at the beginning, middle and end. This wasn't a full quality benchmark. Prefill was around 1.4-1.5k tok/s; a fresh near-limit prompt took about three minutes before the answer. SATA cold startup takes about four minutes. We're moving to a PCIe 3.0 SSD soon and will compare startup times then.
Author
Owner

@Micro-ATP commented on GitHub (Oct 15, 2026):

Prefill (PP) from the same KV comparison, with no prefix reuse. Auto prefill selected 32768-token chunks:

Input FP16 PP, tok/s INT8 PP, tok/s
8k server code 1528 1513
128k source code 1519 1514
Near-262k synthetic text 1429 1417

Both KV formats passed the near-262k capacity check with three markers at the beginning, middle and end. A fresh near-limit prompt took about three minutes before the answer. That test used repeated filler, so it wasn't a full quality benchmark or a direct PP scaling comparison with the code inputs.

<!-- gh-comment-id:6183818710 --> @Micro-ATP commented on GitHub (Oct 15, 2026): Prefill (PP) from the same KV comparison, with no prefix reuse. Auto prefill selected 32768-token chunks: | Input | FP16 PP, tok/s | INT8 PP, tok/s | | --- | ---: | ---: | | 8k server code | 1528 | 1513 | | 128k source code | 1519 | 1514 | | Near-262k synthetic text | 1429 | 1417 | Both KV formats passed the near-262k capacity check with three markers at the beginning, middle and end. A fresh near-limit prompt took about three minutes before the answer. That test used repeated filler, so it wasn't a full quality benchmark or a direct PP scaling comparison with the code inputs.
Author
Owner

@Micro-ATP commented on GitHub (Oct 15, 2026):

Project Maya v1.1.11 benchmark, 2026-10-15 03:45
GPUs: NVIDIA GeForce RTX 4080 SUPER 32 GB; RAM 157 GB; CPU AMD Threadripper 3970X
setup: maya.json, context 262144, GPUs [0]
decode (writing the answer): mean 26.7 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
25.4 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
28.8 tokens/s Explain how photosynthesis works, step by step, for a high-school student.
25.8 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 655 tokens/s, 2048 tokens
prefill (reading the prompt): 1552 tokens/s, 8192 tokens

engine lines:
glm prefill: CUDA0 chunks of 32768 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 6740 MB of the expert pool while a prompt runs (activations 5389, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 6.89 of 31.55 GB in use - dense weights 5.24, state/KV (262144 ctx) 0.92, activations 0.06, other (context, MTP, scratch, prompt path) 0.67
glm fast: the expert profile /opt/maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 23.15 GB, 65-108 slots/layer (3496 total)
glm fast: CUDA0 RAM tier 69.72 GB pinned, 10522 slots
glm fast: CUDA0 RAM-resident mode: every non-VRAM expert gets a slot (+16 slack/layer); disk evictions are OFF
glm fast: CUDA0 tiers warm: 12096 experts (86.0 GB) in 173 s (0.50 GB/s)
glm fast: CUDA0 RAM-resident verified: all 12096 experts are in VRAM or pinned RAM
glm fast: CUDA0 CPU lane: 32 threads, an expert 0.190 ms on the CPU vs 0.289 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6
glm stat: decode 34.36 ms/tok (29.10 tok/s) | vram hit 73.95% | ram fetches 26.14/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 25.89/tok | cpu lane 60.02/tok in 16.67 ms/tok | prompt 47.0 ms/tok | vram 3402/3496 ram 8659/10522
glm stat: decode 39.39 ms/tok (25.39 tok/s) | vram hit 66.59% | ram fetches 33.50/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 33.03/tok | cpu lane 78.31/tok in 21.25 ms/tok | prompt 43.2 ms/tok | vram 3406/3496 ram 8651/10522
glm stat: decode 34.75 ms/tok (28.77 tok/s) | vram hit 73.28% | ram fetches 26.29/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 25.99/tok | cpu lane 63.13/tok in 17.09 ms/tok | prompt 46.6 ms/tok | vram 3396/3496 ram 8681/10522
glm stat: decode 38.74 ms/tok (25.81 tok/s) | vram hit 66.96% | ram fetches 32.76/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 32.43/tok | cpu lane 77.83/tok in 20.93 ms/tok | prompt 45.8 ms/tok | vram 3405/3496 ram 8655/10522
glm stat (prompt only): prompt 1.7 ms/tok | vram 3133/3496 ram 8914/10522
glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 1 kept, 0.18 GB
glm stat (prompt only): prompt 1.5 ms/tok | vram 3135/3496 ram 8887/10522
glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 2 kept, 0.36 GB
glm stat (prompt only): prompt 0.6 ms/tok | vram 3016/3496 ram 9031/10522

<!-- gh-comment-id:6184280362 --> @Micro-ATP commented on GitHub (Oct 15, 2026): Project Maya v1.1.11 benchmark, 2026-10-15 03:45 GPUs: NVIDIA GeForce RTX 4080 SUPER 32 GB; RAM 157 GB; CPU AMD Threadripper 3970X setup: maya.json, context 262144, GPUs [0] decode (writing the answer): mean 26.7 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 25.4 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 28.8 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 25.8 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 655 tokens/s, 2048 tokens prefill (reading the prompt): 1552 tokens/s, 8192 tokens engine lines: glm prefill: CUDA0 chunks of 32768 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 6740 MB of the expert pool while a prompt runs (activations 5389, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 6.89 of 31.55 GB in use - dense weights 5.24, state/KV (262144 ctx) 0.92, activations 0.06, other (context, MTP, scratch, prompt path) 0.67 glm fast: the expert profile /opt/maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 23.15 GB, 65-108 slots/layer (3496 total) glm fast: CUDA0 RAM tier 69.72 GB pinned, 10522 slots glm fast: CUDA0 RAM-resident mode: every non-VRAM expert gets a slot (+16 slack/layer); disk evictions are OFF glm fast: CUDA0 tiers warm: 12096 experts (86.0 GB) in 173 s (0.50 GB/s) glm fast: CUDA0 RAM-resident verified: all 12096 experts are in VRAM or pinned RAM glm fast: CUDA0 CPU lane: 32 threads, an expert 0.190 ms on the CPU vs 0.289 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 4 4 5 6 glm stat: decode 34.36 ms/tok (29.10 tok/s) | vram hit 73.95% | ram fetches 26.14/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 25.89/tok | cpu lane 60.02/tok in 16.67 ms/tok | prompt 47.0 ms/tok | vram 3402/3496 ram 8659/10522 glm stat: decode 39.39 ms/tok (25.39 tok/s) | vram hit 66.59% | ram fetches 33.50/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 33.03/tok | cpu lane 78.31/tok in 21.25 ms/tok | prompt 43.2 ms/tok | vram 3406/3496 ram 8651/10522 glm stat: decode 34.75 ms/tok (28.77 tok/s) | vram hit 73.28% | ram fetches 26.29/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 25.99/tok | cpu lane 63.13/tok in 17.09 ms/tok | prompt 46.6 ms/tok | vram 3396/3496 ram 8681/10522 glm stat: decode 38.74 ms/tok (25.81 tok/s) | vram hit 66.96% | ram fetches 32.76/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 32.43/tok | cpu lane 77.83/tok in 20.93 ms/tok | prompt 45.8 ms/tok | vram 3405/3496 ram 8655/10522 glm stat (prompt only): prompt 1.7 ms/tok | vram 3133/3496 ram 8914/10522 glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 1 kept, 0.18 GB glm stat (prompt only): prompt 1.5 ms/tok | vram 3135/3496 ram 8887/10522 glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 2 kept, 0.36 GB glm stat (prompt only): prompt 0.6 ms/tok | vram 3016/3496 ram 9031/10522
Author
Owner

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

Thanks - your numbers are in the README's table as of v1.1.13.

<!-- gh-comment-id:6209702761 --> @mw00 commented on GitHub (Oct 16, 2026): Thanks - your numbers are in the README's table as of v1.1.13.
Author
Owner

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

Your numbers are in the README's table as of v1.1.13 - thanks again, @Micro-ATP. Closing this report.

<!-- gh-comment-id:6223518427 --> @mw00 commented on GitHub (Oct 16, 2026): Your numbers are in the README's table as of v1.1.13 - thanks again, @Micro-ATP. Closing this report.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

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