mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4945] [Engine] Dynamically unload and reload MoE experts between VRAM and RAM #2277
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2277
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 @RP-SGorodenski on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4945
Related discussion
This is related to the feature idea mentioned in [#20](https://github.com/Niko1221/Strata/issues/20), but my use case is slightly different.
Problem
I have a system with a relatively large amount of system RAM but limited VRAM (RTX 5070 with 12 GB VRAM and 128 GB DDR4 RAM).
Currently, when I need to free VRAM for another model or application, I may have to unload the entire model. This is inconvenient when I want to keep a large MoE model available while occasionally using an AI agent or another model.
Proposed feature
Would it be possible to implement a mechanism for dynamically unloading and reloading individual MoE experts between VRAM and system RAM, without unloading the entire model?
Ideally, this would allow users to:
Use case
For example, I could keep a large MoE model loaded in system RAM while using only a subset of its experts in VRAM for regular inference.
When I need an AI agent, I could press a button to load the experts required for the agent into VRAM, use the agent, and then unload those experts again.
This would allow me to use different expert configurations on a system with limited VRAM while taking advantage of the available system RAM.
Question
Would it be possible to implement this functionality in Strata?
I understand that the feasibility and performance may depend on the model architecture and inference backend. I would appreciate feedback on whether this approach is technically feasible and what implementation limitations it might have.
Strata 0.2.7 · Engine 0.1.55
@github-actions[bot] commented on GitHub (Nov 1, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
strata --version).Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@gingertonik commented on GitHub (Nov 1, 2026):
this would also be useful to me, as i run into low vram issues when attempting to do basic desktop things like take a screenshot or move windows around. i run strata on my main gaming pc that has a 4080 and 96gb of ddr4, so freeing my vram but not my system ram would be convenient.
@github-actions[bot] commented on GitHub (Nov 1, 2026):
Thanks, this follows the format now.
@michauMiau commented on GitHub (Nov 2, 2026):
Also for this, and clear settings for allocating free VRAM in the TUI would also be helpful