Views
No views yet
krea/Krea-2-Turbo, saved with
mflux for fast local text-to-image
generation on Apple Silicon.| Base model | krea/Krea-2-Turbo |
| Format | MLX safetensors (sharded) |
| Quantization | 4-bit |
| Saved with | mflux 0.18.0 |
| Pipeline | Text-to-image |
| Hardware | Apple Silicon (Metal / MLX) |
pip install mflux1mflux-generate-krea2 \
2 --model /path/to/krea2-q4 \
3 --prompt "a photograph of a red fox sitting in a sunlit forest clearing, sharp focus, bokeh" \
4 --width 1024 \
5 --height 1024 \
6 --seed 42 \
7 --steps 8er_sde sampler. The
plain flow-matching Euler sampler — which matches the official diffusers
FlowMatchEulerDiscreteScheduler — is available via --scheduler euler.--metadata,
--stepwise-image-output-dir, multiple --seed values). Image conditioning
(edit / reference) is not yet implemented.1from mflux.models.krea2 import Krea2
2
3model = Krea2(model_path="/path/to/krea2-q4")
4image = model.generate_image(
5 seed=42,
6 prompt="a photograph of a red fox sitting in a sunlit forest clearing, sharp focus, bokeh",
7 num_inference_steps=8,
8 width=1024,
9 height=1024,
10 guidance=1.0,
11)
12image.save("krea2_fox.png")[32, 48, 48],
per-head QK-norm + sigmoid-gated attention, AdaLN-single 6-way modulation, and
a txtfusion adapter that fuses the 12 text-encoder hidden states.[2, 5, …, 35] flattened
layer-major; the chat-template prefix is stripped so only prompt tokens
condition the DiT.krea/Krea-2-Turbo. Review and accept
the original model's terms before use.