3.8 KiB
LongCat Image
LongCat-Image uses a LongCat diffusion transformer, the FLUX VAE, and Qwen2.5-VL as the LLM text encoder.
Model files
| Component | Weights and downloads | CLI option | Requirement |
|---|---|---|---|
| LongCat Image | Safetensors GGUF |
--diffusion-model |
Choose matching variant |
| LongCat Image Edit | LongCat Image Edit Turbo: Download GGUF |
--diffusion-model |
Choose matching variant |
| vae | Safetensors | --vae |
Use matching VAE |
| qwen_2.5_vl 7b | Safetensors GGUF For image editing with GGUF text encoders, also download the matching mmproj file and pass it with --llm_vision. |
--llm |
Use matching text encoder |
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 |
|---|---|
LongCat Image (longcat-image) |
diffusion_model, llm, vae, tae |
LongCat Image Edit (longcat-image-edit) |
diffusion_model, llm, vae, tae |
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 |
|---|---|
| Text to image | LongCat Image generation. |
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\longcat_image\longcat-image-txt2img.dgl
Linux/macOS
./bin/sd-cli -M dgl --script ../docs/dgl/longcat_image/longcat-image-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.
LongCat uses quoted text for character-level text rendering. Put target text inside single quotes, double quotes, or Chinese quotes.
LongCat Image
Windows (PowerShell)
.\bin\Release\sd-cli.exe `
--diffusion-model ..\models\diffusion_models\LongCat-Image-Q4_K_M.gguf `
--vae ..\models\vae\ae.sft `
--llm ..\models\text_encoders\Qwen2.5-VL-7B-Instruct-Q8_0.gguf `
-p "a lovely cat holding a sign says 'longcat.cpp'" `
--cfg-scale 5.0 `
--sampling-method euler `
--flow-shift 3 `
--offload-to-cpu `
-v
Linux/macOS
./bin/sd-cli \
--diffusion-model ../models/diffusion_models/LongCat-Image-Q4_K_M.gguf \
--vae ../models/vae/ae.sft \
--llm ../models/text_encoders/Qwen2.5-VL-7B-Instruct-Q8_0.gguf \
-p "a lovely cat holding a sign says 'longcat.cpp'" \
--cfg-scale 5.0 \
--sampling-method euler \
--flow-shift 3 \
--offload-to-cpu \
-v