Instructions to use tiny-random/flux-3-image-klein-comfy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use tiny-random/flux-3-image-klein-comfy with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("tiny-random/flux-3-image-klein-comfy", 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
Download config.json from tiny-random/flux-3-image-klein-comfy: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/tiny-random/flux-3-image-klein-comfy/resolve/main/config.json
- Command line
-
hf download hf://tiny-random/flux-3-image-klein-comfy/config.json
-
curl -L -o config.json https://huggingface.co/tiny-random/flux-3-image-klein-comfy/resolve/main/config.json
1.11 kB
| { | |
| "format_version": 1, | |
| "model": "flux-3-image-klein", | |
| "quantization": null, | |
| "torch_dtype": "bfloat16", | |
| "dit": { | |
| "hidden": 128, | |
| "heads": 4, | |
| "depth": 2, | |
| "depth_single": 2, | |
| "mlp_ratio": 3.0, | |
| "axes_dim": [ | |
| 8, | |
| 8, | |
| 8, | |
| 8 | |
| ], | |
| "theta": 10000, | |
| "in_channels": { | |
| "image": 128, | |
| "image_cond": 128, | |
| "text": 64 | |
| }, | |
| "out_modes": [ | |
| "image" | |
| ], | |
| "vec_in_dim": null, | |
| "image_rope_scale": 0.5, | |
| "flow_map": true | |
| }, | |
| "text_encoder": { | |
| "path": "text_encoder", | |
| "tokenizer": "text_encoder", | |
| "layers": [ | |
| 1, | |
| 2, | |
| 3, | |
| 4, | |
| 5, | |
| 6, | |
| 7, | |
| 8 | |
| ], | |
| "pad_multiple": 80, | |
| "max_tokens": 4096, | |
| "dtype": "bfloat16" | |
| }, | |
| "vae": { | |
| "path": "vae/flux2-vae.safetensors", | |
| "dtype": "float32" | |
| }, | |
| "sampler": { | |
| "steps": 16, | |
| "alpha": 16.0, | |
| "size": [ | |
| 1024, | |
| 1024 | |
| ], | |
| "guidance": null | |
| }, | |
| "vae_architecture": { | |
| "ch": 32, | |
| "ch_mult": [ | |
| 1, | |
| 1, | |
| 1, | |
| 1 | |
| ], | |
| "num_res_blocks": 2, | |
| "z_channels": 32 | |
| } | |
| } | |