π Model Description
license: other license_name: flux-1-dev-non-commercial-license license_link: https://huggingface.co/black-forest-labs/FLUX.1-Krea-dev/blob/main/LICENSE.md language:
- en
- black-forest-labs/FLUX.1-Krea-dev
- text: a frog holding a sign that says hello world
- text: a pig holding a sign that says hello world
- text: a wolf holding a sign that says hello world
- text: >-
- text: >-
- text: drone shot of a volcano erupting with a pig walking on it
- gguf-node
- gguf-connector
gguf quantized version of krea
- run it straight with
gguf-connector - opt a
gguffile in the current directory to interact with by:
ggc k
>
>GGUF file(s) available. Select which one to use:
>
>1. flux-krea-lite-q2_k.gguf
>2. flux-krea-lite-q4_0.gguf
>3. flux-krea-lite-q8_0.gguf
>
>Enter your choice (1 to 3): _
>
note: try experimental lite model with 8-step operation; save up to 70% loading time
- run it with diffusers (see example inference below)
import torch
from transformers import T5EncoderModel
from diffusers import FluxPipeline, GGUFQuantizationConfig, FluxTransformer2DModel
modelpath = "https://huggingface.co/calcuis/krea-gguf/blob/main/flux1-krea-dev-q2k.gguf"
transformer = FluxTransformer2DModel.fromsinglefile(
model_path,
quantizationconfig=GGUFQuantizationConfig(computedtype=torch.bfloat16),
torch_dtype=torch.bfloat16,
config="callgg/krea-decoder",
subfolder="transformer"
)
textencoder = T5EncoderModel.frompretrained(
"chatpig/t5-v1_1-xxl-encoder-fp32-gguf",
gguffile="t5xxl-encoder-fp32-q2k.gguf",
torch_dtype=torch.bfloat16
)
pipe = FluxPipeline.from_pretrained(
"callgg/krea-decoder",
transformer=transformer,
textencoder2=text_encoder,
torch_dtype=torch.bfloat16
)
pipe.enablemodelcpu_offload() # could change it to cuda if you have good gpu
prompt = "a pig holding a sign that says hello world"
image = pipe(
prompt,
height=1024,
width=1024,
guidance_scale=2.5,
).images[0]
image.save("output.png")
run it with gguf-node via comfyui
- drag krea to >
./ComfyUI/models/diffusionmodels - drag clip-l-v2 [248MB], t5xxl [2.75GB] to >
./ComfyUI/models/textencoders - drag pig [168MB] to >
./ComfyUI/models/vae
reference
- base model from black-forest-labs
- for model merge details, see sayakpaul
- diffusers from huggingface
- comfyui from comfyanonymous
- gguf-node (pypi|repo|pack)
- gguf-connector (pypi)
π GGUF File List
| π Filename | π¦ Size | β‘ Download |
|---|---|---|
|
flux-dev-lite-q2_k.gguf
LFS
Q2
|
3.8 GB | Download |
|
flux-dev-lite-q4_0.gguf
Recommended
LFS
Q4
|
6.37 GB | Download |
|
flux-dev-lite-q8_0.gguf
LFS
Q8
|
11.84 GB | Download |
|
flux-krea-lite-iq4_nl.gguf
LFS
Q4
|
6.33 GB | Download |
|
flux-krea-lite-iq4_xs.gguf
LFS
Q4
|
5.99 GB | Download |
|
flux-krea-lite-q2_k.gguf
LFS
Q2
|
3.8 GB | Download |
|
flux-krea-lite-q4_0.gguf
LFS
Q4
|
6.37 GB | Download |
|
flux-krea-lite-q8_0.gguf
LFS
Q8
|
11.84 GB | Download |
|
flux-lite-q2_k.gguf
LFS
Q2
|
3.8 GB | Download |
|
flux-lite-q4_0.gguf
LFS
Q4
|
6.37 GB | Download |
|
flux-lite-q8_0.gguf
LFS
Q8
|
11.84 GB | Download |
|
flux1-krea-dev-bf16.gguf
LFS
FP16
|
22.17 GB | Download |
|
flux1-krea-dev-f16.gguf
LFS
FP16
|
22.17 GB | Download |
|
flux1-krea-dev-f32.gguf
LFS
|
44.34 GB | Download |
|
flux1-krea-dev-iq1_m.gguf
LFS
|
3.68 GB | Download |
|
flux1-krea-dev-iq1_s.gguf
LFS
|
3.66 GB | Download |
|
flux1-krea-dev-iq2_s.gguf
LFS
Q2
|
3.83 GB | Download |
|
flux1-krea-dev-iq2_xs.gguf
LFS
Q2
|
3.73 GB | Download |
|
flux1-krea-dev-iq2_xxs.gguf
LFS
Q2
|
3.73 GB | Download |
|
flux1-krea-dev-iq3_s.gguf
LFS
Q3
|
4.95 GB | Download |
|
flux1-krea-dev-iq3_xxs.gguf
LFS
Q3
|
4.85 GB | Download |
|
flux1-krea-dev-iq4_nl.gguf
LFS
Q4
|
6.45 GB | Download |
|
flux1-krea-dev-iq4_xs.gguf
LFS
Q4
|
6.11 GB | Download |
|
flux1-krea-dev-q2_k.gguf
LFS
Q2
|
3.87 GB | Download |
|
flux1-krea-dev-q2_k_s.gguf
LFS
Q2
|
3.83 GB | Download |
|
flux1-krea-dev-q3_k_l.gguf
LFS
Q3
|
5.12 GB | Download |
|
flux1-krea-dev-q3_k_m.gguf
LFS
Q3
|
5 GB | Download |
|
flux1-krea-dev-q3_k_s.gguf
LFS
Q3
|
4.99 GB | Download |
|
flux1-krea-dev-q4_0.gguf
LFS
Q4
|
6.45 GB | Download |
|
flux1-krea-dev-q4_1.gguf
LFS
Q4
|
7.14 GB | Download |
|
flux1-krea-dev-q4_k_m.gguf
LFS
Q4
|
6.58 GB | Download |
|
flux1-krea-dev-q4_k_s.gguf
LFS
Q4
|
6.45 GB | Download |
|
flux1-krea-dev-q5_0.gguf
LFS
Q5
|
7.83 GB | Download |
|
flux1-krea-dev-q5_1.gguf
LFS
Q5
|
8.52 GB | Download |
|
flux1-krea-dev-q5_k_m.gguf
LFS
Q5
|
7.96 GB | Download |
|
flux1-krea-dev-q5_k_s.gguf
LFS
Q5
|
7.83 GB | Download |
|
flux1-krea-dev-q6_k.gguf
LFS
Q6
|
9.29 GB | Download |
|
flux1-krea-dev-q8_0.gguf
LFS
Q8
|
11.96 GB | Download |