MiniMax H3 Mem Eff Sage Attention Patch(MiniMaxH3MemoryEfficientSageAttentionPatch)
The MiniMax H3 Mem Eff Sage Attention Patch node applies a memory-efficient SageAttention patch to the self-attention layers of a MiniMax H3 model.
Mini Max H3 Memory Efficient Sage Attention Patch
Description
The MiniMax H3 Mem Eff Sage Attention Patch node applies a memory-efficient SageAttention patch to the self-attention layers of a MiniMax H3 model. Its purpose is to reduce peak VRAM usage during sampling by routing the model's self-attention through a custom SageAttention implementation.
This node is marked EXPERIMENTAL. Its behavior depends on the installed SageAttention build, and it requires the latest version of SageAttention to be available in your environment.
Note that this patch overrides the attention mode of the model it is applied to, it does not stack on top of, or blend with, an attention mode that was previously selected elsewhere. Whatever attention configuration the model carried before this node will be replaced for the patched self-attention path.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
model | MODEL | Yes | The MiniMax H3 model to patch. The node returns a modified copy of this model with the memory-efficient SageAttention self-attention applied. |
This node has no widgets or configurable parameters, it is a straightforward on/off patch. Whether the patch is active is determined solely by whether the node is present in the graph.
Outputs
| Name | Type | Description |
|---|---|---|
MODEL | MODEL | The patched model, with MiniMax H3 self-attention overridden to use the memory-efficient SageAttention implementation. |
Usage Notes
- Insert this node between the model loader (or any upstream model patch) and the sampler, and connect its
MODELoutput onward in place of the original model. - Because the patch overrides the attention mode, place it after any node that also sets an attention mode if you want this patch to take effect.
- Use this node when MiniMax H3 sampling runs out of VRAM or sits close to the memory limit; the intent is to lower peak VRAM usage rather than to change model outputs.
- Ensure you have the latest SageAttention version installed before relying on this node: older builds may not contain the required kernels.
- Treat results as experimental: verify output quality and stability on your setup before building a workflow around it.
Comments
Sign in with GitHub to join the discussion.