switch image model to FLUX.2-klein-4B (Apache 2.0, 4-step, unified gen+edit)
ci/woodpecker/push/flux-reconcile-source Pipeline was successful

This commit is contained in:
2026-05-20 16:49:30 +02:00
parent 25a7b6c242
commit b41342be01
2 changed files with 14 additions and 13 deletions
+12 -11
View File
@@ -25,7 +25,7 @@ hooks:
matrix: matrix:
vars: vars:
q8: "Qwen3.5-0.8B-GGUF-nothink:Q4_K_XL" q8: "Qwen3.5-0.8B-GGUF-nothink:Q4_K_XL"
flux: "flux1-dev:Q4_K_S" flux: "flux2-klein-4b:Q4_K_M"
coder: "Qwen3-Coder-Next-GGUF:Q4_K_M" coder: "Qwen3-Coder-Next-GGUF:Q4_K_M"
q35t: "Qwen3.5-35B-A3B-GGUF:Q4_K_M" q35t: "Qwen3.5-35B-A3B-GGUF:Q4_K_M"
q35nt: "Qwen3.5-35B-A3B-GGUF-nothink:Q4_K_M" q35nt: "Qwen3.5-35B-A3B-GGUF-nothink:Q4_K_M"
@@ -234,19 +234,20 @@ models:
# Image generation via stable-diffusion.cpp (sd-server) # Image generation via stable-diffusion.cpp (sd-server)
# Models must be pre-downloaded to /root/.cache/sd/ # Models must be pre-downloaded to /root/.cache/sd/
# FLUX.1-dev: state-of-the-art open-weight text-to-image model by Black Forest Labs # FLUX.2-klein-4B: fast unified text-to-image and image editing model (Apache 2.0)
# Download: huggingface-cli download lllyasviel/FLUX.1-dev-gguf flux1-dev-Q4_K_S.gguf --local-dir /root/.cache/sd # Download: uv run --with huggingface_hub hf download unsloth/FLUX.2-klein-4B-GGUF flux-2-klein-4b-Q4_K_M.gguf --local-dir /root/.cache/sd
# Download VAE: huggingface-cli download black-forest-labs/FLUX.1-dev ae.safetensors --local-dir /root/.cache/sd # Download VAE: uv run --with huggingface_hub hf download Comfy-Org/flux2-klein-4B split_files/vae/flux2-vae.safetensors --local-dir /root/.cache/sd/flux2-klein && cp /root/.cache/sd/flux2-klein/split_files/vae/flux2-vae.safetensors /root/.cache/sd/
# Download text encoders: huggingface-cli download comfyanonymous/flux_text_encoders clip_l.safetensors t5xxl_fp16.safetensors --local-dir /root/.cache/sd # Download LLM: uv run --with huggingface_hub hf download unsloth/Qwen3-4B-GGUF Qwen3-4B-Q4_K_M.gguf --local-dir /root/.cache/sd
"flux1-dev:Q4_K_S": "flux2-klein-4b:Q4_K_M":
checkEndpoint: "/" checkEndpoint: "/"
cmd: | cmd: |
sd-server sd-server
--listen-port ${PORT} --listen-port ${PORT}
--diffusion-model /root/.cache/sd/flux1-dev-Q4_K_S.gguf --diffusion-model /root/.cache/sd/flux-2-klein-4b-Q4_K_M.gguf
--vae /root/.cache/sd/ae.safetensors --vae /root/.cache/sd/flux2-vae.safetensors
--clip_l /root/.cache/sd/clip_l.safetensors --llm /root/.cache/sd/Qwen3-4B-Q4_K_M.gguf
--t5xxl /root/.cache/sd/t5xxl_fp16.safetensors
--cfg-scale 1.0 --cfg-scale 1.0
--sampling-method euler --sampling-method euler
--steps 20 --steps 4
--diffusion-fa
--offload-to-cpu
+2 -2
View File
@@ -84,7 +84,7 @@ spec:
- name: IMAGES_OPENAI_API_KEY - name: IMAGES_OPENAI_API_KEY
value: "ignored" value: "ignored"
- name: IMAGE_GENERATION_MODEL - name: IMAGE_GENERATION_MODEL
value: "flux1-dev:Q4_K_S" value: "flux2-klein-4b:Q4_K_M"
- name: IMAGE_SIZE - name: IMAGE_SIZE
value: "512x512" value: "512x512"
# Image editing via llama-swap sd-server (/v1/images/edits) # Image editing via llama-swap sd-server (/v1/images/edits)
@@ -97,6 +97,6 @@ spec:
- name: IMAGES_EDIT_OPENAI_API_KEY - name: IMAGES_EDIT_OPENAI_API_KEY
value: "ignored" value: "ignored"
- name: IMAGE_EDIT_MODEL - name: IMAGE_EDIT_MODEL
value: "flux1-dev:Q4_K_S" value: "flux2-klein-4b:Q4_K_M"
- name: IMAGE_EDIT_SIZE - name: IMAGE_EDIT_SIZE
value: "512x512" value: "512x512"