Instructions to use SurjoLabs/FLUX.2-small-decoder-vae with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SurjoLabs/FLUX.2-small-decoder-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("SurjoLabs/FLUX.2-small-decoder-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 vae/diffusion_pytorch_model.safetensors from SurjoLabs/FLUX.2-small-decoder-vae: direct link, hf CLI and curl.
- Browser
- Download file 250 MB
-
https://huggingface.co/SurjoLabs/FLUX.2-small-decoder-vae/resolve/main/vae/diffusion_pytorch_model.safetensors
- Command line
-
hf download hf://SurjoLabs/FLUX.2-small-decoder-vae/vae/diffusion_pytorch_model.safetensors
-
curl -L -o diffusion_pytorch_model.safetensors https://huggingface.co/SurjoLabs/FLUX.2-small-decoder-vae/resolve/main/vae/diffusion_pytorch_model.safetensors
250 MB
- Xet hash:
- 5bee0d8433d13181386469bd00b9a488ae3d9dd36c5bd55e177b021559bc8f6f
- Size of remote file:
- 250 MB
- SHA256:
- d8d52ba036475f5fb07c8b435e176d3d97ebfa82f0d1a1c317f9cc1e25bd013b
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.