[GH-ISSUE #189] Speed report: 3x Tesla P40 24 GB (2x Xeon E5-2658 v2, 110 GB RAM) - Maya-S24, 9.2 tok/s decode / 204 tok/s prefill (8K), Linux + Pascal build questions #73

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

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

A speed report for three Tesla P40s on the experimental Pascal build, the card the README lists as experimental (sm_61 on CUDA 12.x). Decode is 9.2 tok/s with 91-96% of each token's experts in VRAM and zero reads from the SSD, and prefill sits near 200 tok/s at 2K and 8K alike. Asking whether both numbers are what this card should do, and whether STRATA_DENSE_F32=1 is the next thing to try.

The PC

  • GPUs: 3x Tesla P40 24 GB (PCIe 3.0 x16, sm_61), 347 GB/s of memory bandwidth each, 250 W, driver 535.261.03. All three run the model as a layer split (--gpu 0,1,2).
  • CPU: 2x Xeon E5-2658 v2 @ 2.40 GHz (2 NUMA nodes, 40 threads, no AVX2). The engine's CPU lane ran 16 threads, one pool shared by the split's GPUs.
  • RAM: 110 GB, about 109 GB available at bench time.
  • Storage: the model is on an internal ADATA SU800 477 GB SATA SSD, ext4. Not a hard disk and not USB.
  • Software: Debian, kernel 6.1.0-53-amd64, CUDA 12.9 (the 12.x toolkit Pascal needs).
  • Maya: v1.1.7 (commit 897717b), Maya-S24 (GLM-5.3-Flash IQ2_XXS, 94.7 GB of GGUF), 32K context, the MTP draft block on, default settings otherwise — the experimental Pascal build (-DSTRATA_EXPERIMENTAL_SM60=ON).

Results (./maya.sh --bench)

decode, mean of 3 answers of 256 tokens 9.2 tok/s (9.2 / 8.9 / 9.5)
prefill, 2K-token prompt 188 tok/s
prefill, 8K-token prompt 204 tok/s
load the tiers warmed in 155-175 s (0.16-0.19 GB/s), 88.7 GB of experts over the three cards

For comparison, the README table lists 26.0 tok/s decode and 913 tok/s prefill for Maya-S24 on one RTX 3090 with 128 GB RAM (#135), and #171 reports 26.8 / 541 for one V100 32 GB. A P40 carries about a third of a 3090's bandwidth (347 vs 936 GB/s) and Pascal's FP16 runs at 1/64 the F32 rate, so a fraction of those numbers was expected — but three cards land at barely a quarter of one 3090's prefill, and the split planner predicted 25.1 ms per token from the tier routes while the measured token costs 106-127 ms. That gap is most of my first question.

Where the time goes

glm split auto: the host reads RAM at 48 GB/s (a part's CPU lane: 16); the routes from the default coverage curve (no usage counts); a token costs the parts added
glm split auto: layers [0, 17) on CUDA0, [17, 31) on CUDA1, [31, 45) on CUDA2 - a token 25.1 ms predicted (CUDA0 9.2 ms, 218 slots a layer | CUDA1 7.0 ms, 230 slots a layer | CUDA2 8.9 ms, 219 slots a layer), 99% of the routed experts in VRAM
glm fast: CUDA0 layers [0,17) expert pool 20.65 GB, 174-265 slots/layer (3081 total)
glm fast: CUDA1 layers [17,31) expert pool 21.31 GB, 220-251 slots/layer (3262 total)
glm fast: CUDA2 layers [31,45) expert pool 20.57 GB, 162-223 slots/layer, the draft layer 201 (3027 total)
glm fast: CUDA0 RAM tier 8.91 GB pinned, 1347 slots
glm fast: CUDA1 RAM tier 7.60 GB pinned, 1164 slots
glm fast: CUDA2 RAM tier 11.69 GB pinned, 1716 slots
glm fast: CUDA0 tiers warm: 4032 experts (28.9 GB) in 175 s (0.16 GB/s)
glm fast: CUDA0 CPU lane: 16 threads (one pool, shared by the split's GPUs), an expert 0.330 ms on the CPU vs 0.739 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 2 2 3 4 4 5 6
glm split: layers [0, 17) on CUDA0, [17, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token)
glm stat: decode 110.67 ms/tok (9.04 tok/s) | vram hit 91.52% | ram fetches 2.05/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 2.05/tok | cpu lane 28.14/tok in 10.76 ms/tok | prompt 159.4 ms/tok | vram 9243/9370 ram 3140/4227
glm stat: decode 109.22 ms/tok (9.16 tok/s) | vram hit 91.13% | ram fetches 2.42/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 2.43/tok | cpu lane 29.11/tok in 11.11 ms/tok | prompt 149.2 ms/tok | vram 9245/9370 ram 3136/4227
glm stat: decode 112.67 ms/tok (8.88 tok/s) | vram hit 92.59% | ram fetches 1.62/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 1.64/tok | cpu lane 25.36/tok in 9.54 ms/tok | prompt 149.2 ms/tok | vram 9241/9370 ram 3143/4227
glm stat: decode 105.73 ms/tok (9.46 tok/s) | vram hit 90.92% | ram fetches 2.60/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 2.61/tok | cpu lane 29.00/tok in 10.88 ms/tok | prompt 150.4 ms/tok | vram 9242/9370 ram 3142/4227
glm stat (prompt only): prompt 4.9-5.4 ms/tok | vram 8464-8828/9370 ram 3488-3859/4227

My read (not verified): unlike #175, decode here is never disk-bound. The three pools hold 9370 expert slots in VRAM plus 28.2 GB across the RAM tiers, so every stat line reads disk 0.00; VRAM hit is 91-96%, and the CPU lane picks up the remaining 0-5 experts a token at 0.33 ms each, about 10-11 ms of a ~110 ms token. The dense side is small (1.4-2.0 GB of dense weights a card, KV 0.2-0.3 GB at 32K), and the split costs one 64 KB host hop per boundary per token. So the planner's 25.1 ms covers the tier reads, and the remaining ~85 ms is compute it does not model — the question is whether that is simply what dp4a-era P40s spend on the dense math and attention per token, or whether there is headroom.

maya-bench.txt
Project Maya v1.1.7 benchmark, 2026-10-14 13:44
GPUs: Tesla P40 24 GB, Tesla P40 24 GB, Tesla P40 24 GB; RAM 110 GB; CPU Intel(R) Xeon(R) CPU E5-2658 v2 @ 2.40GHz
setup: maya-maya-s24.json, context 32768, GPUs [0, 1, 2]
decode (writing the answer): mean 9.2 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
     9.2 tokens/s  Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
     8.9 tokens/s  Explain how photosynthesis works, step by step, for a high-school student.
     9.5 tokens/s  Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 188 tokens/s, 2048 tokens
prefill (reading the prompt): 204 tokens/s, 8192 tokens

engine lines:
glm split auto: CUDA0 (Tesla P40) memory 347 GB/s, 23.69 GB free
glm split auto: CUDA1 (Tesla P40) memory 347 GB/s, 23.69 GB free
glm split auto: CUDA2 (Tesla P40) memory 347 GB/s, 23.69 GB free
glm split auto: the host reads RAM at 49 GB/s (a part's CPU lane: 16); the routes from the default coverage curve (no usage counts); a token costs the parts added
glm split auto: layers [0, 17) on CUDA0, [17, 31) on CUDA1, [31, 45) on CUDA2 - a token 25.0 ms predicted (CUDA0 9.2 ms, 218 slots a layer | CUDA1 7.0 ms, 230 slots a layer | CUDA2 8.9 ms, 219 slots a layer), 99% of the routed experts in VRAM
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2001 MB of the expert pool while a prompt runs (activations 1803, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 2.53 of 23.87 GB in use - dense weights 1.98, state/KV (32768 ctx) 0.23, activations 0.06, other (context, MTP, scratch, prompt path) 0.27
glm fast: the expert profile ~/work/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,17) expert pool 20.65 GB, 174-265 slots/layer (3081 total)
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 1995 MB of the expert pool while a prompt runs (activations 1803, 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.88 of 23.87 GB in use - dense weights 1.38, state/KV (32768 ctx) 0.18, activations 0.05, other (context, MTP, scratch, prompt path) 0.27
glm fast: CUDA1 layers [17,31) expert pool 21.31 GB, 220-251 slots/layer (3262 total)
glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2001 MB of the expert pool while a prompt runs (activations 1803, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA2 VRAM before the expert pool: 2.62 of 23.87 GB in use - dense weights 1.88, state/KV (32768 ctx) 0.26, activations 0.07, other (context, MTP, scratch, prompt path) 0.41
glm fast: CUDA2 layers [31,45) expert pool 20.57 GB, 162-223 slots/layer, the draft layer 201 (3027 total)
glm fast: CUDA0 RAM tier 8.91 GB pinned, 1347 slots
glm fast: CUDA1 RAM tier 7.60 GB pinned, 1164 slots
glm fast: CUDA2 RAM tier 11.69 GB pinned, 1716 slots
glm fast: CUDA1 tiers warm: 4032 experts (28.3 GB) in 155 s (0.18 GB/s)
glm fast: CUDA2 tiers warm: 4320 experts (31.5 GB) in 162 s (0.19 GB/s)
glm fast: CUDA0 tiers warm: 4032 experts (28.9 GB) in 175 s (0.16 GB/s)
glm fast: CUDA0 CPU lane: 16 threads (one pool, shared by the split's GPUs), an expert 0.330 ms on the CPU vs 0.739 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 2 2 3 4 4 5 6
glm fast: CUDA1 CPU lane: 16 threads (one pool, shared by the split's GPUs), an expert 0.330 ms on the CPU vs 0.679 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 6
glm fast: CUDA2 CPU lane: 16 threads (one pool, shared by the split's GPUs), an expert 0.332 ms on the CPU vs 0.739 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 2 2 3 4 4 5 6
glm split: layers [0, 17) on CUDA0, [17, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token)
glm stat: decode 110.67 ms/tok (9.04 tok/s) | vram hit 91.52% | ram fetches 2.05/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 2.05/tok | cpu lane 28.14/tok in 10.76 ms/tok | prompt 159.4 ms/tok | vram 9243/9370 ram 3140/4227
glm stat: decode 109.22 ms/tok (9.16 tok/s) | vram hit 91.13% | ram fetches 2.42/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 2.43/tok | cpu lane 29.11/tok in 11.11 ms/tok | prompt 149.2 ms/tok | vram 9245/9370 ram 3136/4227
glm stat: decode 112.67 ms/tok (8.88 tok/s) | vram hit 92.59% | ram fetches 1.62/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 1.64/tok | cpu lane 25.36/tok in 9.54 ms/tok | prompt 149.2 ms/tok | vram 9241/9370 ram 3143/4227
glm stat: decode 105.73 ms/tok (9.46 tok/s) | vram hit 90.92% | ram fetches 2.60/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 2.61/tok | cpu lane 29.00/tok in 10.88 ms/tok | prompt 150.4 ms/tok | vram 9242/9370 ram 3142/4227
glm stat (prompt only): prompt 5.4 ms/tok | vram 8816/9370 ram 3501/4227
glm slots: saved a 2047-token conversation (0.18 GB in 0.3 s); 1 kept, 0.18 GB
glm stat (prompt only): prompt 5.3 ms/tok | vram 8828/9370 ram 3488/4227
glm slots: saved a 2047-token conversation (0.18 GB in 0.3 s); 2 kept, 0.36 GB
glm stat (prompt only): prompt 4.9 ms/tok | vram 8464/9370 ram 3859/4227

maya-report.txt is attached.

Other things I measured

  • The CPU lane re-tunes upward across starts. Over my four engine starts the split's per-part lane went 8 -> 11 -> 16 threads, host RAM reads 25 -> 34 -> 48 GB/s, the measured expert 0.46 -> 0.43 -> 0.33 ms on the CPU, and the planner's predicted token 26.9 -> 26.0 -> 25.1 ms. The 16-thread starts are the ones at 8.9-9.5 tok/s in the bench.
  • An expert is cheaper on this CPU than over PCIe. 0.327-0.334 ms on the CPU against 0.63-0.75 ms over PCIe 3.0 across the starts, so of 0..8 RAM-tier experts the CPU takes up to 6 — on a v2 Xeon with no AVX2. An average expert here is about 7 MB (88.7 GB over 12384 warmed), which at 0.63-0.75 ms works out to roughly 10-11 GB/s — about what PCIe 3.0 x16 gives.
  • MTP drafting acceptance swings with the answer. 61-96% per answer (126 draft slots each) in the bench, decode 8.9-9.5 tok/s.
  • Later answers in a conversation get slower, the same effect #175 saw: with a few thousand tokens of context the engine logs 7.5-8.6 tok/s against 8.9-9.5 for first answers, with VRAM hit still at 90-96%.
  • Prefill barely gains from 2K to 8K. 188 -> 204 tok/s, where the 3090 in #175 goes 147 -> 507 and #171's V100 286 -> 541. The log says prompt attention on the F32 cores — on Pascal that is the fallback, and I have not tried STRATA_DENSE_F32=1 yet.

Questions

  1. Is about 9 tok/s decode (110 ms/token) what three dp4a-era P40s should do with 99% of the routed experts in VRAM, or is there a setting worth trying — the prompt's dense GEMMs with STRATA_DENSE_F32=1, lane sizes, --calibrate?
  2. Is prefill expected to sit this low and flat (188 tok/s at 2K, 204 at 8K) on Pascal, and would STRATA_DENSE_F32=1 (cublasSgemm on FP32 copies — the build notes 8.4-10 against 4.3-4.6 TFLOPS for the FP16-operand kernels at some sizes on sm_61) move it?
  3. The tiers warm at 0.16-0.19 GB/s per card (88.7 GB in 155-175 s) from a SATA SSD rated about 0.5 GB/s sequential — is that the expected rate for scattered expert reads, and would the pack file (#182) or the expert arena help here?
  4. The planner gives the split's GPUs one 16-thread CPU pool shared across both sockets (2 NUMA nodes, host RAM reads 48 GB/s). Would per-node lanes be worth trying, or is the CPU lane too small a share of the token (~10 of ~110 ms) to matter?
Originally created by @hengwen1 on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/189 A speed report for three Tesla P40s on the experimental Pascal build, the card the README lists as experimental (sm_61 on CUDA 12.x). Decode is 9.2 tok/s with 91-96% of each token's experts in VRAM and zero reads from the SSD, and prefill sits near 200 tok/s at 2K and 8K alike. Asking whether both numbers are what this card should do, and whether `STRATA_DENSE_F32=1` is the next thing to try. ## The PC - **GPUs:** 3x Tesla P40 24 GB (PCIe 3.0 x16, sm_61), 347 GB/s of memory bandwidth each, 250 W, driver 535.261.03. All three run the model as a layer split (`--gpu 0,1,2`). - **CPU:** 2x Xeon E5-2658 v2 @ 2.40 GHz (2 NUMA nodes, 40 threads, no AVX2). The engine's CPU lane ran 16 threads, one pool shared by the split's GPUs. - **RAM:** 110 GB, about 109 GB available at bench time. - **Storage:** the model is on an internal ADATA SU800 477 GB SATA SSD, ext4. Not a hard disk and not USB. - **Software:** Debian, kernel 6.1.0-53-amd64, CUDA 12.9 (the 12.x toolkit Pascal needs). - **Maya:** v1.1.7 (commit 897717b), Maya-S24 (GLM-5.3-Flash IQ2_XXS, 94.7 GB of GGUF), 32K context, the MTP draft block on, default settings otherwise — the experimental Pascal build (`-DSTRATA_EXPERIMENTAL_SM60=ON`). ## Results (`./maya.sh --bench`) | | | | --- | --- | | decode, mean of 3 answers of 256 tokens | **9.2 tok/s** (9.2 / 8.9 / 9.5) | | prefill, 2K-token prompt | 188 tok/s | | prefill, 8K-token prompt | **204 tok/s** | | load | the tiers warmed in 155-175 s (0.16-0.19 GB/s), 88.7 GB of experts over the three cards | For comparison, the README table lists 26.0 tok/s decode and 913 tok/s prefill for Maya-S24 on one RTX 3090 with 128 GB RAM (#135), and #171 reports 26.8 / 541 for one V100 32 GB. A P40 carries about a third of a 3090's bandwidth (347 vs 936 GB/s) and Pascal's FP16 runs at 1/64 the F32 rate, so a fraction of those numbers was expected — but three cards land at barely a quarter of one 3090's prefill, and the split planner predicted 25.1 ms per token from the tier routes while the measured token costs 106-127 ms. That gap is most of my first question. ## Where the time goes ``` glm split auto: the host reads RAM at 48 GB/s (a part's CPU lane: 16); the routes from the default coverage curve (no usage counts); a token costs the parts added glm split auto: layers [0, 17) on CUDA0, [17, 31) on CUDA1, [31, 45) on CUDA2 - a token 25.1 ms predicted (CUDA0 9.2 ms, 218 slots a layer | CUDA1 7.0 ms, 230 slots a layer | CUDA2 8.9 ms, 219 slots a layer), 99% of the routed experts in VRAM glm fast: CUDA0 layers [0,17) expert pool 20.65 GB, 174-265 slots/layer (3081 total) glm fast: CUDA1 layers [17,31) expert pool 21.31 GB, 220-251 slots/layer (3262 total) glm fast: CUDA2 layers [31,45) expert pool 20.57 GB, 162-223 slots/layer, the draft layer 201 (3027 total) glm fast: CUDA0 RAM tier 8.91 GB pinned, 1347 slots glm fast: CUDA1 RAM tier 7.60 GB pinned, 1164 slots glm fast: CUDA2 RAM tier 11.69 GB pinned, 1716 slots glm fast: CUDA0 tiers warm: 4032 experts (28.9 GB) in 175 s (0.16 GB/s) glm fast: CUDA0 CPU lane: 16 threads (one pool, shared by the split's GPUs), an expert 0.330 ms on the CPU vs 0.739 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 2 2 3 4 4 5 6 glm split: layers [0, 17) on CUDA0, [17, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token) glm stat: decode 110.67 ms/tok (9.04 tok/s) | vram hit 91.52% | ram fetches 2.05/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 2.05/tok | cpu lane 28.14/tok in 10.76 ms/tok | prompt 159.4 ms/tok | vram 9243/9370 ram 3140/4227 glm stat: decode 109.22 ms/tok (9.16 tok/s) | vram hit 91.13% | ram fetches 2.42/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 2.43/tok | cpu lane 29.11/tok in 11.11 ms/tok | prompt 149.2 ms/tok | vram 9245/9370 ram 3136/4227 glm stat: decode 112.67 ms/tok (8.88 tok/s) | vram hit 92.59% | ram fetches 1.62/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 1.64/tok | cpu lane 25.36/tok in 9.54 ms/tok | prompt 149.2 ms/tok | vram 9241/9370 ram 3143/4227 glm stat: decode 105.73 ms/tok (9.46 tok/s) | vram hit 90.92% | ram fetches 2.60/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 2.61/tok | cpu lane 29.00/tok in 10.88 ms/tok | prompt 150.4 ms/tok | vram 9242/9370 ram 3142/4227 glm stat (prompt only): prompt 4.9-5.4 ms/tok | vram 8464-8828/9370 ram 3488-3859/4227 ``` My read (not verified): unlike #175, decode here is never disk-bound. The three pools hold 9370 expert slots in VRAM plus 28.2 GB across the RAM tiers, so every stat line reads `disk 0.00`; VRAM hit is 91-96%, and the CPU lane picks up the remaining 0-5 experts a token at 0.33 ms each, about 10-11 ms of a ~110 ms token. The dense side is small (1.4-2.0 GB of dense weights a card, KV 0.2-0.3 GB at 32K), and the split costs one 64 KB host hop per boundary per token. So the planner's 25.1 ms covers the tier reads, and the remaining ~85 ms is compute it does not model — the question is whether that is simply what dp4a-era P40s spend on the dense math and attention per token, or whether there is headroom. <details><summary>maya-bench.txt</summary> ``` Project Maya v1.1.7 benchmark, 2026-10-14 13:44 GPUs: Tesla P40 24 GB, Tesla P40 24 GB, Tesla P40 24 GB; RAM 110 GB; CPU Intel(R) Xeon(R) CPU E5-2658 v2 @ 2.40GHz setup: maya-maya-s24.json, context 32768, GPUs [0, 1, 2] decode (writing the answer): mean 9.2 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 9.2 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 8.9 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 9.5 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 188 tokens/s, 2048 tokens prefill (reading the prompt): 204 tokens/s, 8192 tokens engine lines: glm split auto: CUDA0 (Tesla P40) memory 347 GB/s, 23.69 GB free glm split auto: CUDA1 (Tesla P40) memory 347 GB/s, 23.69 GB free glm split auto: CUDA2 (Tesla P40) memory 347 GB/s, 23.69 GB free glm split auto: the host reads RAM at 49 GB/s (a part's CPU lane: 16); the routes from the default coverage curve (no usage counts); a token costs the parts added glm split auto: layers [0, 17) on CUDA0, [17, 31) on CUDA1, [31, 45) on CUDA2 - a token 25.0 ms predicted (CUDA0 9.2 ms, 218 slots a layer | CUDA1 7.0 ms, 230 slots a layer | CUDA2 8.9 ms, 219 slots a layer), 99% of the routed experts in VRAM glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2001 MB of the expert pool while a prompt runs (activations 1803, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 2.53 of 23.87 GB in use - dense weights 1.98, state/KV (32768 ctx) 0.23, activations 0.06, other (context, MTP, scratch, prompt path) 0.27 glm fast: the expert profile ~/work/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,17) expert pool 20.65 GB, 174-265 slots/layer (3081 total) glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 1995 MB of the expert pool while a prompt runs (activations 1803, 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.88 of 23.87 GB in use - dense weights 1.38, state/KV (32768 ctx) 0.18, activations 0.05, other (context, MTP, scratch, prompt path) 0.27 glm fast: CUDA1 layers [17,31) expert pool 21.31 GB, 220-251 slots/layer (3262 total) glm prefill: CUDA2 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2001 MB of the expert pool while a prompt runs (activations 1803, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA2 VRAM before the expert pool: 2.62 of 23.87 GB in use - dense weights 1.88, state/KV (32768 ctx) 0.26, activations 0.07, other (context, MTP, scratch, prompt path) 0.41 glm fast: CUDA2 layers [31,45) expert pool 20.57 GB, 162-223 slots/layer, the draft layer 201 (3027 total) glm fast: CUDA0 RAM tier 8.91 GB pinned, 1347 slots glm fast: CUDA1 RAM tier 7.60 GB pinned, 1164 slots glm fast: CUDA2 RAM tier 11.69 GB pinned, 1716 slots glm fast: CUDA1 tiers warm: 4032 experts (28.3 GB) in 155 s (0.18 GB/s) glm fast: CUDA2 tiers warm: 4320 experts (31.5 GB) in 162 s (0.19 GB/s) glm fast: CUDA0 tiers warm: 4032 experts (28.9 GB) in 175 s (0.16 GB/s) glm fast: CUDA0 CPU lane: 16 threads (one pool, shared by the split's GPUs), an expert 0.330 ms on the CPU vs 0.739 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 2 2 3 4 4 5 6 glm fast: CUDA1 CPU lane: 16 threads (one pool, shared by the split's GPUs), an expert 0.330 ms on the CPU vs 0.679 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 3 3 4 5 6 glm fast: CUDA2 CPU lane: 16 threads (one pool, shared by the split's GPUs), an expert 0.332 ms on the CPU vs 0.739 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 2 2 3 4 4 5 6 glm split: layers [0, 17) on CUDA0, [17, 31) on CUDA1, [31, 45) on CUDA2 (one 64 KB host hop per boundary per token) glm stat: decode 110.67 ms/tok (9.04 tok/s) | vram hit 91.52% | ram fetches 2.05/tok | disk 0.00 reads/tok in 0.00 waits/tok, 0.00 ms/tok | promotions 2.05/tok | cpu lane 28.14/tok in 10.76 ms/tok | prompt 159.4 ms/tok | vram 9243/9370 ram 3140/4227 glm stat: decode 109.22 ms/tok (9.16 tok/s) | vram hit 91.13% | ram fetches 2.42/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 2.43/tok | cpu lane 29.11/tok in 11.11 ms/tok | prompt 149.2 ms/tok | vram 9245/9370 ram 3136/4227 glm stat: decode 112.67 ms/tok (8.88 tok/s) | vram hit 92.59% | ram fetches 1.62/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 1.64/tok | cpu lane 25.36/tok in 9.54 ms/tok | prompt 149.2 ms/tok | vram 9241/9370 ram 3143/4227 glm stat: decode 105.73 ms/tok (9.46 tok/s) | vram hit 90.92% | ram fetches 2.60/tok | disk 0.00 reads/tok in 0.02 waits/tok, 0.00 ms/tok | promotions 2.61/tok | cpu lane 29.00/tok in 10.88 ms/tok | prompt 150.4 ms/tok | vram 9242/9370 ram 3142/4227 glm stat (prompt only): prompt 5.4 ms/tok | vram 8816/9370 ram 3501/4227 glm slots: saved a 2047-token conversation (0.18 GB in 0.3 s); 1 kept, 0.18 GB glm stat (prompt only): prompt 5.3 ms/tok | vram 8828/9370 ram 3488/4227 glm slots: saved a 2047-token conversation (0.18 GB in 0.3 s); 2 kept, 0.36 GB glm stat (prompt only): prompt 4.9 ms/tok | vram 8464/9370 ram 3859/4227 ``` </details> `maya-report.txt` is attached. ## Other things I measured - **The CPU lane re-tunes upward across starts.** Over my four engine starts the split's per-part lane went 8 -> 11 -> 16 threads, host RAM reads 25 -> 34 -> 48 GB/s, the measured expert 0.46 -> 0.43 -> 0.33 ms on the CPU, and the planner's predicted token 26.9 -> 26.0 -> 25.1 ms. The 16-thread starts are the ones at 8.9-9.5 tok/s in the bench. - **An expert is cheaper on this CPU than over PCIe.** 0.327-0.334 ms on the CPU against 0.63-0.75 ms over PCIe 3.0 across the starts, so of 0..8 RAM-tier experts the CPU takes up to 6 — on a v2 Xeon with no AVX2. An average expert here is about 7 MB (88.7 GB over 12384 warmed), which at 0.63-0.75 ms works out to roughly 10-11 GB/s — about what PCIe 3.0 x16 gives. - **MTP drafting acceptance swings with the answer.** 61-96% per answer (126 draft slots each) in the bench, decode 8.9-9.5 tok/s. - **Later answers in a conversation get slower**, the same effect #175 saw: with a few thousand tokens of context the engine logs 7.5-8.6 tok/s against 8.9-9.5 for first answers, with VRAM hit still at 90-96%. - **Prefill barely gains from 2K to 8K.** 188 -> 204 tok/s, where the 3090 in #175 goes 147 -> 507 and #171's V100 286 -> 541. The log says `prompt attention on the F32 cores` — on Pascal that is the fallback, and I have not tried `STRATA_DENSE_F32=1` yet. ## Questions 1. Is about 9 tok/s decode (110 ms/token) what three dp4a-era P40s should do with 99% of the routed experts in VRAM, or is there a setting worth trying — the prompt's dense GEMMs with `STRATA_DENSE_F32=1`, lane sizes, `--calibrate`? 2. Is prefill expected to sit this low and flat (188 tok/s at 2K, 204 at 8K) on Pascal, and would `STRATA_DENSE_F32=1` (cublasSgemm on FP32 copies — the build notes 8.4-10 against 4.3-4.6 TFLOPS for the FP16-operand kernels at some sizes on sm_61) move it? 3. The tiers warm at 0.16-0.19 GB/s per card (88.7 GB in 155-175 s) from a SATA SSD rated about 0.5 GB/s sequential — is that the expected rate for scattered expert reads, and would the pack file (#182) or the expert arena help here? 4. The planner gives the split's GPUs one 16-thread CPU pool shared across both sockets (2 NUMA nodes, host RAM reads 48 GB/s). Would per-node lanes be worth trying, or is the CPU lane too small a share of the token (~10 of ~110 ms) to matter?
Author
Owner

@hengwen1 commented on GitHub (Oct 14, 2026):

Image Image
<!-- gh-comment-id:6176184946 --> @hengwen1 commented on GitHub (Oct 14, 2026): <img width="1912" height="1746" alt="Image" src="https://github.com/user-attachments/assets/b0f34ee4-eb74-4e5b-b2a5-fe630ef6bf42" /> <img width="1916" height="1312" alt="Image" src="https://github.com/user-attachments/assets/cc0da84f-fc6a-4265-a97d-3ba538df3592" />
Author
Owner

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

v1.1.14 supports Pascal as experimental: the setup accepts P40s, and the engine caches global loads in L1 on them, which its decode needs there - on two P40s @Jw88888 measured Maya-S24 at 28 tok/s (#212). Please update (git pull, then ./maya.sh --setup) and run ./maya.sh --bench again; Pascal needs CUDA 12.x.

<!-- gh-comment-id:6224245792 --> @mw00 commented on GitHub (Oct 16, 2026): v1.1.14 supports Pascal as experimental: the setup accepts P40s, and the engine caches global loads in L1 on them, which its decode needs there - on two P40s @Jw88888 measured Maya-S24 at 28 tok/s (#212). Please update (`git pull`, then `./maya.sh --setup`) and run `./maya.sh --bench` again; Pascal needs CUDA 12.x.
Author
Owner

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

Huge improvement with v1.1.15! 🚀 My benchmark went from 9 t/s to 23 t/s on a 3× P40 setup. I also got 22 t/s with just 2× P40s. Not quite as good as @Jw88888’s results, probably due to my older PCIe and DDR3 host memory, but I’m more than happy with the performance! Huge thanks to @mw00 and @Jw88888! 🙌
3 P40:

Image

maya-bench_3x.txt

2 P40:

Image

maya-bench_2x.txt

<!-- gh-comment-id:6236557754 --> @hengwen1 commented on GitHub (Oct 17, 2026): Huge improvement with v1.1.15! 🚀 My benchmark went from 9 t/s to 23 t/s on a 3× P40 setup. I also got 22 t/s with just 2× P40s. Not quite as good as @Jw88888’s results, probably due to my older PCIe and DDR3 host memory, but I’m more than happy with the performance! Huge thanks to @mw00 and @Jw88888! 🙌 3 P40: <img width="1897" height="781" alt="Image" src="https://github.com/user-attachments/assets/977939f2-e4fe-4764-bf3f-8bc5eaabc3da" /> [maya-bench_3x.txt](https://github.com/user-attachments/files/33601323/maya-bench_3x.txt) 2 P40: <img width="1890" height="790" alt="Image" src="https://github.com/user-attachments/assets/1b11fa29-0a91-48b4-bd5e-52d462ba758e" /> [maya-bench_2x.txt](https://github.com/user-attachments/files/33601360/maya-bench_2x.txt)
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#73
No description provided.