Instructions to use codemichaeld/minimax_vae with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use codemichaeld/minimax_vae with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("codemichaeld/minimax_vae", 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
|
Download README.md from codemichaeld/minimax_vae: direct link, hf CLI and curl.
- Browser
- Download file 890 Bytes
-
https://huggingface.co/codemichaeld/minimax_vae/resolve/main/README.md
- Command line
-
hf download hf://codemichaeld/minimax_vae/README.md
-
curl -L -o README.md https://huggingface.co/codemichaeld/minimax_vae/resolve/main/README.md
890 Bytes
| library_name: diffusers | |
| tags: | |
| - fp8 | |
| - safetensors | |
| - converted-by-gradio | |
| # FP8 Model Conversion | |
| - **Source**: `https://huggingface.co/Mamad8/MiniMax-H3-Image-VAE` | |
| - **Original File(s)**: `minimax_h3_t1_image_vae_step1597.safetensors` | |
| - **Original Format**: `safetensors` | |
| - **FP8 Format**: `E5M2` | |
| - **FP8 File**: `minimax_h3_t1_image_vae_step1597-fp8-e5m2.safetensors` | |
| ## Usage | |
| ```python | |
| from safetensors.torch import load_file | |
| import torch | |
| # Load FP8 model | |
| fp8_state = load_file("minimax_h3_t1_image_vae_step1597-fp8-e5m2.safetensors") | |
| # Convert tensors back to float32 for computation (auto-converted by PyTorch) | |
| model.load_state_dict(fp8_state) | |
| ``` | |
| > **Note**: FP8 tensors are automatically converted to float32 when loaded in PyTorch. | |
| > Requires PyTorch ≥ 2.1 for FP8 support. | |
| ## Statistics | |
| - **Total tensors**: 562 | |
| - **Converted to FP8**: 562 | |
| - **Skipped (non-float)**: 0 | |