Instructions to use PrunaAI/Pruna-Q-Image-2.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use PrunaAI/Pruna-Q-Image-2.1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-2.1", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("PrunaAI/Pruna-Q-Image-2.1") 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
Pin tested Diffusers revision for exact sampler
Browse files
README.md
CHANGED
|
@@ -25,7 +25,7 @@ tags:
|
|
| 25 |
|
| 26 |
```bash
|
| 27 |
pip install 'torch>=2.4.0' 'transformers>=5.17' accelerate peft pillow
|
| 28 |
-
pip install git+https://github.com/huggingface/diffusers
|
| 29 |
hf auth login # required while this repository is private
|
| 30 |
```
|
| 31 |
|
|
|
|
| 25 |
|
| 26 |
```bash
|
| 27 |
pip install 'torch>=2.4.0' 'transformers>=5.17' accelerate peft pillow
|
| 28 |
+
pip install git+https://github.com/huggingface/diffusers@6256aa7666cedd47443adc8f82da9a10e110b09c
|
| 29 |
hf auth login # required while this repository is private
|
| 30 |
```
|
| 31 |
|