计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
sana-zimage-sdxl【效率与协作】Operate Nunchaku's non-FLUX Diffusers replacements for Sana, Z-Image, SDXL, and SDXL-Turbo.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs Nunchaku's non-FLUX image-generation replacements:
NunchakuSanaTransformer2DModel with SanaPipeline or SanaPAGPipeline.NunchakuZImageTransformer2DModel with ZImagePipeline.NunchakuSDXLUNet2DConditionModel with StableDiffusionXLPipeline for SDXL or SDXL-Turbo.Do not use this sub-skill for FLUX, Qwen-Image, LoRA/adapters, or performance-cache/offload tuning beyond the family-specific notes here. Do not claim CPU-only inference support: Nunchaku quantized inference requires a compatible CUDA backend even when Diffusers sequential CPU offload is used for memory placement.
| User intent | Use | Read next |
|---|---|---|
| Sana 1.6B text-to-image | NunchakuSanaTransformer2DModel.from_pretrained(...) then SanaPipeline.from_pretrained(..., transformer=...) | references/non-flux-models.md#sana |
| Sana with PAG | Same Sana transformer, pass pag_layers, then SanaPAGPipeline with matching pag_applied_layers | references/non-flux-models.md#sana-pag |
| Z-Image-Turbo | NunchakuZImageTransformer2DModel.from_pretrained(...) then ZImagePipeline.from_pretrained(..., transformer=...) | references/non-flux-models.md#z-image-turbo |
| SDXL base | NunchakuSDXLUNet2DConditionModel.from_pretrained(...) then StableDiffusionXLPipeline(..., unet=...) | references/non-flux-models.md#sdxl-and-sdxl-turbo |
| SDXL-Turbo | Same SDXL UNet class with the SDXL-Turbo quantized asset and base pipeline | references/non-flux-models.md#sdxl-and-sdxl-turbo |
| Failure, asset, precision, or backend issue | Diagnose family/class mismatch, CUDA support, safetensors, dtype, offload, or PAG setup | references/troubleshooting.md |
.safetensors/.sft asset path. Avoid silent repo defaults.torch.bfloat16 is the normal Ampere/Ada path; Z-Image uses torch.float16 on Turing GPUs. Sana and SDXL native candidates skip Turing and FP4 paths.from_pretrained time, then move or offload the pipeline according to the family notes.Use scripts/non_flux_template.py as a parameterized starter. It supports --family sana|zimage|sdxl, requires explicit --base-model and --quantized-path, and fails clearly for missing local assets or unsupported family/variant combinations.
The following native tests/examples are evidence and future verification candidates only; this skill does not claim they were run:
examples/sana1.6b.py, examples/sana1.6b_pag.py, tests/sana/test_examples.pyexamples/v1/z-image-turbo.py, tests/v1/z_image/test_z_image_turbo.pyexamples/v1/sdxl.py, examples/v1/sdxl-turbo.py, tests/v1/sdxl/test_sdxl.py