Downloads · 30 days
0
mzbac/flux1.kontext.4bit.mlx
flux1.kontext.4bit.mlx is a image-to-image model from mzbac. Use it when you need one image transformed into another. It is set up for mlx. The card lists the license as other.
This is a 4-bit quantized version of the FLUX.1-Kontext-dev model optimized for use with MLX and flux.swift. The model size has been reduced from ~24GB to 9.2GB while maintaining excellent image-to-image generation qu…
Downloads · 30 days
0
Access
Public
Updated Jul 6, 2025
Repo size
9.9 GB
Likes
9
Public
Click a slice to open those files.
.safetensors9.9 GB · 100%
From the Hugging Face model README
This is a 4-bit quantized version of the FLUX.1-Kontext-dev model optimized for use with MLX and flux.swift. The model size has been reduced from ~24GB to 9.2GB while maintaining excellent image-to-image generation quality.
Quantized using flux.swift, a Swift implementation of FLUX models for Apple Silicon.
This model requires the flux.swift implementation. Please refer to the repository for installation and usage instructions.
# Load and use the quantized model for image-to-image generation
flux.swift.cli \
--load-quantized-path /path/to/this/model \
--hf-token YOUR_HF_TOKEN \
--init-image-path /path/to/input/image.png \
--prompt "Your transformation prompt here" \
--output output.png
--init-image-path for image-to-image generationflux.swift.cli \
--load-quantized-path /path/to/this/model \
--hf-token YOUR_HF_TOKEN \
--init-image-path ./reference.png \
--prompt "transform this into a watercolor painting with soft pastel tones" \
--steps 30 \
--guidance 3.5 \
--width 512 \
--height 512 \
--seed 42 \
--output watercolor_painting.png
This model is a quantized version of FLUX.1-Kontext-dev, which is licensed under the FLUX.1 [dev] Non-Commercial License. Please review the original license terms:
@misc{flux-kontext,
author = {Black Forest Labs},
title = {FLUX.1-Kontext-dev},
publisher = {Black Forest Labs},
year = {2024},
url = {https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev}
}
@software{flux-swift,
author = {mzbac},
title = {flux.swift: Swift implementation of FLUX models},
url = {https://github.com/mzbac/flux.swift},
year = {2024}
}