[GH-ISSUE #72] Maya-S24 on 3090 Ti + 3090, 32 GB DDR4: 13.6 tok/s decode, NVMe misses and asymmetric split results #30

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

Originally created by @mutairimaga-arch on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/72

Maya-S24 generates coherent output on this Ubuntu machine, but sustained single-stream decode is around 13.3–13.6 tok/s and NVMe expert reads remain high. Prefill is much better than our prior custom EXL3 offload implementation. Could you help identify the best cache/CPU plan for this asymmetric PCIe and limited-RAM setup? Related: #51, although that machine has enough RAM to avoid our SSD misses.

Hardware: i9-11900 (8C/16T, AVX-512), 32 GB dual-channel DDR4, RTX 3090 Ti 24 GB on PCIe 4 x16 + RTX 3090 24 GB on PCIe 3 x4, no P2P/NVLink, one Corsair MP510 960 GB holding the GGUF. Driver 595.91.07; existing CUDA 13.2; SM86 build. Prior H2D measurements were about 23 and 3 GB/s respectively; we did not repeat hardware microbenchmarks for this campaign.

Engine v1.0.24 at e3660c2ae3; Maya-S24 from peasantsmith/GLM-5.3-Flash-Maya-GGUF at 3e9f3bb20aa191e01c6fb850faf132d8149da98a. All three shards verified by full size, LFS SHA256 and GGUF bounds. Native engine is unmodified. Config: GPUs [0,1], --max-context 32768, --prefill auto, STRATA_GLM_RAM_GB=18, MTP enabled, greedy seed42, thinking off, no vision. Cgroup MemoryMax24GiB, MemoryHigh23GiB, swap0; both parts select four CPU threads.

We ran the official --bench plus a driver recording every native token ID and monotonic timestamp, physical /proc/diskstats counters and one-second CPU/GPU/RAM telemetry. Extended protocol: 64-token warmup, arithmetic/GPU explanation, a thorough TCP chapter allowed to finish naturally, separate fresh exact 2K/8K prompts with a 2K prefill warmup. All native counts match the collected IDs; no prefix reuse, inference swap or OOM.

Setting Chapter tokens Decode after token128 tok/s Prefill2K Prefill8K Decode physical SSD GB/s SSD MB/token
Initial split 25, soft cap 23 GiB 4437 13.30 166.9 507.6 1.888 141.9
Frozen split 25, soft cap 23 GiB 3584 13.59 166.9 506.1 1.926 141.7
Frozen split 25, soft cap 24 GiB 4411 13.39 166.8 498.9 1.929 144.1
Frozen split 36, soft cap 23 GiB 3424 6.97 168.2 565.8 2.106 302.1

Official --bench: decode 9.04/11.48/9.55 (mean10.0) on its short answers; prefill 164/494 tok/s. It used learned auto split23, whereas extended comparisons freeze split25. The official native worker completed successfully; a later wrapper error did not alter its results.

In the frozen split25/MemoryHigh23 trial: GPU VRAM peaks23587/23547MiB, utilization91.6%/82.1%, RSS22.61GiB, minimum MemAvailable5.35GiB, whole-system CPU49.4%, exact VRAM lookup hit rate80.85%, MTP acceptance83.70%. Initial long trial logs report19.45 disk reads/token and58.13ms summed disk wait/token, plus36.65 CPU-lane experts/token and24.8ms summed CPU-lane time. We treat these as overlapping cumulative averages, not additive wall-time components.

The memory pair used identical config and frozen expert_usage seed (e3fb0aa49229c7dbc674e4ffeeffdd9218fadd243aff86472a6ccba00ef0a2b5). Raising MemoryHigh24GiB did not help; it shifted reclaim events to MemoryMax. Outputs diverged after17 common tokens and CPU startup plan varied slightly, so tiny differences are not exact-route comparisons.

Changing only split25→36 makes GPU1's nine trunk MoE layers plus MTP fully resident (288 slots/layer), while GPU0 drops131→82 slots/layer. Sustained decode fell to 6.97 tok/s and physical reads rose to 302.1MB/token. Native RAM allocated16.5GiB despite budget18; GPU0 gets13.81 and GPU1 caps at2.71GiB. Is unused budget on the later fully-resident part expected to remain unavailable to the earlier part?

Would you recommend a different split or per-part CPU plan for an SSD-bound 32GB machine, or profiling a specific prefetch/cache bottleneck? Does the planner account for actual SSD misses and asymmetric PCIe, rather than the RAM-tier assumption? We can provide sanitized per-request native logs and token/telemetry evidence. A prior custom EXL32.05bpw runtime measured18–20tok/s full-eight and28–31 strongest-four on different prompts/sampling/KV; that is context, not an apples-to-apples Maya regression claim.

This report and analysis were prepared with Codex assistance. Full routing is preserved in Maya; strongest-four results are a separate lossy runtime.

Originally created by @mutairimaga-arch on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/72 Maya-S24 generates coherent output on this Ubuntu machine, but sustained single-stream decode is around 13.3–13.6 tok/s and NVMe expert reads remain high. Prefill is much better than our prior custom EXL3 offload implementation. Could you help identify the best cache/CPU plan for this asymmetric PCIe and limited-RAM setup? Related: #51, although that machine has enough RAM to avoid our SSD misses. Hardware: i9-11900 (8C/16T, AVX-512), 32 GB dual-channel DDR4, RTX 3090 Ti 24 GB on PCIe 4 x16 + RTX 3090 24 GB on PCIe 3 x4, no P2P/NVLink, one Corsair MP510 960 GB holding the GGUF. Driver 595.91.07; existing CUDA 13.2; SM86 build. Prior H2D measurements were about 23 and 3 GB/s respectively; we did not repeat hardware microbenchmarks for this campaign. Engine v1.0.24 at e3660c2ae379b25999e2a2b142a899ff50fedb94; Maya-S24 from peasantsmith/GLM-5.3-Flash-Maya-GGUF at 3e9f3bb20aa191e01c6fb850faf132d8149da98a. All three shards verified by full size, LFS SHA256 and GGUF bounds. Native engine is unmodified. Config: GPUs [0,1], --max-context 32768, --prefill auto, STRATA_GLM_RAM_GB=18, MTP enabled, greedy seed42, thinking off, no vision. Cgroup MemoryMax24GiB, MemoryHigh23GiB, swap0; both parts select four CPU threads. We ran the official --bench plus a driver recording every native token ID and monotonic timestamp, physical /proc/diskstats counters and one-second CPU/GPU/RAM telemetry. Extended protocol: 64-token warmup, arithmetic/GPU explanation, a thorough TCP chapter allowed to finish naturally, separate fresh exact 2K/8K prompts with a 2K prefill warmup. All native counts match the collected IDs; no prefix reuse, inference swap or OOM. | Setting | Chapter tokens | Decode after token128 tok/s | Prefill2K | Prefill8K | Decode physical SSD GB/s | SSD MB/token | |---|---:|---:|---:|---:|---:|---:| | Initial split 25, soft cap 23 GiB | 4437 | 13.30 | 166.9 | 507.6 | 1.888 | 141.9 | | Frozen split 25, soft cap 23 GiB | 3584 | 13.59 | 166.9 | 506.1 | 1.926 | 141.7 | | Frozen split 25, soft cap 24 GiB | 4411 | 13.39 | 166.8 | 498.9 | 1.929 | 144.1 | | Frozen split 36, soft cap 23 GiB | 3424 | 6.97 | 168.2 | 565.8 | 2.106 | 302.1 | Official --bench: decode 9.04/11.48/9.55 (mean10.0) on its short answers; prefill 164/494 tok/s. It used learned auto split23, whereas extended comparisons freeze split25. The official native worker completed successfully; a later wrapper error did not alter its results. In the frozen split25/MemoryHigh23 trial: GPU VRAM peaks23587/23547MiB, utilization91.6%/82.1%, RSS22.61GiB, minimum MemAvailable5.35GiB, whole-system CPU49.4%, exact VRAM lookup hit rate80.85%, MTP acceptance83.70%. Initial long trial logs report19.45 disk reads/token and58.13ms summed disk wait/token, plus36.65 CPU-lane experts/token and24.8ms summed CPU-lane time. We treat these as overlapping cumulative averages, not additive wall-time components. The memory pair used identical config and frozen expert_usage seed (e3fb0aa49229c7dbc674e4ffeeffdd9218fadd243aff86472a6ccba00ef0a2b5). Raising MemoryHigh24GiB did not help; it shifted reclaim events to MemoryMax. Outputs diverged after17 common tokens and CPU startup plan varied slightly, so tiny differences are not exact-route comparisons. Changing only split25→36 makes GPU1's nine trunk MoE layers plus MTP fully resident (288 slots/layer), while GPU0 drops131→82 slots/layer. Sustained decode fell to 6.97 tok/s and physical reads rose to 302.1MB/token. Native RAM allocated16.5GiB despite budget18; GPU0 gets13.81 and GPU1 caps at2.71GiB. Is unused budget on the later fully-resident part expected to remain unavailable to the earlier part? Would you recommend a different split or per-part CPU plan for an SSD-bound 32GB machine, or profiling a specific prefetch/cache bottleneck? Does the planner account for actual SSD misses and asymmetric PCIe, rather than the RAM-tier assumption? We can provide sanitized per-request native logs and token/telemetry evidence. A prior custom EXL32.05bpw runtime measured18–20tok/s full-eight and28–31 strongest-four on different prompts/sampling/KV; that is context, not an apples-to-apples Maya regression claim. This report and analysis were prepared with Codex assistance. Full routing is preserved in Maya; strongest-four results are a separate lossy runtime.
Author
Owner

@mutairimaga-arch commented on GitHub (Oct 10, 2026):

Further measured tuning results on the same machine. The Maya results below use Maya-S24 GGUF and native full-eight routing. The separate EXL3 results at the end are a different runtime, not a Maya improvement.

Maya remains pinned to v1.0.24 / e3660c2ae3. These four fresh-process arms freeze layer split 25 and the same expert-usage seed. They retain MTP, 32K FP16 KV, an 18 GiB RAM expert budget, MemoryHigh 23 GiB / MemoryMax 24 GiB, zero inference swap, identical prompts and greedy seed 42. One setting changes per arm:

Maya setting Sustained decode tok/s Late decode tok/s 2K prefill tok/s 8K prefill tok/s Physical SSD GB/s during decode Physical SSD MB/token
Default control 13.80 14.39 168.2 508.6 1.891 137.0
STRATA_GLM_READ_CHUNKS=2 (default 8) 13.71 13.85 168.1 509.7 1.905 139.0
STRATA_GLM_CPU_LANE0=0 (default 4 threads) 12.81 13.24 167.2 511.3 1.887 147.3
STRATA_GLM_PREFILL_SUB=2048 (default 1024) 13.74 14.00 164.5 513.1 1.927 140.2

Sustained decode is independently derived from native token timestamps 128–1536 (1408 intervals); late decode is 1024–1536. Prefill uses exact 2048/8192-token inputs, newly processed native tokens and zero prefix reuse. All four arms completed with matching collected/native token counts, zero inference swap and no OOM kills. Startup auto CPU plans and generated continuations can differ, so these are equal-window protocol controls, not identical-route comparisons. No standalone hardware microbenchmarks were repeated.

None of these settings produced a meaningful Maya speed gain; disabling GPU0's CPU lane made decode worse. The previous split 36 trial was also substantially slower. The original issue's ~80% VRAM cache hit rate and ~1.9 GB/s physical SSD traffic remain relevant; summed native disk/CPU lane timings overlap and should not be added as exclusive wall time.

For context, we also optimized our separate native ExLlamaV3 2.05bpw streaming runtime: strongest-four rescaled decode, all-eight prefill, allocated 262K Q8 KV. Two 1536-token runs averaged 31.00 tok/s over tokens 128–1536, versus 30.73 originally. Fresh prefill improved from 125.26 to 201.03 tok/s on a 14171-token prompt; native TTFT fell from 113.34 to 70.69 seconds. That long-prompt trial requested only 128 output tokens and is not a sustained-decode measurement. The changes were outer prefill chunk 4096→8192, expert tile 128→256 with corrected live reconstruction scale pointers, and decode GPU0 cache 13→14 GiB. All-eight bulk prefill passed an unchanged numerical oracle. Different quantization, decode routing, KV, prompts and engines make this unsuitable as an apples-to-apples Maya speed or quality comparison.

For Maya on this 32 GB, single-NVMe, asymmetric PCIe machine, is there a specific cache/prefetch or per-part CPU-plan adjustment worth testing next? In particular, can RAM budget unused by a fully resident later GPU part be reassigned to the earlier streaming part? We can provide sanitized native logs and measured route/cache/traffic details for the four controls.

<!-- gh-comment-id:6091636797 --> @mutairimaga-arch commented on GitHub (Oct 10, 2026): Further measured tuning results on the same machine. **The Maya results below use Maya-S24 GGUF and native full-eight routing.** The separate EXL3 results at the end are a different runtime, not a Maya improvement. Maya remains pinned to v1.0.24 / e3660c2ae379b25999e2a2b142a899ff50fedb94. These four fresh-process arms freeze layer split 25 and the same expert-usage seed. They retain MTP, 32K FP16 KV, an 18 GiB RAM expert budget, MemoryHigh 23 GiB / MemoryMax 24 GiB, zero inference swap, identical prompts and greedy seed 42. One setting changes per arm: | Maya setting | Sustained decode tok/s | Late decode tok/s | 2K prefill tok/s | 8K prefill tok/s | Physical SSD GB/s during decode | Physical SSD MB/token | |---|---:|---:|---:|---:|---:|---:| | Default control | 13.80 | 14.39 | 168.2 | 508.6 | 1.891 | 137.0 | | `STRATA_GLM_READ_CHUNKS=2` (default 8) | 13.71 | 13.85 | 168.1 | 509.7 | 1.905 | 139.0 | | `STRATA_GLM_CPU_LANE0=0` (default 4 threads) | 12.81 | 13.24 | 167.2 | 511.3 | 1.887 | 147.3 | | `STRATA_GLM_PREFILL_SUB=2048` (default 1024) | 13.74 | 14.00 | 164.5 | 513.1 | 1.927 | 140.2 | Sustained decode is independently derived from native token timestamps 128–1536 (1408 intervals); late decode is 1024–1536. Prefill uses exact 2048/8192-token inputs, newly processed native tokens and zero prefix reuse. All four arms completed with matching collected/native token counts, zero inference swap and no OOM kills. Startup auto CPU plans and generated continuations can differ, so these are equal-window protocol controls, not identical-route comparisons. No standalone hardware microbenchmarks were repeated. None of these settings produced a meaningful Maya speed gain; disabling GPU0's CPU lane made decode worse. The previous split 36 trial was also substantially slower. The original issue's ~80% VRAM cache hit rate and ~1.9 GB/s physical SSD traffic remain relevant; summed native disk/CPU lane timings overlap and should not be added as exclusive wall time. For context, we also optimized our separate native ExLlamaV3 2.05bpw streaming runtime: **strongest-four rescaled decode, all-eight prefill**, allocated 262K Q8 KV. Two 1536-token runs averaged **31.00 tok/s** over tokens 128–1536, versus 30.73 originally. Fresh prefill improved from **125.26 to 201.03 tok/s** on a 14171-token prompt; native TTFT fell from 113.34 to 70.69 seconds. That long-prompt trial requested only 128 output tokens and is not a sustained-decode measurement. The changes were outer prefill chunk 4096→8192, expert tile 128→256 with corrected live reconstruction scale pointers, and decode GPU0 cache 13→14 GiB. All-eight bulk prefill passed an unchanged numerical oracle. Different quantization, decode routing, KV, prompts and engines make this **unsuitable as an apples-to-apples Maya speed or quality comparison**. For Maya on this 32 GB, single-NVMe, asymmetric PCIe machine, is there a specific cache/prefetch or per-part CPU-plan adjustment worth testing next? In particular, can RAM budget unused by a fully resident later GPU part be reassigned to the earlier streaming part? We can provide sanitized native logs and measured route/cache/traffic details for the four controls.
Author
Owner

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

Thank you for the controlled runs. Your question about the RAM budget:

How a split's RAM tier is sized:

  • The free RAM is measured once, when the first GPU starts.
  • Each GPU in turn takes a share by its MoE layers.
  • What a GPU cannot use (its experts already fit in its VRAM) passes on to the next one.
  • It does not flow back to an earlier GPU, because that one is sized before the later ones load.

Whether that costs you anything: check each GPU's two log lines, glm fast: CUDA<n> layers [...] expert pool ... slots/layer and RAM tier ... GB pinned.

  • If the second GPU shows 288 slots a layer or more, its experts all fit and its share went unused; that budget could have gone to the first.
  • With Maya-S24 split 25 on two 24 GB cards, I expect neither to hold all its experts. In that case the budget is already used where it's needed.

Letting an unused share flow back is something we can look at if your logs show it happening.

Please test on v1.0.30. v1.0.24 is six releases back:

  • the CPU-lane calibration now measures on fresh prompts and on DRAM (#70);
  • the RAM tier and the CPU lane have changed since.

To update: git pull in the Maya folder, then ./maya.sh. Then run ./maya.sh --calibrate once.

<!-- gh-comment-id:6096930453 --> @mw00 commented on GitHub (Oct 10, 2026): Thank you for the controlled runs. Your question about the RAM budget: **How a split's RAM tier is sized:** - The free RAM is measured once, when the first GPU starts. - Each GPU in turn takes a share by its MoE layers. - What a GPU cannot use (its experts already fit in its VRAM) passes on to the next one. - It does not flow back to an earlier GPU, because that one is sized before the later ones load. **Whether that costs you anything:** check each GPU's two log lines, `glm fast: CUDA<n> layers [...] expert pool ... slots/layer` and `RAM tier ... GB pinned`. - If the second GPU shows 288 slots a layer or more, its experts all fit and its share went unused; that budget could have gone to the first. - With Maya-S24 split 25 on two 24 GB cards, I expect neither to hold all its experts. In that case the budget is already used where it's needed. Letting an unused share flow back is something we can look at if your logs show it happening. **Please test on v1.0.30.** v1.0.24 is six releases back: - the CPU-lane calibration now measures on fresh prompts and on DRAM (#70); - the RAM tier and the CPU lane have changed since. To update: `git pull` in the Maya folder, then `./maya.sh`. Then run `./maya.sh --calibrate` once.
Author
Owner

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

Closing for now: much has changed since v1.0.24 - the CPU-lane tuning measures on fresh prompts, and v1.1.3 fills VRAM by an expert profile. If decode on this box is still where it was on v1.1.3, a comment here with ./maya.sh --bench and ./maya.sh --report reopens it.

<!-- gh-comment-id:6125945060 --> @mw00 commented on GitHub (Oct 12, 2026): Closing for now: much has changed since v1.0.24 - the CPU-lane tuning measures on fresh prompts, and v1.1.3 fills VRAM by an expert profile. If decode on this box is still where it was on v1.1.3, a comment here with `./maya.sh --bench` and `./maya.sh --report` reopens it.
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#30
No description provided.