Instructions to use ostris/primal_vae with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ostris/primal_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("ostris/primal_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 __pycache__/modeling_primal_vae.cpython-312.pyc from ostris/primal_vae: direct link, hf CLI and curl.
- Browser
- Download file 18.9 kB
-
https://huggingface.co/ostris/primal_vae/resolve/main/__pycache__/modeling_primal_vae.cpython-312.pyc
- Command line
-
hf download hf://ostris/primal_vae/__pycache__/modeling_primal_vae.cpython-312.pyc
-
curl -L -o modeling_primal_vae.cpython-312.pyc https://huggingface.co/ostris/primal_vae/resolve/main/__pycache__/modeling_primal_vae.cpython-312.pyc
18.9 kB
This file contains binary data. It cannot be displayed, but you can still download it.