stable-diffusion.cpp/docs/models/fibo2.md

7 KiB

Fibo 2.0

Fibo 2.0 uses a Fibo diffusion transformer, the standard FLUX.2 VAE, and Qwen3-VL 4B as the LLM text encoder. The Qwen tokenizer is built in.

Model files

Component Weights and downloads CLI option Requirement
Fibo 2.0 Dev Safetensors --diffusion-model Choose matching variant
Fibo 2.0 Edit Turbo Safetensors --diffusion-model Choose matching variant
vae Safetensors --vae Use matching VAE
Qwen3-VL 4B Safetensors
GGUF
--llm Use matching text encoder

The original Diffusers weights from briaai/Fibo-2.0-dev and briaai/Fibo-2.0-edit-turbo are also supported. Pass the transformer's diffusion_pytorch_model.safetensors.index.json to --diffusion-model and keep its shards alongside it.

INT8 convrot weights load directly; see INT8 convrot for backend requirements.

Usage

Web UI

Follow the Web UI guide to start the server, then select the recipe matching your weights. Fill the component slots below and click Load models. Use the files and compatibility requirements in Model files.

Recipe Component slots
Fibo 2.0 Dev (fibo2-dev) diffusion_model, llm, llm_vision, vae
Fibo 2.0 Edit Turbo (fibo2-edit-turbo) diffusion_model, llm, llm_vision, vae

Slot IDs correspond to CLI component options: diffusion_model uses --diffusion-model, llm uses --llm, and model uses -m / --model. Select optional components when required by your checkpoint or task.

DGL

Example Description
Dev: text to image Generate an image from a prompt.
Dev: image editing Edit a reference image.
Edit Turbo Image editing with distilled weights.

Run a script

Edit paths, prompts and settings in the script's var block, then run from the build directory. Paths inside the script resolve from the working directory.

Windows (PowerShell)

.\bin\Release\sd-cli.exe -M dgl --script ..\docs\dgl\fibo2\fibo2-dev-txt2img.dgl

Linux/macOS

./bin/sd-cli -M dgl --script ../docs/dgl/fibo2/fibo2-dev-txt2img.dgl

Choose another script from the table to run a different task. Add --check to validate syntax and types without loading weights. See the shared run instructions for build paths and the server's file-access rules.

Legacy CLI

CLI examples use the shared path and shell conventions.

Fibo 2.0 Dev

Dev supports both text-to-image generation and reference-image editing.

Windows (PowerShell)

.\bin\Release\sd-cli.exe `
  --diffusion-model ..\models\diffusion_models\fibo2_dev_int8_convrot.safetensors `
  --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf `
  --llm_vision ..\models\text_encoders\Qwen3-VL-4B-Instruct-mmproj-BF16.gguf `
  --vae ..\models\vae\flux2_ae.safetensors `
  -p "a lovely cat holding a sign says 'fibo2.cpp'" `
  --cfg-scale 5.0 `
  --sampling-method euler `
  --offload-to-cpu `
  -v

Linux/macOS

./bin/sd-cli \
  --diffusion-model ../models/diffusion_models/fibo2_dev_int8_convrot.safetensors \
  --llm ../models/text_encoders/Qwen3-VL-4B-Instruct-Q4_K_M.gguf \
  --llm_vision ../models/text_encoders/Qwen3-VL-4B-Instruct-mmproj-BF16.gguf \
  --vae ../models/vae/flux2_ae.safetensors \
  -p "a lovely cat holding a sign says 'fibo2.cpp'" \
  --cfg-scale 5.0 \
  --sampling-method euler \
  --offload-to-cpu \
  -v

Windows (PowerShell)

.\bin\Release\sd-cli.exe `
  --diffusion-model ..\models\diffusion_models\fibo2_dev_int8_convrot.safetensors `
  --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf `
  --llm_vision ..\models\text_encoders\Qwen3-VL-4B-Instruct-mmproj-BF16.gguf `
  --vae ..\models\vae\flux2_ae.safetensors `
  -r ..\inputs\flux\flux1-dev-q8_0.png `
  -p "change 'flux.cpp' to 'fibo2.cpp'" `
  --cfg-scale 5.0 `
  --sampling-method euler `
  --offload-to-cpu `
  -v

Linux/macOS

./bin/sd-cli \
  --diffusion-model ../models/diffusion_models/fibo2_dev_int8_convrot.safetensors \
  --llm ../models/text_encoders/Qwen3-VL-4B-Instruct-Q4_K_M.gguf \
  --llm_vision ../models/text_encoders/Qwen3-VL-4B-Instruct-mmproj-BF16.gguf \
  --vae ../models/vae/flux2_ae.safetensors \
  -r ../inputs/flux/flux1-dev-q8_0.png \
  -p "change 'flux.cpp' to 'fibo2.cpp'" \
  --cfg-scale 5.0 \
  --sampling-method euler \
  --offload-to-cpu \
  -v

Fibo 2.0 Edit Turbo

Edit Turbo is distilled for reference-image editing in 4 steps with CFG 1.

Windows (PowerShell)

.\bin\Release\sd-cli.exe `
  --diffusion-model ..\models\diffusion_models\fibo2_edit_turbo_int8_convrot.safetensors `
  --llm ..\models\text_encoders\Qwen3-VL-4B-Instruct-Q4_K_M.gguf `
  --llm_vision ..\models\text_encoders\Qwen3-VL-4B-Instruct-mmproj-BF16.gguf `
  --vae ..\models\vae\flux2_ae.safetensors `
  -r ..\inputs\flux\flux1-dev-q8_0.png `
  -p "change 'flux.cpp' to 'fibo2.cpp'" `
  --cfg-scale 1 `
  --steps 4 `
  --sampling-method euler `
  --offload-to-cpu `
  -v

Linux/macOS

./bin/sd-cli \
  --diffusion-model ../models/diffusion_models/fibo2_edit_turbo_int8_convrot.safetensors \
  --llm ../models/text_encoders/Qwen3-VL-4B-Instruct-Q4_K_M.gguf \
  --llm_vision ../models/text_encoders/Qwen3-VL-4B-Instruct-mmproj-BF16.gguf \
  --vae ../models/vae/flux2_ae.safetensors \
  -r ../inputs/flux/flux1-dev-q8_0.png \
  -p "change 'flux.cpp' to 'fibo2.cpp'" \
  --cfg-scale 1 \
  --steps 4 \
  --sampling-method euler \
  --offload-to-cpu \
  -v

The BF16 files accept the same options. Use dimensions divisible by 16. Repeat -r to use multiple reference images; instructions can refer to <image_1>, <image_2>, etc. See Image Editing for reference-image preprocessing options. Separate GGUF text encoders need their vision projector passed with --llm_vision for editing.

The default reference policy scales and center-crops a single reference to the output dimensions. Multiple references use aspect-ratio buckets near one megapixel, aligned to 16 pixels. VAE and vision encoding share those crops; the vision encoder uses a smaller copy with a maximum side of 768 pixels. Use a DGL editing workflow for custom geometry or different VAE and vision inputs.