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 mellon_pipeline_config.json
Browse files
mellon_pipeline_config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"label": "Flux2 Klein Auto Blocks",
|
| 3 |
-
"default_repo": "",
|
| 4 |
-
"default_dtype": "",
|
| 5 |
"node_params": {
|
| 6 |
"custom": {
|
| 7 |
"params": {
|
|
|
|
| 1 |
{
|
| 2 |
"label": "Flux2 Klein Auto Blocks",
|
| 3 |
+
"default_repo": "YiYiXu/FLUX.2-kelin-4B-modular",
|
| 4 |
+
"default_dtype": "bfloat16",
|
| 5 |
"node_params": {
|
| 6 |
"custom": {
|
| 7 |
"params": {
|