Instructions to use diffusers/FLUX.2-klein-4B-modular with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/FLUX.2-klein-4B-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/FLUX.2-klein-4B-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
Update modular_model_index.json
Browse files- modular_model_index.json +2 -2
modular_model_index.json
CHANGED
|
@@ -21,9 +21,9 @@
|
|
| 21 |
null,
|
| 22 |
null,
|
| 23 |
{
|
| 24 |
-
"pretrained_model_name_or_path": "
|
| 25 |
"revision": null,
|
| 26 |
-
"subfolder": "
|
| 27 |
"type_hint": [
|
| 28 |
"transformers",
|
| 29 |
"Qwen3ForCausalLM"
|
|
|
|
| 21 |
null,
|
| 22 |
null,
|
| 23 |
{
|
| 24 |
+
"pretrained_model_name_or_path": "OzzyGT/Qwen3-4B-bnb-4bit",
|
| 25 |
"revision": null,
|
| 26 |
+
"subfolder": "",
|
| 27 |
"type_hint": [
|
| 28 |
"transformers",
|
| 29 |
"Qwen3ForCausalLM"
|