Instructions to use diffusers/FLUX.1-dev-bnb-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/FLUX.1-dev-bnb-4bit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers/FLUX.1-dev-bnb-4bit", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
---
|
| 2 |
base_model: black-forest-labs/FLUX.1-dev
|
| 3 |
library_name: diffusers
|
|
|
|
| 4 |
tags:
|
| 5 |
- quantization
|
| 6 |
---
|
| 7 |
-
|
| 8 |
# Usage with Diffusers
|
| 9 |
|
| 10 |
To use this quantized FLUX.1 [dev] checkpoint, you need to install the 🧨 diffusers and bitsandbytes library:
|
|
|
|
| 1 |
---
|
| 2 |
base_model: black-forest-labs/FLUX.1-dev
|
| 3 |
library_name: diffusers
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
tags:
|
| 6 |
- quantization
|
| 7 |
---
|
|
|
|
| 8 |
# Usage with Diffusers
|
| 9 |
|
| 10 |
To use this quantized FLUX.1 [dev] checkpoint, you need to install the 🧨 diffusers and bitsandbytes library:
|