Instructions to use hf-internal-testing/tiny-flux3-image-modular with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hf-internal-testing/tiny-flux3-image-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("hf-internal-testing/tiny-flux3-image-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
add the prompt upsampler components (tiny-flux3-prompt-upsampler)
Browse files- modular_model_index.json +28 -0
modular_model_index.json
CHANGED
|
@@ -57,5 +57,33 @@
|
|
| 57 |
],
|
| 58 |
"variant": null
|
| 59 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
]
|
| 61 |
}
|
|
|
|
| 57 |
],
|
| 58 |
"variant": null
|
| 59 |
}
|
| 60 |
+
],
|
| 61 |
+
"prompt_upsampler": [
|
| 62 |
+
"transformers",
|
| 63 |
+
"Qwen3_5ForConditionalGeneration",
|
| 64 |
+
{
|
| 65 |
+
"pretrained_model_name_or_path": "hf-internal-testing/tiny-flux3-prompt-upsampler",
|
| 66 |
+
"revision": null,
|
| 67 |
+
"subfolder": "",
|
| 68 |
+
"type_hint": [
|
| 69 |
+
"transformers",
|
| 70 |
+
"Qwen3_5ForConditionalGeneration"
|
| 71 |
+
],
|
| 72 |
+
"variant": null
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"prompt_upsampler_processor": [
|
| 76 |
+
"transformers",
|
| 77 |
+
"AutoProcessor",
|
| 78 |
+
{
|
| 79 |
+
"pretrained_model_name_or_path": "hf-internal-testing/tiny-flux3-prompt-upsampler",
|
| 80 |
+
"revision": null,
|
| 81 |
+
"subfolder": "",
|
| 82 |
+
"type_hint": [
|
| 83 |
+
"transformers",
|
| 84 |
+
"AutoProcessor"
|
| 85 |
+
],
|
| 86 |
+
"variant": null
|
| 87 |
+
}
|
| 88 |
]
|
| 89 |
}
|