Instructions to use Kwai-Kolors/Kolors with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Kwai-Kolors/Kolors with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Kwai-Kolors/Kolors", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Support for Diffusers?
This doesn't work:
import bpy
import torch
from diffusers import StableDiffusionXLPipeline
pipeline = StableDiffusionXLPipeline.from_pretrained("Kwai-Kolors/Kolors", torch_dtype=torch.float16)
image = pipeline(prompt).images[0]
Ah, something is in the works:
https://github.com/huggingface/diffusers/issues/8801
This service isn't supported right now, is it?
Ah, something is in the works:
https://github.com/huggingface/diffusers/issues/8801This service isn't supported right now, is it?
Yes. The code for integrating with diffusers is currently under development.
Ah, something is in the works:
https://github.com/huggingface/diffusers/issues/8801This service isn't supported right now, is it?
Yes. The code for integrating with diffusers is currently under development.
I can't wait to deploy your advanced model.
加油老铁!