mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
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#232
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 @talisp on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/565
The same start-up probe problem as #548, on a very different box and more often: 4 of the 14 MiniMax starts that ran the probe today misread it, and the worst one held decode at ~6.5 tok/s for the whole session, against 14-17 on a good start. Our misreads go the other way from #548's, though. #548's read
+0.00 ms each more; ours read+1.27,+1.29,+1.36and once+11.67 ms each more, against 0.25-0.33 on good starts. So the consistency check suggested in #548 (four experts no slower than one) would catch that case but not ours. A bound in the other direction would be needed too, or several rounds with the best one kept.The case where it hurt most: a start while ~550 GB of downloads had filled the page cache. 2 GB of RAM was free,
kcompactd0sat at 100% of a core, and the previous engine (DeepSeek, 271 GB of host memory) had just exited. The probe read0.88 ms (+11.67 ms each more) ... 3 staged. For the whole session the CPU lane's 28 threads sat at ~30% each, waiting on staging copies, and the 3D tasks decoded at 6.3-6.7 tok/s. Other misreads came right after a previous maya-mm3 had exited, which fits #548's reading (the previous engine's pinned memory still being released). But good starts came right after an exit too, so it isn't only that.It also answers an open question in #548:
MM3_LANE_SPLIT=0isn't a safe workaround here. It cost ~11% of decode against a normal1 stagedstart (15.0 / 15.3 against 16.7 / 17.3 tok/s, two runs each). The split pays off when it reads right. What has worked for us is #548's workaround: restart until the start line says0or1 staged. The one restart we needed today read normal on the next try. The other two engines already re-plan in decode: maya-ds4 times the CPU lane again (the CPU lane timed again in decode), and GLM's fast path haslane_retime(re-plans when the CPU's cost drifts >15%). Doing the same in maya-mm3 would make a bad start harmless, whatever the PC is doing at that moment. The data follows.Machine and config
--chunk 8192(961 with the default chunk); the pinned pool holds every other expert (~167 GB pinned).calibrate_lane()between them; v1.1.33 only fixes the setup's pack step).reasoning_effort: low;timings;Every start we logged today
Times are local; "after" = what ran just before.
CPU lane vs staging (measured): ...)0.37 ms (+0.75 ms each more), 1.14 ms to copy--cpu-threads 29, DSpark on0.37 ms (+0.30), 2.35 ms to copy--cpu-threads 29, DSpark off0.42 ms (+0.26), 1.14--cpu-threads 27, DSpark on0.39 ms (+0.33), 1.14--cpu-threads 27, DSpark off, after #4's engine exited0.47 ms (+1.29), 1.16--cpu-threads 27 --chunk 8192, DSpark0.86 ms (+0.60), 1.14--chunk 16384(541 resident), after #6's engine exited0.38 ms (+1.27), 1.17kcompactd0100%)0.88 ms (+11.67), 1.150.37 ms (+0.29), 1.140.48 ms (+0.28), 1.14MM3_LANE_SPLIT=0--no-pin-pool0.50 ms (+1.36), 1.140.55 ms (+0.27), 1.140.72 ms (+0.30), 1.140.30 ms (+0.25), 0.59 ms to copyOn v1.1.29 we had seen one more:
0.44 ms (+1.27 ms each more),2 of 4 staged, with--cpu-threads 30. That session staged 17,133 experts, routing waits rose to 60.7 ms a token (MM3_TIMING=1), and decode ran at 9.6 tok/s against 12.8 at--cpu-threads 28.What the misreads have in common:
Session #8, the worst one
free -gshowed 503 total, 9 used, 2 free, 491 buff/cache, 322 available.kcompactd0was at 100% of a core.MemoryHighso their page cache can't fill the RAM, and dropped the cache of the model files not in use (posix_fadvise(DONTNEED)). Start #9 then read normally and decoded at 16.7 tok/s.MM3_LANE_SPLIT=0against a normal split (v1.1.32, same config, quick ×2)1 stagedMM3_LANE_SPLIT=0Related, in the sibling projects
PcieAuto). Refining in decode gave 42-44 against 35-37 tok/s on the same card.What we'd suggest, adding to #548's
lane_retimealready do. This would also cover a PC that gets busy after the start.Happy to test a branch on this box.
@talisp commented on GitHub (Oct 28, 2026):
Good news on this one: v1.1.34's decode re-timing (from #552) fixes it here. Tonight a start misread exactly as before, and the session recovered on its own within the first answers.
What happened:
--cpu-threads, which now means 30 threads here) read the probe inflated again, as in this issue:One thing we noticed: the first re-timing went to
0 staged, and the next ones settled on1 staged, the value good starts pick here. The re-plan moves between neighbours as the timings drift, which looks right.Setup:
--max-context 262144 --kv-streaming on --vision on --dspark on;From our side, this one can be closed as fixed by v1.1.34. Thanks!
@mw00 commented on GitHub (Oct 28, 2026):
Fixed in v1.1.34 by the decode re-timing (#552), and you confirmed it on your 48 GB GPU. Closing; thank you @talisp for the long chain of measurements that led there.