Downloads · 30 days
107
80% of all-time downloads
SwinliQ-AIn/FLUX.1-schnell-4bit
FLUX.1-schnell-4bit is a text-to-image model from SwinliQ-AIn. Use it when you need an image from a text prompt. It is set up for mflux. The card lists the license as apache-2.0.
[](https://huggingface.co/black-forest-labs/FLUX.1-schnell)
Downloads · 30 days
107
80% of all-time downloads
All-time downloads
133
Public
Repo size
19.2 GB
Likes
1
Public
Click a slice to open those files.
.safetensors9.6 GB · 100%
From the Hugging Face model README

A 4-bit quantized version of the FLUX.1-schnell text-to-image model from Black Forest Labs, implemented using the mflux (version 0.6.2) quantization approach.
This repository contains a 4-bit quantized version of the FLUX.1-schnell model, which significantly reduces the memory footprint while maintaining most of the generation quality. The quantization was performed using the mflux methodology (v0.6.2).
FLUX.1-schnell is a lightweight text-to-image diffusion model developed by Black Forest Labs. It's designed to be faster and more efficient than many larger models while still producing high-quality images.
This repository contains the following components:
text_encoder/: CLIP text encoder (4-bit quantized)text_encoder_2/: Secondary text encoder (4-bit quantized)tokenizer/: CLIP tokenizer configuration and vocabularytokenizer_2/: Secondary tokenizer configurationtransformer/: Main diffusion model components (4-bit quantized)vae/: Variational autoencoder for image encoding/decoding (4-bit quantized)pip install torch diffusers transformers accelerate
uv tool install mflux # check mflux README for more details
# export path for mflux
% mflux-generate \
--path "dhairyashil/FLUX.1-schnell-mflux-v0.6.2-4bit" \
--model schnell \
--steps 2 \
--seed 2 \
--height 1920 \
--width 1024 \
--prompt "hot chocolate dish"
The images generated from above prompt for different models are shown at the top.
fp16 and 8-bit results are visibly look almost the same but 4-bit result looks a little deviated.
8-bit model is available for comparison.
| Model Version | Memory Usage | Inference Speed | Quality |
|---|---|---|---|
| Original FP16 | ~57 GB | Base | Base |
| 4-bit Quantized | ~9 GB | Slightly slower | Slightly reduced |
This model inherits the license of the original FLUX.1-schnell model. Please refer to the original model repository for licensing information.