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
Commit History
-
Update mellon_pipeline_config.json
Verified signature62ac375
-
Update README.md
Verified signature0b528b3 -
Update mellon_pipeline_config.json
Verified signature1018b88 -
Update mellon_pipeline_config.json
Verified signatureda230fe -
Upload MellonPipelineConfig
Verified signatureb577843
-
Update modular_model_index.json
Verified signaturef18ec12 -
Update mellon_pipeline_config.json
Verified signature8ad304a -
Update mellon_pipeline_config.json
Verified signature5263201 -
Update README.md
Verified signature4eb635d -
Update mellon_pipeline_config.json
Verified signature169bb03 -
Update mellon_pipeline_config.json
Verified signature655a2ea -
Update mellon_pipeline_config.json
Verified signature909bf43 -
Upload MellonPipelineConfig
Verified signaturec049b62 -
Upload Flux2KleinModularPipeline
Verified signatureb116921 -
initial commit
Verified signature081704e