mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #72] Maya-S24 on 3090 Ti + 3090, 32 GB DDR4: 13.6 tok/s decode, NVMe misses and asymmetric split results #30
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.
@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:STRATA_GLM_READ_CHUNKS=2(default 8)STRATA_GLM_CPU_LANE0=0(default 4 threads)STRATA_GLM_PREFILL_SUB=2048(default 1024)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.
@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:
Whether that costs you anything: check each GPU's two log lines,
glm fast: CUDA<n> layers [...] expert pool ... slots/layerandRAM tier ... GB pinned.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:
To update:
git pullin the Maya folder, then./maya.sh. Then run./maya.sh --calibrateonce.@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 --benchand./maya.sh --reportreopens it.