mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #105] v1.0.33 decodes ~25% slower than v1.0.32 on a RAM-rich dual-GPU box with a fast NVMe (Maya-M, Windows) #39
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#39
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 @xiongqiyang on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/105
Machine (Windows 10, engine built from source with CUDA 13.2, sm_86):
STRATA_GLM_RESERVE_MB=1000 STRATA_GLM_RAM_GB=44 STRATA_GLM_READ_WORKERS=16(the last one is a local one-line patch that parameterizes the disk-read pool's 8-thread default; default 8 was ~1% slower on both versions)v1.0.32 (
2908669) - hot after warm-up, greedy same-prompt runs:v1.0.33 (
6083122) - same env, same harness, hot:Two effects I can separate in the numbers:
STRATA_GLM_RAM_GBto 47 to compensate does not fix it: the start still dies withglm fast: the warmed expert tables did not upload(the staging re-order survived that; the table upload did not).Real-workload context: on varied conversations (thinking on, long answers, not the benchmark prompt) this box currently runs 10-12 tok/s on v1.0.32 with the same tier setup - included so the picture is complete; the version comparison above is the controlled same-prompt case, and the v1.0.33 regression shows on it too.
Workaround in place: a git worktree at v1.0.32, its own engine build, config
exepointing at it -> 20.65 tok/s restored. The source tree stays at v1.0.33 for the new features (STRATA_GLM_SEQS, fair slicing) - not yet tested.Measured: Maya-M @ 256K, dual 3080, same prompt x6 per version after cache warm, Windows 10. Not measured: Maya-L/Maya-S, Linux, one-GPU, the multi-conversation features, whether
STRATA_GLM_CPU_CALchanges the CPU-lane numbers, and the exact attribution of the CPU-lane delta.maya-report.txt
@mw00 commented on GitHub (Oct 11, 2026):
Thank you for the controlled A/B and the full report. The slowdown is the smaller tier, and v1.0.34 has the fix (#110).
1. The smaller tier. The plan was the same in both versions. With
STRATA_GLM_RAM_GB=44, the first GPU's share is 44 x 21/43 = 21.5 GB and the second gets the rest, 22.5 GB. What differs is what pinned:RAM_GB=47(then "did not upload")So this PC pins about 43 GB at most (Windows caps pinned memory). Two changes met near that cap:
In your v1.0.33 start, the second GPU pinned all its 22.5 GB, and the first was refused again and again while the second was still pinning, down to 13.1 GB. The small buffers #99 moved ahead of the tier are only ~70 MB a GPU, so they weren't it.
With the tiers right at the cap, the start then stopped at
the warmed expert tables did not upload: a copy from ordinary (pageable) memory needs pinned buffers of the driver's own, and there was no room left for them.What v1.0.34 changes:
On your settings I'd expect ~42-43 GB pinned again, as in your best v1.0.32 start, and
RAM_GB=47should start too, with the second GPU a little under its share. TheRAM tier ... GB pinnedlines and a decode line from v1.0.34 would confirm it.2. The CPU lane. It's real, but it isn't the slowdown. v1.0.33's timing keeps the fastest of five rounds, and your CUDA1 timed 0.438 ms an expert (v1.0.32: 0.649), so its plan sent more RAM-tier experts to the CPU: 38.5 a token against 32.2. The PCIe fetches fell by about as much, 19.9 a token against 31.9, so that work moved rather than grew. The time went to the disk: 36.0 ms a token of disk waits against 13.0, from the smaller tier.
We also tried the middle of the five rounds. On our 2x V100 split it planned one expert less on the CPU and decoded 5-10% slower, so the timing stays as it is. If a start's plan looks off on your box,
STRATA_GLM_CPU_CAL=<file>keeps a good start's timing for the later ones.On
STRATA_GLM_READ_WORKERS: a ~1% gain on both versions is within run-to-run noise here, so I'd keep the pool at 8 unless it shows more on other machines.@xiongqiyang commented on GitHub (Oct 11, 2026):
Thank you for the diagnosis and the fix. v1.0.34 (#110) verified on the same box — all three parts check out:
RAM_GB=44: the tiers are back to the v1.0.32 shape —
RAM_GB=47: starts now (it died at
the warmed expert tables did not uploadon v1.0.33), exactly as you predicted — the second GPU a little under its share:So 44 remains the better budget here (42.97 GB pinned beats 39.55). One nuance for the record: a later 44 start after several restarts pinned 21.48 + 16.97 — a 3D app (Rhino) was holding RAM, so the second GPU's share follows free RAM, as designed.
The timing explanation also matches: v1.0.33's CPU-lane numbers moved work off PCIe (38.5 experts on the CPU vs 32.2) rather than adding it — noted, and
STRATA_GLM_CPU_CALis good to know.I dropped the
STRATA_GLM_READ_WORKERSpatch per your advice (kept the pool at 8); the numbers were within noise, agreed.This box now runs Maya-S (96.5 GB quant) off an NVMe at 30 tok/s decode with the v1.0.34 engine — the regression is fully fixed for me. Thanks again for the fast turnaround!
@mw00 commented on GitHub (Oct 11, 2026):
Thank you for verifying it so quickly, and for the clear before/after: 42.97 GB pinned again at 44, and 47 starting. Closing as fixed in v1.0.34.