Instructions to use unsloth/flux-3-image-klein-pup-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/flux-3-image-klein-pup-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama cli -hf unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
- Llama new
- LM Studio
- Jan
- vLLM
How to use unsloth/flux-3-image-klein-pup-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unsloth/flux-3-image-klein-pup-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unsloth/flux-3-image-klein-pup-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
- Ollama
How to use unsloth/flux-3-image-klein-pup-GGUF with Ollama:
ollama run hf.co/unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
- Unsloth Desktop
- Pi
How to use unsloth/flux-3-image-klein-pup-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use unsloth/flux-3-image-klein-pup-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/flux-3-image-klein-pup-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.flux-3-image-klein-pup-GGUF-UD-Q4_K_XL
List all available models
lemonade list
- Hermes Agent
How to use unsloth/flux-3-image-klein-pup-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use unsloth/flux-3-image-klein-pup-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "unsloth/flux-3-image-klein-pup-GGUF:UD-Q4_K_XL" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
FLUX 3 Image Klein Prompt Upsampler GGUF
GGUF conversions of black-forest-labs/flux-3-image-klein-pup, the prompt upsampler for FLUX 3 Image Klein. It is a fine-tune of Qwen3.5-9B by Black Forest Labs that expands a short image request (and, for edits, the reference images) into the detailed caption FLUX 3 Image Klein is trained on.
FLUX 3 Image Klein is meant to run with a prompt upsampler in front of it. Short prompts sent to the image model as typed often give generic images and broken poses (backflips, handstands, tangled arms); the upsampled caption describes the pose and every limb explicitly and fixes most of those.
Unsloth Desktop and Unsloth Studio download and run this upsampler automatically for FLUX 3 Image Klein through the "Enhance prompt" option.
Files
| File | Size | Notes |
|---|---|---|
flux-3-image-klein-pup-UD-Q4_K_XL.gguf |
6.0 GB | Unsloth Dynamic 4-bit, closest to BF16 among the 4-bit files. Default in Unsloth Desktop, about 7.5 GB of VRAM with the mmproj |
flux-3-image-klein-pup-Q4_K_M.gguf |
5.6 GB | 4-bit |
flux-3-image-klein-pup-Q6_K.gguf |
7.4 GB | 6-bit |
flux-3-image-klein-pup-Q8_0.gguf |
9.5 GB | Closest to BF16 |
flux-3-image-klein-pup-BF16.gguf |
17.9 GB | Unquantized |
mmproj-F16.gguf |
0.9 GB | Vision projector, needed for edits with reference images |
mmproj-BF16.gguf |
0.9 GB | Vision projector, BF16 |
system_prompts.json |
Black Forest Labs' system prompts (t2i, i2i, t2i_bbox, i2i_bbox), unchanged |
We rendered the hard poses (backflip, handstand, stretch, violin, a group of five on a couch, a hugging couple) on FLUX 3 Image Klein from the Q4_K_M, Q8_0 and original BF16 captions with the same seeds, and saw no anatomy difference between them.
Quantization
Accuracy against BF16, measured as KL divergence on the upsampler's own captions (96 requests, assistant tokens only):
| File | Mean KLD vs BF16 |
|---|---|
| Q4_K_M | 0.0194 |
| UD-Q4_K_XL | 0.0119 |
| Q6_K | 0.0025 |
The files hold up across request types: the bbox system prompt, Chinese, Japanese, Spanish and German requests, very long and very short requests, and unusual ones (typos, lists, negations, text in the image), and the files loop no more often than BF16. Q4_K_M and Q6_K keep the tensor types, size and speed of the earlier files. UD-Q4_K_XL uses the Unsloth Dynamic layout of Qwen3.5-9B UD-Q4_K_XL, at 6% more bytes than Q4_K_M.
Usage with llama.cpp
llama-server -m flux-3-image-klein-pup-UD-Q4_K_XL.gguf --mmproj mmproj-F16.gguf \
-ngl 99 -c 16384 --jinja
Then send the t2i system prompt from system_prompts.json and the request as the user message, with thinking off and greedy decoding. These are the settings of the official ComfyUI FLUX 3 Image Klein templates:
{
"messages": [
{"role": "system", "content": "<t2i system prompt>"},
{"role": "user", "content": "a gymnast doing a backflip"}
],
"max_tokens": 3584,
"temperature": 1.0,
"top_k": 1,
"top_p": 0.95,
"min_p": 0.0,
"presence_penalty": 1.5,
"repeat_penalty": 1.0,
"chat_template_kwargs": {"enable_thinking": false}
}
For edits, use the i2i system prompt and presence_penalty 0, and put the reference images before this text in the user message:
Reference images follow in order (the first image, the second image, ...).
User request: <instruction>
Output the caption.
Pass the returned caption to FLUX 3 Image Klein as the prompt.
License
Apache 2.0, the same as the original model. All credit for the model goes to Black Forest Labs; see the original model card for training details and intended use.
- Downloads last month
- 48,530
4-bit
6-bit
8-bit
16-bit
Model tree for unsloth/flux-3-image-klein-pup-GGUF
Base model
Qwen/Qwen3.5-9B-Base