Instructions to use diffusers/flux2-bnb-4bit-modular with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/flux2-bnb-4bit-modular 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/flux2-bnb-4bit-modular", 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 modular_model_index.json
Browse files- modular_model_index.json +1 -1
modular_model_index.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
| 48 |
"diffusers",
|
| 49 |
"Flux2Transformer2DModel",
|
| 50 |
{
|
| 51 |
-
"pretrained_model_name_or_path": "diffusers/
|
| 52 |
"revision": null,
|
| 53 |
"subfolder": "transformer",
|
| 54 |
"type_hint": [
|
|
|
|
| 48 |
"diffusers",
|
| 49 |
"Flux2Transformer2DModel",
|
| 50 |
{
|
| 51 |
+
"pretrained_model_name_or_path": "diffusers/flux2-bnb-4bit-modular",
|
| 52 |
"revision": null,
|
| 53 |
"subfolder": "transformer",
|
| 54 |
"type_hint": [
|