Downloads · 30 days
27.3K
100% of all-time downloads
dgflash/FLUX.1-dev-4bit-gguf
FLUX.1-dev-4bit-gguf is a text-to-image model from dgflash. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as other.
Mirror of City96/FLUX.1-dev-gguf for fast personal access. Please credit the original creators below if you use this repo.
Downloads · 30 days
27.3K
100% of all-time downloads
All-time downloads
27.3K
Public
Repo size
6.8 GB
Likes
0
Public
Click a slice to open those files.
.gguf6.8 GB · 100%
From the Hugging Face model README
Mirror of City96/FLUX.1-dev-gguf for fast personal access. Please credit the original creators below if you use this repo.
This is a quantized version of FLUX.1 [dev] by Black Forest Labs, released under the FLUX.1 [dev] Non-Commercial License.
See the original license link above for full terms.
import torch
from diffusers import FluxPipeline, FluxTransformer2DModel
transformer = FluxTransformer2DModel.from_pretrained(
"dgflash/FLUX.1-dev-4bit-gguf",
gguf_file="flux1-dev-Q4_K_S.gguf",
torch_dtype=torch.float16,
)
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
transformer=transformer,
torch_dtype=torch.float16,
token="YOUR_HF_TOKEN",
)
pipe.enable_model_cpu_offload()
pipe.vae.enable_tiling()
image = pipe(
prompt="A golden pagoda at sunset, cinematic photography, 8k",
num_inference_steps=20,
guidance_scale=3.5,
width=1024, height=1024,
).images[0]
image.save("output.png")
Note: FLUX.1-dev is gated. Accept the license on Hugging Face once (free) before using the pipeline components.