Views
No views yet
guidance_scale=0 / ComfyUI cfg 1), so negative prompts are ignored. Put avoidances in the positive prompt instead.transformer/, load that Diffusers transformer and keep the text encoder / VAE from the base pipeline.1pip install -U torch transformers accelerate safetensors
2pip install -U diffusers1import torch
2from diffusers import ZImagePipeline, ZImageTransformer2DModel
3
4transformer = ZImageTransformer2DModel.from_pretrained(
5 "redrob-labs/redrob-image",
6 subfolder="transformer",
7 torch_dtype=torch.bfloat16,
8)
9
10pipe = ZImagePipeline.from_pretrained(
11 "Tongyi-MAI/Z-Image-Turbo",
12 transformer=transformer,
13 torch_dtype=torch.bfloat16,
14)
15pipe.to("cuda")
16
17prompt = "A documentary portrait in natural window light, shallow depth of field"
18image = pipe(
19 prompt=prompt,
20 height=1024,
21 width=1024,
22 num_inference_steps=9, # 8 DiT forwards
23 guidance_scale=0.0, # required for Turbo
24 generator=torch.Generator("cuda").manual_seed(42),
25).images[0]
26image.save("redrob-image.png")pipe.enable_model_cpu_offload() on smaller GPUs.| File | Put under | Source |
|---|---|---|
redrob-image.safetensors | models/diffusion_models/ | this repository |
qwen_3_4b_fp8_mixed.safetensors | models/text_encoders/ | Comfy-Org/z_image_turbo |
ae.safetensors | models/vae/ | same Comfy-Org pack |
UNETLoader -> redrob-image.safetensorsCLIPLoader -> qwen_3_4b_fp8_mixed.safetensors (type: lumina2, ComfyUI loader type for this text encoder)VAELoader -> ae.safetensorsres_multistep / sgm_uniformworkflows/redrob-image-api.json for a minimal working graph. The graph zeros out negative conditioning (ConditioningZeroOut); do not expect a negative text prompt to change the image.| Path | Role |
|---|---|
redrob-image.safetensors | ComfyUI merged UNET (LFS, ~12 GiB) |
transformer/ | Diffusers layout (built at HF upload) |
workflows/redrob-image-api.json | Minimal ComfyUI API graph |
README.md / README.ko.md | Model card (English / Korean) |
LICENSE | Apache License 2.0 |
NOTICE | Attribution |
transformer/ is not in git. On Hugging Face upload, scripts/push_hf.sh converts the Comfy UNET into Diffusers format (or copies a prebuilt TRANSFORMER_DIR).1python scripts/comfy_to_diffusers_zimage.py \
2 --input redrob-image.safetensors \
3 --output-dir transformer/