mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #228] GLM decode: leave out light misses by weight (STRATA_GLM_MISS_SKIP_W / _FROM, off by default, changes the answers) #408
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#408
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?
Original Pull Request: https://github.com/mw00/project-maya/pull/228
State: closed
Merged: Yes
What
TRUNK_KEEPleaves out the experts missing from VRAM from a route rank on. This does the same by weight: a routed expert that is not in VRAM and carries less thanSTRATA_GLM_MISS_SKIP_Wof the route's weights is left out (no PCIe fetch, no CPU-lane work), on layers fromSTRATA_GLM_MISS_SKIP_FROMon. It is the ruleSTRATA_GLM_DISK_SKIP_Walready applies to disk-only experts, applied to RAM-tier misses.A token routed to one or two strong experts drops more of its light misses than one spread evenly. Off by default (0): nothing changes.
moe_route_kernel: the skip test, and the CPU lane's RAM-tier set leaves those experts out.strata_tune({"miss_skip_w": 0.14, "miss_skip_from": 23}, 0 = off for it) - server, generate loop,Glm5Model::set_miss_skip- so a model / PC can be swept without a restart, aspcie_frac. A server test covers the keys.docs/SETTINGS.md.Quality and speed
RTX 3090 alone, Ryzen 7 9700X, DDR5-3600, Windows 11. KL to the untrimmed model is from
STRATA_GLM_SCORE(1,746 tokens of English docs, Japanese, Python, a word problem,STRATA_GLM_PCIE_SHAREfixed so the runs are deterministic; the same run twice gives KL 0). Speed is the full benchmark suite (chat / agent decode tok/s, medians)....55555554444...)...6666666644444443333...), same KL as 0.16Prompt speed is unchanged. On every layer the trade is poor: GLM-5.3's early layers notice a left-out expert far more than its late ones (0.04 on all layers: KL 0.041 for about 1% speed). Hence the first-layer setting.
Tested here / not tested
check_hip_compatpasses); the server test added passes, and the other Python tests show only the Windows-only errors unmodifiedmainshows here.