Sponsored by
Designkit Free Background Remover
-Designkit offers free AI background removal for up to 100 images daily, with batch processing, custom backgrounds, and resizing.
A fast video decoder for
MiniMax-H3
. It replaces the
36-layer H3 VAE decoder with a 24-layer noncausal decoder (1.62B parameters) distilled from it:
whole frames with windowed attention instead of spatial tiles, and each native 5-latent block
decoded bidirectionally. It takes the same normalized latents and returns the same frames as
the H3 VAE decoder. The audio decoder is unchanged.
Against the H3 VAE decoder, PSNR is 45.4 dB on held-out latents (720p to 2K) and 38.2 dB on a
generated 768p clip. Timings on GB200 use a captured CUDA graph; the RTX 5090 timing is eager,
as Sol-H3 runs it.
Usage
Requirements: PyTorch with CUDA and
Diffusers
with
MiniMax-H3 support. The fast engine (default) also needs Triton,
FlashAttention-4
(
flash_attn.cute
) and
QuACK
;
engine="ref"
runs in plain PyTorch without them.
Tested on RTX 5090 with PyTorch 2.12 (CUDA 13), Triton 3.7, Diffusers 0.40, FlashAttention-4
4.0.0b19 and QuACK 0.6.3.
import sys
from huggingface_hub import hf_hub_download, snapshot_download
repo = snapshot_download("Efficient-Large-Model/Sol-H3-VAE")
sys.path.insert(0, f"{repo}/code")
from sol_h3_vae import SolH3VAEDecoder
vae_config = hf_hub_download("MiniMaxAI/MiniMax-H3", "vae/config.json")
decoder = SolH3VAEDecoder(vae_config, f"{repo}/sol_h3_vae.safetensors")
# z: normalized H3 video latents, (1, T, 24, H/16, W/16); T = 0 starts a native 5-latent block
pixels = decoder.decode(z) # (1, 3, F, H, W), the H3 VAE decoder's normalized pixel space
rgb = decoder.decode_rgb_uint8(z) # (F, H, W, 3) uint8 on the GPU
The decoder needs only the H3 VAE
config.json
, not the H3 VAE weights. The first call for each
latent shape compiles kernels and captures a CUDA graph (about 25 s on RTX 5090); later calls
reuse it.
On SM120 GPUs (RTX 5090, DGX Spark), FlashAttention-4 4.0.0b19 to 4.0.0b22 has a varlen bug that
makes the fast engine hit an illegal memory access. Apply the guard from
Sol-H3 in ComfyUI
before the first decode, or use
engine="ref"
.
Limitations
Noncausal: it decodes a whole clip at once, so it cannot stream latent by latent.
Memory grows with clip length: about 24 GiB at 720p and 48 GiB at 2K for a 5-second clip
with the CUDA graph. Sol-H3 runs the eager engine and moves the weights to host RAM between
requests to fit a 32 GB card.
It is distilled, so it is close to the H3 VAE decoder but not identical.
License
The code is released under Apache-2.0. The weights are distilled from the MiniMax-H3 VAE and are
subject to the
MiniMax-H3 license
.
Runs of Efficient-Large-Model Sol-H3-VAE on huggingface.co
5.7K
Total runs
240
24-hour runs
1.1K
3-day runs
5.1K
7-day runs
5.1K
30-day runs
More Information About Sol-H3-VAE huggingface.co Model
Sol-H3-VAE huggingface.co
Sol-H3-VAE huggingface.co is an AI model on huggingface.co that provides Sol-H3-VAE's model effect (), which can be used instantly with this Efficient-Large-Model Sol-H3-VAE model. huggingface.co supports a free trial of the Sol-H3-VAE model, and also provides paid use of the Sol-H3-VAE. Support call Sol-H3-VAE model through api, including Node.js, Python, http.
Sol-H3-VAE huggingface.co is an online trial and call api platform, which integrates Sol-H3-VAE's modeling effects, including api services, and provides a free online trial of Sol-H3-VAE, you can try Sol-H3-VAE online for free by clicking the link below.
Efficient-Large-Model Sol-H3-VAE online free url in huggingface.co:
Sol-H3-VAE is an open source model from GitHub that offers a free installation service, and any user can find Sol-H3-VAE on GitHub to install. At the same time, huggingface.co provides the effect of Sol-H3-VAE install, users can directly use Sol-H3-VAE installed effect in huggingface.co for debugging and trial. It also supports api for free installation.