Instructions to use diffusers-modular/MiniMax-H3-LightVAE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers-modular/MiniMax-H3-LightVAE with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers-modular/MiniMax-H3-LightVAE", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
Download vae/config.json from diffusers-modular/MiniMax-H3-LightVAE: direct link, hf CLI and curl.
- Browser
- Download file 2.12 kB
-
https://huggingface.co/diffusers-modular/MiniMax-H3-LightVAE/resolve/main/vae/config.json
- Command line
-
hf download hf://diffusers-modular/MiniMax-H3-LightVAE/vae/config.json
-
curl -L -o config.json https://huggingface.co/diffusers-modular/MiniMax-H3-LightVAE/resolve/main/vae/config.json
2.12 kB
| { | |
| "_class_name": "AutoencoderKLMiniMaxH3LightVAE", | |
| "_diffusers_version": "0.40.0.dev0", | |
| "block_out_channels": [ | |
| 128, | |
| 256, | |
| 256, | |
| 512, | |
| 512, | |
| 1024 | |
| ], | |
| "clip_length": 17, | |
| "decoder_attention_head_dim": 64, | |
| "decoder_ffn_mult": 4, | |
| "decoder_norm_eps": 1e-05, | |
| "decoder_num_attention_heads": 32, | |
| "decoder_num_layers": 12, | |
| "decoder_num_register_tokens": 4, | |
| "decoder_rope_dim_ratio": 0.75, | |
| "decoder_rope_theta": 100.0, | |
| "in_channels": 3, | |
| "latent_channels": 24, | |
| "latents_mean": [ | |
| 0.858090341091156, | |
| -0.9606591463088989, | |
| 1.0661640167236328, | |
| -0.5090325474739075, | |
| -0.2727581858634949, | |
| -1.3675414323806763, | |
| -0.2553254961967468, | |
| -0.26907554268836975, | |
| -0.5376840829849243, | |
| -0.0464097298681736, | |
| 0.6657370328903198, | |
| 0.19690127670764923, | |
| -0.5460608005523682, | |
| -0.4035342037677765, | |
| -0.23683024942874908, | |
| 0.25928452610969543, | |
| -0.30133944749832153, | |
| 0.211341992020607, | |
| -1.1206848621368408, | |
| 0.3581933379173279, | |
| -0.04225143790245056, | |
| 0.2604829967021942, | |
| 0.22864092886447906, | |
| 0.7056031823158264 | |
| ], | |
| "latents_std": [ | |
| 1.2223774194717407, | |
| 1.2767263650894165, | |
| 1.6831774711608887, | |
| 1.7549455165863037, | |
| 1.5636216402053833, | |
| 2.194143533706665, | |
| 0.9653137922286987, | |
| 1.0569885969161987, | |
| 0.841948926448822, | |
| 0.7729952931404114, | |
| 1.8955937623977661, | |
| 0.946841835975647, | |
| 0.7996809482574463, | |
| 0.44988900423049927, | |
| 0.7197399735450745, | |
| 0.6936293244361877, | |
| 2.961095094680786, | |
| 2.7694199085235596, | |
| 3.0496184825897217, | |
| 2.1088054180145264, | |
| 3.276226282119751, | |
| 3.1627357006073, | |
| 2.2816812992095947, | |
| 2.6127843856811523 | |
| ], | |
| "layers_per_block": 2, | |
| "norm_eps": 1e-06, | |
| "norm_num_groups": 32, | |
| "out_channels": 3, | |
| "spatial_downsample_factors": [ | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 1, | |
| 1 | |
| ], | |
| "spatial_padding_mode": "reflect", | |
| "temporal_downsample_factors": [ | |
| 1, | |
| 2, | |
| 2, | |
| 1, | |
| 1, | |
| 1 | |
| ], | |
| "token_drop": 3, | |
| "auto_map": { | |
| "AutoModel": "modeling_minimax_h3_lightvae.AutoencoderKLMiniMaxH3LightVAE" | |
| } | |
| } |