Skip to content

Latest commit

 

History

History
106 lines (80 loc) · 3.53 KB

nucleus_image.md

File metadata and controls

106 lines (80 loc) · 3.53 KB

Nucleus-Image

Nucleus-Image is a text-to-image diffusion transformer with sparse mixture-of-experts layers: 17B total parameters, about 2B active per step. It uses Qwen3-VL-8B-Instruct as the LLM text encoder and the Qwen-Image VAE.

Model files

Component Weights and downloads CLI option Requirement
Nucleus-Image Safetensors: Nucleus-Image-Q8_0.safetensors (18 GB) or Nucleus-Image-Q5_1.safetensors (12.7 GB) --diffusion-model Required
Qwen3-VL-8B-Instruct GGUF: Qwen3VL-8B-Instruct-Q4_K_M.gguf --llm Required
vae Safetensors: qwen_image_vae.safetensors --vae Required

No separate tokenizer file is needed.

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
Nucleus Image (nucleus-image) diffusion_model, llm, vae

Slot IDs correspond to CLI component options: diffusion_model uses --diffusion-model and llm uses --llm.

DGL

Example Description
Text to image Nucleus-Image Q8_0.

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\nucleus_image\nucleus-image-txt2img.dgl

Linux/macOS

./bin/sd-cli -M dgl --script ../docs/dgl/nucleus_image/nucleus-image-txt2img.dgl

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.

Windows (PowerShell)

.\bin\Release\sd-cli.exe `
  --diffusion-model ..\models\diffusion_models\Nucleus-Image-Q8_0.safetensors `
  --llm ..\models\text_encoders\Qwen3VL-8B-Instruct-Q4_K_M.gguf `
  --vae ..\models\vae\qwen_image_vae.safetensors `
  -p "a lovely cat holding a sign says 'nucleus.cpp'" `
  --cfg-scale 4.5 `
  --steps 24 `
  --sampling-method euler `
  -H 768 `
  -W 768 `
  --seed 42 `
  -v

Linux/macOS

./bin/sd-cli \
  --diffusion-model ../models/diffusion_models/Nucleus-Image-Q8_0.safetensors \
  --llm ../models/text_encoders/Qwen3VL-8B-Instruct-Q4_K_M.gguf \
  --vae ../models/vae/qwen_image_vae.safetensors \
  -p "a lovely cat holding a sign says 'nucleus.cpp'" \
  --cfg-scale 4.5 \
  --steps 24 \
  --sampling-method euler \
  -H 768 \
  -W 768 \
  --seed 42 \
  -v

Notes and limitations

  • Text-to-image only. Reference-image editing is not supported.
  • The default flow shift is 1.0, matching the authors' scheduler configuration.
  • The model card reports benchmark settings of 1024×1024, 50 steps and CFG 8.0 with renormalized guidance in diffusers. This integration applies standard classifier-free guidance.
  • The checkpoints are 12.7 GB (Q5_1) and 18 GB (Q8_0) before the text encoder and VAE. On GPUs that cannot hold them, add --offload-to-cpu.