Instructions to use hf-internal-testing/tiny-krea2-modular-pipe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hf-internal-testing/tiny-krea2-modular-pipe with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hf-internal-testing/tiny-krea2-modular-pipe", torch_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
Point component specs at this repo
#1
by YiYiXu HF Staff - opened
The component pretrained_model_name_or_path entries still point at https://huggingface.co/CedricPerauer/tiny-krea2-modular-pipe, so loading this fixture pulls the weights from that repo rather than this one. Repointed all five at this repo so the fixture is self-contained.
YiYiXu changed pull request status to merged