Instructions to use rhymes-ai/Allegro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use rhymes-ai/Allegro with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("rhymes-ai/Allegro", 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 scheduler/scheduler_config.json from rhymes-ai/Allegro: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/rhymes-ai/Allegro/resolve/main/scheduler/scheduler_config.json
- Command line
-
hf download hf://rhymes-ai/Allegro/scheduler/scheduler_config.json
-
curl -L -o scheduler_config.json https://huggingface.co/rhymes-ai/Allegro/resolve/main/scheduler/scheduler_config.json
340 Bytes
| { | |
| "_class_name": "EulerAncestralDiscreteScheduler", | |
| "_diffusers_version": "0.28.0", | |
| "beta_end": 0.02, | |
| "beta_schedule": "linear", | |
| "beta_start": 0.0001, | |
| "num_train_timesteps": 1000, | |
| "prediction_type": "epsilon", | |
| "rescale_betas_zero_snr": false, | |
| "steps_offset": 0, | |
| "timestep_spacing": "linspace", | |
| "trained_betas": null | |
| } | |