Instructions to use lovartai/MTVEdit-H3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lovartai/MTVEdit-H3 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MiniMaxAI/MiniMax-H3", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("lovartai/MTVEdit-H3") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
MTVEdit-H3
Project Page | Paper (Coming Soon)
MTVEdit-H3 provides a LoRA adapter for multi-round video editing with MiniMax-H3. It is trained to reduce visual and audio quality degradation as successive editing instructions are applied to a video.
Files
| File | Base model | Purpose |
|---|---|---|
mtvedit_h3_ref2va_v1.0.safetensors |
MiniMax-H3 | Default adapter for reducing quality degradation across edits. |
Comparison
Compare H3 (top) and H3 + MTVEdit-H3 (bottom) over five editing rounds, with the source video on the left and each instruction above its round.
Evaluation setup
Both variants use the original H3 video and audio VAEs, 20-step Euler sampling, and identical prompts and seeds, without a few-step distillation adapter. Audio and video latents pass directly between editing rounds, avoiding repeated VAE encoding/decoding or MP4 round trips. The Qwen-VL conditioning branch still reads decoded uint8 frames, but these are not re-encoded by the VAEs. MP4 previews include one final uint8 quantization and H.264/AAC export loss; exported MP4s are not fed into subsequent rounds.
example1
| Model | Source | Round 1 Change the woman's blue floral dress to a red floral dress. | Round 2 Change the man's dark shirt to a white shirt. | Round 3 Add a straw hat on the woman's head. | Round 4 Remove the straw hat from the woman's head. | Round 5 Put black sunglasses on the woman. |
|---|---|---|---|---|---|---|
| H3 | ||||||
| H3 + MTVEdit-H3 |
example2
| Model | Source | Round 1 Change the white coffee cup to red. | Round 2 Replace the red coffee cup with a clear glass mug. | Round 3 Change the clear glass mug back to the original white coffee cup. | Round 4 Change the white coffee cup to matte black. | Round 5 Change the matte black coffee cup to red. |
|---|---|---|---|---|---|---|
| H3 | ||||||
| H3 + MTVEdit-H3 |
example3
| Model | Source | Round 1 Change the blue travel mug to coral pink. | Round 2 Change the coral pink travel mug to brushed stainless steel. | Round 3 Add a black rubber grip sleeve around the brushed stainless steel travel mug. | Round 4 Change the black rubber grip sleeve to mint green. | Round 5 Add a white reusable straw to the mug with the mint green sleeve. |
|---|---|---|---|---|---|---|
| H3 | ||||||
| H3 + MTVEdit-H3 |
Quick Start
Load the adapter into the original H3 ref2va workflow using a Diffusers build with MiniMax-H3 LoRA support:
import torch
from diffusers import MiniMaxH3ModularPipeline
pipe = MiniMaxH3ModularPipeline.from_pretrained("MiniMaxAI/MiniMax-H3")
pipe.load_components(workflow="ref2va", dtype=torch.bfloat16)
pipe.load_lora_weights(
"lovartai/MTVEdit-H3",
weight_name="mtvedit_h3_ref2va_v1.0.safetensors",
adapter_name="mtvedit",
)
pipe.transformer_ref.set_adapters(["mtvedit"], [1.0])
Using with H3-MT-VAE
In workflows that decode and re-encode video between editing rounds, repeated VAE reconstruction introduces additional visual and audio degradation. We recommend pairing MTVEdit-H3 with H3-MT-VAE to mitigate this additional loss.
from diffusers import AutoencoderKLMiniMaxH3, AutoencoderKLMiniMaxH3Audio
vae_path = "lovartai/H3-VAE-MT"
video_vae = AutoencoderKLMiniMaxH3.from_pretrained(
vae_path, subfolder="vae", torch_dtype=torch.float32,
).eval()
audio_vae = AutoencoderKLMiniMaxH3Audio.from_pretrained(
vae_path, subfolder="audio_vae", torch_dtype=torch.float32,
).eval()
pipe.update_components(vae=video_vae, audio_vae=audio_vae)
Compatibility with Few-Step Distillation
MTVEdit-H3 can also be combined with few-step distilled models. For example, use the Pika-H3-Flex six-step adapter alongside MTVEdit-H3. Remember to use Pika's scheduler and sampling settings.
# Continue from Quick Start, with the MTVEdit-H3 adapter already loaded.
pipe.load_lora_weights(
"Pika-Labs/Pika-H3-Flex",
weight_name="ref2va/adapter.safetensors",
adapter_name="pika",
)
pipe.transformer_ref.set_adapters(["pika", "mtvedit"], [1.0, 1.0])
Limitations
- Editing scope: currently validated only for instruction-based editing. Initial results suggest benefits for reference-based editing, but this setting has not been systematically evaluated.
- Editing capability: this LoRA focuses on mitigating visual and audio quality degradation across successive edits; it does not enhance the base model's editing capabilities.
- Cumulative errors: this LoRA targets degradation from repeated DiT editing, not losses introduced by VAE reconstruction or media compression. Errors can still accumulate across rounds.
Resources
- MTVEdit-Bench-H3: a benchmark for multi-round, instruction-based video editing.
- H3-MT-VAE: video and audio VAEs fine-tuned to mitigate degradation from repeated encoding and decoding.
License
These adapters are Model Derivatives of MiniMax H3 and are distributed under the MiniMax H3 Community License Agreement.
Citation
@misc{mtvedith32026,
title = {{MTVEdit-H3}: Towards Stable Multi-Turn Video Editing},
author = {{Lovart Research}},
year = {2026},
url = {https://huggingface.co/lovartai/MTVEdit-H3},
}
- Downloads last month
- -
Model tree for lovartai/MTVEdit-H3
Base model
MiniMaxAI/MiniMax-H3