mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[PR #15] [CLOSED] Opt-in RAM shadows for the expert tiers (STRATA_GLM_RAM_SHADOW): fewer SSD rereads with a large RAM tier #279
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#279
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/15
Author: @boxwrench
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:amd/glm-ram-shadow📝 Commits (2)
8ae9940Keep promoted experts' RAM copies as shadows (STRATA_GLM_RAM_SHADOW)fb867eeDocument STRATA_GLM_RAM_SHADOW in the AMD notes📊 Changes
3 files changed (+69 additions, -8 deletions)
View changed files
📝
docs/AMD_MAYA.md(+14 -0)📝
src/core/glm_fast_path.cu(+52 -8)📝
src/core/glm_fast_state.hpp(+3 -0)📄 Description
An opt-in expert tier mode,
STRATA_GLM_RAM_SHADOW=1, for machines whose RAM tier holds most of the model. Off by default: with it unset every path takes its original branch. Tracking: #6.The problem
With exclusive tiers an expert is in VRAM or in the RAM tier, never both. Promoting it frees its RAM copy, so when it later leaves VRAM it is copied back (device-to-host) or, if the RAM tier had no room, reread from the SSD. With a large RAM tier and a hot set that moves,
STRATA_GLM_TIER_DIAGshowed the boundary's clean-up freeing thousands of duplicate RAM copies and the decode rereading several experts a token from disk.What changes (
src/core/glm_fast_path.cu,glm_fast_state.hpp)Measured (v1.0.11, Maya-S, 8K context,
STRATA_GLM_RAM_GB=90, greedy, 256-token answers)Prompt speed is unchanged. On this branch's own build: 7/7 smoke checks on one RX 7900 XT (18.8 tok/s) and on two GPUs (36.2 tok/s); earlier, 20 back-to-back requests on one card and 39 on two with no error.
Not tested: CUDA (no NVIDIA toolchain here). The change is in shared engine code but every new branch is behind
F->ram_shadow, which is false unless the variable is set.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.