mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #277] --calibrate removes the config's MAYA_GLM_PCIE_SHARE / READ_CHUNKS (an earlier calibration's, kept by hand), and --bench is 12-16% slower without them (twice, v1.1.7 and v1.1.16) #105
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#105
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 @klvnblst on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/277
Machine: RTX 5090 Laptop 24 GB, Core Ultra 9 275HX (8P + 16E, AVX2, no AVX-512), 64 GB RAM, Windows 11, driver 617.42. Maya-S24, 128K context, one GPU, part of the model read from the NVMe SSD. Config env:
MAYA_GLM_KV_INT8=1,MAYA_GLM_DISK_READERS=8,MAYA_GLM_DISK_SKIP_W=0.12,MAYA_GLM_PCIE_SHARE=0.10,MAYA_GLM_READ_CHUNKS=4,MAYA_GLM_VRAM_EVICT=lru.What happens:
--calibrate --no-startends with "the engine's own settings are already the fastest here" andapply()removesPCIE_SHARE=0.10andREAD_CHUNKS=4from the config and fromcalibration.json.--bench(Maya stopped, same config otherwise) before and after:--calibrateremoved them--calibrateremoved themAll three bench questions are slower without them, both times. Putting the two values back restores the speed.
The calibration's own sweep (v1.1.16):
The single sweep points already show 4 pieces at +8% over the engine's 8, but the interleaved confirmation did not clear
MIN_GAIN(3%), so neither value was kept.What I think causes it (from reading
tools/calibrate_glm.py, not tested):run()strips the calibration's keys from the env before measuring, andapply()removes any key the calibration did not choose. A value the user measured and set is dropped unless it beats the default by 3% inside the calibration, even when the full--benchsays it is the faster one.--bench.strata_tune, and the VRAM/RAM tiers keep adapting across arms (LRU promotions). That may pull interleaved arms toward each other, while a fresh start with each setting (what--benchdoes) shows the gap.Possible fixes, any one would have kept the faster settings here:
MIN_GAIN(the rule in the other direction).Happy to run a patched
calibrate_glm.pyon this laptop and report back.@mw00 commented on GitHub (Oct 20, 2026):
Fixed in v1.1.18:
--calibratenow treats the config's own values as the ones to beat - it compares them, together, with what its sweeps found, and keeps them unless the new choice is more than 3% faster. Thanks for the detailed report and the analysis!