Update - Link for Z-Image Supervised FineTune Model in FP32 Link
This was built using ComfyUI Github version. Not desktop, portable, or cloud.
Note: The Z-Image transformer is FP32. This method uses a modified script from ComfyUI with QKV mappings. It does not modify supported_models.py.
FP32 may be overkill for some setups.
Comfy's script "https://huggingface.co/Comfy-Org/z_image_turbo/blob/main/z_image_convert_original_to_comfy.py"
- System RAM: Ensure you have at least 32GB of System RAM, as you will be processing a massive 24GB FP32 model.
- Download the script: Z-Image_convert_and_merge.py
- Download the transformer files: Z-Image-Turbo Transformer Files
Place the downloaded python script and the transformer files (safe tensors) into the same folder.
Open your command line interface (CMD) from that directory and run the following command:
python Z-Image_convert_and_merge.py Z-Image_FP32.safetensors diffusion_pytorch_model-00001-of-00003.safetensors diffusion_pytorch_model-00002-of-00003.safetensors diffusion_pytorch_model-00003-of-00003.safetensorsCRITICAL: Do not include "bf16" or "fp16" in the output filename (
Z-Image_FP32.safetensors). If you do, the script will attempt to convert it. We want it to default to FP32.
- Refresh ComfyUI.
- Use the "Diffusion Model Loader KJ" custom node.
- Set the settings to FP32.
- Load the generated safetensor and enjoy.
This was built using ComfyUI Github version. Not desktop, portable, or cloud.
WARNING: THIS IS A BETA MOD. DO IT AT YOUR OWN RISK. This mod is designed for ComfyUI Version 3.75. It may fail on newer or older versions.
- Backup: Create a backup of your original
supported_models.pylocated inComfyUI\comfy. - Install Mod: Drag and drop the modded version to that folder to support the FP32 Z-Image model.
- Merge Files: Go to HuggingFace and merge their Transformer files into 1 file. (Requires at least 32GB of CPU RAM to merge).
- Run: Load your Safetensor and enjoy.
unet missing: ['norm_final.weight']- Note: The image will usually still generate despite this error.