Instructions to use shuttleai/shuttle-3.1-aesthetic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use shuttleai/shuttle-3.1-aesthetic with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("shuttleai/shuttle-3.1-aesthetic", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
fp8?
#2
by Joviex - opened
Making sure the links on the Model Card are supposed to work?
https://huggingface.co/shuttleai/shuttle-3.1-aesthetic-fp8
Doesnt point anywhere?
Cheers
Hello, we have not fully released the model yet, we are working on the fp8 and the gguf version! π
fp8 has been added, gguf will be soon
Hello,
Incredible work! Thanks!
How to use the fp8 with Diffusers? You have a working example?
I am also looking for FP8 with Diffusers demo. Not interested in Comfyi.
Hello @edtjulien @fullsoftwares
To run fp8 with diffusers, I usually just do
from optimum.quanto import freeze, quantize, qint8, qfloat8, qint4
quantize(
pipe.transformer,
# weights=qfloat8,
weights=qint8,
exclude=[
"*.norm", "*.norm1", "*.norm2", "*.norm2_context",
"proj_out", "x_embedder", "norm_out", "context_embedder",
],
)
freeze(pipe.transformer)
# pipe.enable_model_cpu_offload()
That's work like a charm. Thanks!
and with comfy, I just need to load ANY fp8 workflow and choose 4 steps in the sampler? That's all?