mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[PR #101] [MERGED] GLM fast path: a complete expert pool where VRAM holds every expert (from the Gorgon Halo work; needs a test on such a machine) #338
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#338
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?
📋 Pull Request Information
Original PR: https://github.com/mw00/project-maya/pull/101
Author: @mw00
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @mw00
Base:
main← Head:complete-pool📝 Commits (7)
2ef8fc8Fixes from the issues: pinned buffers before the RAM tier (#67), the CPU lane's timing by its median (#56), ZFS's ARC counted as free RAM (#89), the prefetch's settings said at start (#6)38e7c14Calibration: the disk reads' size (STRATA_GLM_READ_CHUNKS) measured too when part of the model is on the SSD (#67)992da2aCPU lane timing: the fastest of five spread rounds' medians (a burst of other work covered a whole round's runs)15d2b09GLM fast path: a complete expert pool where the budget holds every expert (from the Gorgon Halo work, without the MTP rework's parts)8c7511aMerge remote-tracking branch 'origin/main' into issue-fixes-2cab2981Merge remote-tracking branch 'origin/issue-fixes-2' into complete-pool4cf65fdMerge remote-tracking branch 'origin/main' into complete-pool📊 Changes
7 files changed (+198 additions, -19 deletions)
View changed files
📝
README.md(+3 -0)📝
src/core/glm_fast_path.cu(+61 -16)📝
src/core/glm_fast_state.hpp(+69 -0)📝
src/core/glm_layer_graphs.hpp(+3 -1)📝
src/core/glm_memory.hpp(+17 -1)📝
src/core/glm_prefill.cu(+28 -1)📝
tests/glm_memory_test.cpp(+17 -0)📄 Description
The Gorgon Halo work's complete expert pool, on its own, without the MTP rework (#76) it was built on. Stacked on #99.
Waiting for a test on a machine whose VRAM holds every expert. Not to merge before that. None of our machines is one.
What it does
Where a GPU's expert budget holds every expert, the 3 spares a layer and the prompt path's borrowed tail, each layer gets exactly that many slots (
STRATA_GLM_COMPLETE_POOL, on). That happens on an AMD APU's carve-out on Windows (the 8065S's 160 GB), on a big card, or on a split over many GPUs. Then:STRATA_GLM_RESIDENT_SKIP, on). They would find nothing to do: ~2.5 ms of a 54 ms token on the 8065S.Linux APUs keep their unified-memory policy.
STRATA_GLM_COMPLETE_POOL=0gives the old pool. A Windows + AMD submit switch (STRATA_GLM_FLUSH) comes along, off by default.Measured
--prefill auto's 8192-token chunks borrowed ~2 GB of each card's pool and prefill halved against--prefill 2048. This mode should give that back. @0xPreDa, could you try this branch with--prefill autoagainst v1.0.32?Checked
glm_memory_testcovers the new sizing.fast_moe_rows) stay with #96.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.