Instructions to use DiffusersVersionsOfModels/kwai-kolors-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use DiffusersVersionsOfModels/kwai-kolors-1.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("DiffusersVersionsOfModels/kwai-kolors-1.0", 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 model_index.json from DiffusersVersionsOfModels/kwai-kolors-1.0: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/DiffusersVersionsOfModels/kwai-kolors-1.0/resolve/main/model_index.json
- Command line
-
hf download hf://DiffusersVersionsOfModels/kwai-kolors-1.0/model_index.json
-
curl -L -o model_index.json https://huggingface.co/DiffusersVersionsOfModels/kwai-kolors-1.0/resolve/main/model_index.json
416 Bytes
| { | |
| "_class_name": "KolorsPipeline", | |
| "_diffusers_version": "0.30.0.dev0", | |
| "force_zeros_for_empty_prompt": false, | |
| "scheduler": [ | |
| "diffusers", | |
| "EulerDiscreteScheduler" | |
| ], | |
| "text_encoder": [ | |
| "kolors", | |
| "ChatGLMModel" | |
| ], | |
| "tokenizer": [ | |
| "kolors", | |
| "ChatGLMTokenizer" | |
| ], | |
| "unet": [ | |
| "diffusers", | |
| "UNet2DConditionModel" | |
| ], | |
| "vae": [ | |
| "diffusers", | |
| "AutoencoderKL" | |
| ] | |
| } |