Instructions to use lovartai/H3-VAE-MT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lovartai/H3-VAE-MT with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("lovartai/H3-VAE-MT", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("lovartai/H3-VAE-MT", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]H3-MT-VAE
H3-MT-VAE includes video and audio VAEs fine-tuned from MiniMax-H3 to mitigate audio-visual degradation during repeated encoding and decoding. To preserve compatibility with the original latent space and model interfaces, training is restricted to the decoder side, including its input projections; the encoders remain frozen. This release focuses on reconstruction stability over 5β10 rounds.
Qualitative Comparison
Expand an example to compare H3-VAE (original MiniMax-H3, top) and H3-MT-VAE (bottom) at rounds 1, 3, 5, and 10, with a shared Source column on the left. Play one preview at a time when listening.
MP4 previews include one final H.264/AAC export loss; this loss does not accumulate between rounds.
example1
| Model | Source | Round 1 | Round 3 | Round 5 | Round 10 |
|---|---|---|---|---|---|
| H3-VAE | |||||
| H3-MT-VAE |
example2
| Model | Source | Round 1 | Round 3 | Round 5 | Round 10 |
|---|---|---|---|---|---|
| H3-VAE | |||||
| H3-MT-VAE |
example3
| Model | Source | Round 1 | Round 3 | Round 5 | Round 10 |
|---|---|---|---|---|---|
| H3-VAE | |||||
| H3-MT-VAE |
example4
| Model | Source | Round 1 | Round 3 | Round 5 | Round 10 |
|---|---|---|---|---|---|
| H3-VAE | |||||
| H3-MT-VAE |
example5
| Model | Source | Round 1 | Round 3 | Round 5 | Round 10 |
|---|---|---|---|---|---|
| H3-VAE | |||||
| H3-MT-VAE |
Quantitative Comparison
Results are averaged over 200 source clips from MTVEdit-Bench-H3, with equal weight per clip. Metrics compare each reconstruction with the original input before MP4 export.
Each cell shows H3-VAE β H3-MT-VAE.
Evaluation setup
Each clip undergoes 10 consecutive encoding/decoding rounds using the posterior mode. Encoder latents pass directly to the decoder; reconstructed video and audio tensors feed the next round's encoders entirely in memory, without intermediate MP4 encoding/decoding.
PSNR is computed on decoded floating-point RGB after denormalization and clipping to [0, 1], without output uint8 quantization or MP4 export loss. All metrics are computed before export.
Video metrics use all 124 RGB frames: PSNR, SSIM (11 Γ 11 Gaussian window, Ο = 1.5), and AlexNet LPIPS. Audio metrics use 32 kHz stereo waveforms: SNR, per-channel zero-mean SI-SDR, MR-STFT over five FFT scales, and 128-band log-Mel L1.
Video
| Round | PSNR (dB) β | SSIM β | LPIPS β |
|---|---|---|---|
| @1 | 37.40 β 38.64 | 0.9562 β 0.9657 | 0.0201 β 0.0191 |
| @3 | 32.46 β 35.87 | 0.9089 β 0.9527 | 0.0548 β 0.0330 |
| @5 | 29.20 β 33.89 | 0.8569 β 0.9399 | 0.0992 β 0.0443 |
| @10 | 24.28 β 30.64 | 0.7414 β 0.9095 | 0.2232 β 0.0725 |
Audio
| Round | SNR (dB) β | SI-SDR (dB) β | MR-STFT β | Mel L1 β |
|---|---|---|---|---|
| @1 | 14.06 β 11.10 | 13.84 β 9.97 | 0.8449 β 1.1435 | 0.3043 β 0.3766 |
| @3 | 7.87 β 7.98 | 7.08 β 6.13 | 1.1711 β 1.2463 | 0.5134 β 0.4551 |
| @5 | 4.79 β 6.20 | 3.39 β 3.94 | 1.4652 β 1.3809 | 0.7096 β 0.5144 |
| @10 | 0.54 β 3.67 | -2.33 β 0.49 | 2.2077 β 1.6564 | 1.1992 β 0.6247 |
Video metrics improve at all reported rounds. Audio reconstruction is weaker at round 1, but improves across all reported audio metrics at rounds 5 and 10.
Quick Start
import torch
from diffusers import AutoencoderKLMiniMaxH3, AutoencoderKLMiniMaxH3Audio
model_path = "lovartai/H3-VAE-MT"
video_vae = AutoencoderKLMiniMaxH3.from_pretrained(
model_path, subfolder="vae", torch_dtype=torch.float32,
).eval()
audio_vae = AutoencoderKLMiniMaxH3Audio.from_pretrained(
model_path, subfolder="audio_vae", torch_dtype=torch.float32,
).eval()
For the original VAEs, use model_path = "MiniMaxAI/MiniMax-H3". Keep H3 preprocessing and latent normalization unchanged.
Limitations
- Cumulative degradation: training focuses on 5β10 encoding/decoding rounds. Compression losses still accumulate, and performance beyond this range has not been established.
- Inherited limitations: small faces and text remain challenging for the video VAE, while the audio VAE still loses high-frequency content.
License
These VAE weights are Model Derivatives of MiniMax H3 and are distributed under the MiniMax H3 Community License Agreement.
Citation
@misc{h3mtvae2026,
title = {{H3-MT-VAE}: Fine-Tuned Video and Audio VAEs for Multi-Round Reconstruction},
author = {{Lovart Research}},
year = {2026},
url = {https://huggingface.co/lovartai/H3-VAE-MT},
}
- Downloads last month
- -
Model tree for lovartai/H3-VAE-MT
Base model
MiniMaxAI/MiniMax-H3