A smarter, dynamic, quant and model agnostic Memory Manager.#948
Open
Zironic wants to merge 20 commits into
Open
A smarter, dynamic, quant and model agnostic Memory Manager.#948Zironic wants to merge 20 commits into
Zironic wants to merge 20 commits into
Conversation
Zironic
force-pushed
the
upstream/mm-arena-offload
branch
3 times, most recently
from
July 15, 2026 20:14
9200c9f to
aa99e18
Compare
added 15 commits
July 16, 2026 14:07
Zironic
force-pushed
the
upstream/mm-arena-offload
branch
from
July 16, 2026 12:32
aa99e18 to
e170b74
Compare
Zironic
force-pushed
the
upstream/mm-arena-offload
branch
from
July 16, 2026 12:44
e170b74 to
5ad04ab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Core features of the Arena Memory Manager.
Noted incompatibility: Current iteration of Arena Memory Manager does not support live Text Encoder and requires cache_text_embeddings: true and unload_text_encoder: true. If requested support could be added but I personally felt if you're already offloading, you shouldn't make your life harder by having two models in memory at the same time.
*Provided the working set fits. Arena Memory Manager is smart memory management, not magic.
The Arena Memory Manager should teoretically support any model and any quant that supports the capability contract. It has been tested to work with:
Krea2
Z-Image
Anima
TorchAO FP8
Quanto qfloat8
OstrisLinear Convrot8
OstrisLinear Convrotint4
For a model to work, it needs discoverable blocks, frozen weights, model-owned checkpointing and compatible block inputs/outputs. Quantizers need to declare their physical storage through the storage-binding interface.
Example config:
Force low vram:
The Arena Memory Manager was written for torchao==0.17.0 and updates the requirement to that. It will still run with 0.10.0 but with native TorchAO FP8 forward/backward support disabled.