Guest User

Z-IMAGE BASE Manual Install Guide V2

a guest
Feb 7th, 2026
2,141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.51 KB | None | 0 0
  1. Manual Install Method from my last Youtube video: https://youtu.be/PAh870We7tI
  2.  
  3. Windows Installation
  4. Step 1: Prerequisites
  5.  
  6. Make sure you have the following installed:
  7.  
  8. 7-Zip → https://www.7-zip.org/
  9.  
  10. Git → https://git-scm.com/download/win
  11.  
  12. Step 2: Download and Extract ComfyUI
  13.  
  14. Download the ComfyUI NVIDIA portable build (v0.11.1):
  15.  
  16. https://github.com/comfyanonymous/ComfyUI/releases/download/v0.11.1/ComfyUI_windows_portable_nvidia.7z
  17.  
  18. Extract it with 7-Zip.
  19.  
  20. Your folder should look like:
  21.  
  22. ComfyUI_windows_portable/
  23. ├── ComfyUI/
  24. │ ├── models/
  25. │ └── custom_nodes/
  26. ├── python_embeded/
  27. └── run_nvidia_gpu.bat
  28.  
  29. Step 3: Choose your Z-IMAGE quantization
  30.  
  31. You will download 2 UNets (Z-IMAGE + Z-IMAGE Turbo) in one of these versions:
  32.  
  33. Q5_K_S -> GPUs under 8 GB VRAM recommended
  34.  
  35. Q6_K -> GPUs 8 to 12 GB
  36.  
  37. Q8_0 -> Best quality, GPUs 12 to 16 GB and more
  38.  
  39. Remember your choice because the filenames depend on it.
  40.  
  41. Step 4: Install Required Custom Nodes
  42.  
  43. Open cmd inside:
  44.  
  45. ComfyUI_windows_portable\ComfyUI\custom_nodes
  46.  
  47. Run:
  48.  
  49. git clone https://github.com/ltdrdata/ComfyUI-Manager.git
  50. git clone https://github.com/city96/ComfyUI-GGUF.git
  51. git clone https://github.com/rgthree/rgthree-comfy.git
  52. git clone https://github.com/yolain/ComfyUI-Easy-Use.git
  53. git clone https://github.com/kijai/ComfyUI-KJNodes.git
  54. git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale.git
  55. git clone https://github.com/cubiq/ComfyUI_essentials.git
  56. git clone https://github.com/wallish77/wlsh_nodes.git
  57. git clone https://github.com/vrgamegirl19/comfyui-vrgamedevgirl.git
  58. git clone https://github.com/ClownsharkBatwing/RES4LYF.git
  59. git clone https://github.com/Jonseed/ComfyUI-Detail-Daemon
  60. git clone https://github.com/Fannovel16/comfyui_controlnet_aux
  61.  
  62. Step 5: Install dependencies for each node
  63.  
  64. Still in:
  65.  
  66. ComfyUI_windows_portable\ComfyUI\custom_nodes
  67.  
  68. Run these (only for nodes that have a requirements.txt):
  69.  
  70. ..\..\python_embeded\python.exe -m pip install -r ComfyUI-Manager\requirements.txt
  71. ..\..\python_embeded\python.exe -m pip install -r ComfyUI-GGUF\requirements.txt
  72. ..\..\python_embeded\python.exe -m pip install -r rgthree-comfy\requirements.txt
  73. ..\..\python_embeded\python.exe -m pip install -r ComfyUI-Easy-Use\requirements.txt
  74. ..\..\python_embeded\python.exe -m pip install -r ComfyUI-KJNodes\requirements.txt
  75. ..\..\python_embeded\python.exe -m pip install -r ComfyUI_UltimateSDUpscale\requirements.txt
  76. ..\..\python_embeded\python.exe -m pip install -r ComfyUI_essentials\requirements.txt
  77. ..\..\python_embeded\python.exe -m pip install -r wlsh_nodes\requirements.txt
  78. ..\..\python_embeded\python.exe -m pip install -r comfyui-vrgamedevgirl\requirements.txt
  79. ..\..\python_embeded\python.exe -m pip install -r RES4LYF\requirements.txt
  80. ..\..\python_embeded\python.exe -m pip install -r ComfyUI-Detail-Daemon\requirements.txt
  81. ..\..\python_embeded\python.exe -m pip install -r comfyui_controlnet_aux\requirements.txt
  82.  
  83.  
  84. If one fails, keep going and install the rest first. Then retry the failed one.
  85.  
  86. Step 6: Download Z-IMAGE model files
  87.  
  88. All files are hosted here:
  89.  
  90. 👉 https://huggingface.co/Aitrepreneur/FLX/tree/main
  91.  
  92. Place them under the correct folders in:
  93.  
  94. ComfyUI_windows_portable\ComfyUI\models\
  95.  
  96. Text Encoder
  97.  
  98. Put this file in:
  99. models\text_encoders\
  100.  
  101. Qwen3-4B-UD-Q6_K_XL.gguf
  102.  
  103. VAE
  104.  
  105. Put this file in:
  106. models\vae\
  107.  
  108. ae.safetensors
  109.  
  110. UNets (your chosen quantization)
  111.  
  112. Put these files in:
  113. models\unet\
  114.  
  115. Pick ONE quantization (Q5_K_S or Q6_K or Q8_0) and download both of these matching files:
  116.  
  117. z_image_turbo-<MODEL_VERSION>.gguf
  118.  
  119. z_image-<MODEL_VERSION>.gguf
  120.  
  121. Examples:
  122.  
  123. If you chose Q6_K:
  124.  
  125. z_image_turbo-Q6_K.gguf
  126.  
  127. z_image-Q6_K.gguf
  128.  
  129.  
  130.  
  131. MODEL PATCHES
  132. Z-Image-Fun-Controlnet-Union-2.1.safetensors
  133.  
  134. LORAS
  135. Z-Image-Fun-Lora-Distill-8-Steps.safetensors
  136.  
  137.  
  138.  
  139. Upscalers
  140.  
  141. Put these files in:
  142. models\upscale_models\
  143.  
  144. 4x-ClearRealityV1.pth
  145.  
  146. RealESRGAN_x4plus_anime_6B.pth
  147.  
  148. Step 7: Run ComfyUI
  149.  
  150. Double-click:
  151.  
  152. ComfyUI_windows_portable\run_nvidia_gpu.bat
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163. RunPod Installation
  164. 1. Create account at: https://bit.ly/runpodAi
  165.  
  166. 2. Deploy a Pod
  167.  
  168. Pick a GPU that fits your quantization choice (Q8_0 is heavier)
  169.  
  170. Use a ComfyUI template (example: aitrepreneur/comfyui if that’s what you use in your videos)
  171.  
  172. Open the ComfyUI port (commonly 8188 on many templates, but use whatever your template exposes)
  173.  
  174. 3. Go to your ComfyUI root folder
  175.  
  176. You must be inside a folder that contains:
  177.  
  178. models/
  179.  
  180. custom_nodes/
  181.  
  182. You can verify with:
  183.  
  184. ls
  185.  
  186. 4. Create and activate a venv
  187.  
  188. Inside the ComfyUI root:
  189.  
  190. python3 -m venv venv
  191. source venv/bin/activate
  192. pip install -U pip setuptools wheel
  193.  
  194. 5. Install Torch (recommended baseline that matches the script)
  195.  
  196. Your script pins Torch to 2.4.0 with cu121 by default.
  197.  
  198. pip install --index-url https://download.pytorch.org/whl/cu121 --extra-index-url https://pypi.org/simple \
  199. torch==2.4.0+cu121 torchvision==0.19.0+cu121 torchaudio==2.4.0+cu121
  200.  
  201.  
  202. Then install the common stability pins:
  203.  
  204. pip uninstall -y opencv-python || true
  205. pip install opencv-python-headless==4.12.0.88
  206. pip install "pillow>=11.0.0"
  207. pip install gguf piexif || true
  208. pip install librosa || true
  209.  
  210. 6. Clone the custom nodes
  211.  
  212. From the ComfyUI root:
  213.  
  214. cd custom_nodes
  215.  
  216. git clone https://github.com/ltdrdata/ComfyUI-Manager.git
  217. git clone https://github.com/city96/ComfyUI-GGUF.git
  218. git clone https://github.com/rgthree/rgthree-comfy.git
  219. git clone https://github.com/yolain/ComfyUI-Easy-Use.git
  220. git clone https://github.com/kijai/ComfyUI-KJNodes.git
  221. git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale.git
  222. git clone https://github.com/cubiq/ComfyUI_essentials.git
  223. git clone https://github.com/wallish77/wlsh_nodes.git
  224. git clone https://github.com/vrgamegirl19/comfyui-vrgamedevgirl.git
  225. git clone https://github.com/ClownsharkBatwing/RES4LYF.git
  226. git clone https://github.com/Jonseed/ComfyUI-Detail-Daemon
  227. git clone https://github.com/Fannovel16/comfyui_controlnet_aux
  228. cd ..
  229.  
  230. 7. Install node requirements
  231.  
  232. From the ComfyUI root:
  233.  
  234. pip install -r custom_nodes/ComfyUI-Manager/requirements.txt || true
  235. pip install -r custom_nodes/ComfyUI-GGUF/requirements.txt || true
  236. pip install -r custom_nodes/rgthree-comfy/requirements.txt || true
  237. pip install -r custom_nodes/ComfyUI-Easy-Use/requirements.txt || true
  238. pip install -r custom_nodes/ComfyUI-KJNodes/requirements.txt || true
  239. pip install -r custom_nodes/ComfyUI_UltimateSDUpscale/requirements.txt || true
  240. pip install -r custom_nodes/ComfyUI_essentials/requirements.txt || true
  241. pip install -r custom_nodes/wlsh_nodes/requirements.txt || true
  242. pip install -r custom_nodes/comfyui-vrgamedevgirl/requirements.txt || true
  243. pip install -r custom_nodes/RES4LYF/requirements.txt || true
  244. pip install -r custom_nodes/ComfyUI-Detail-Daemon/requirements.txt || true
  245. pip install -r custom_nodes/comfyui_controlnet_aux/requirements.txt || true
  246.  
  247.  
  248. (Using || true keeps the process going if one node is annoying. You can retry the failed one after.)
  249.  
  250. 8. Download Z-IMAGE model files (with curl)
  251.  
  252. All files come from:
  253.  
  254. https://huggingface.co/Aitrepreneur/FLX/resolve/main
  255.  
  256. Pick your quantization:
  257.  
  258. MODEL_VERSION=Q5_K_S or Q6_K or Q8_0
  259.  
  260. Example (Q8_0):
  261.  
  262. MODEL_VERSION=Q8_0
  263. HF_BASE="https://huggingface.co/Aitrepreneur/FLX/resolve/main"
  264.  
  265. mkdir -p models/text_encoders models/vae models/unet models/upscale_models
  266.  
  267. curl -L -o "models/text_encoders/Qwen3-4B-UD-Q6_K_XL.gguf" "$HF_BASE/Qwen3-4B-UD-Q6_K_XL.gguf?download=true"
  268. curl -L -o "models/vae/ae.safetensors" "$HF_BASE/ae.safetensors?download=true"
  269.  
  270. curl -L -o "models/unet/z_image_turbo-${MODEL_VERSION}.gguf" "$HF_BASE/z_image_turbo-${MODEL_VERSION}.gguf?download=true"
  271. curl -L -o "models/unet/z_image-${MODEL_VERSION}.gguf" "$HF_BASE/z_image-${MODEL_VERSION}.gguf?download=true"
  272.  
  273. curl -L -o "models/upscale_models/4x-ClearRealityV1.pth" "$HF_BASE/4x-ClearRealityV1.pth?download=true"
  274. curl -L -o "models/upscale_models/RealESRGAN_x4plus_anime_6B.pth" "$HF_BASE/RealESRGAN_x4plus_anime_6B.pth?download=true"
  275.  
  276. curl -L -o "models/model_patches/Z-Image-Fun-Controlnet-Union-2.1.safetensors" "$HF_BASE/Z-Image-Fun-Controlnet-Union-2.1.safetensors?download=true"
  277. curl -L -o "models/loras/Z-Image-Fun-Lora-Distill-8-Steps.safetensors" "$HF_BASE/Z-Image-Fun-Lora-Distill-8-Steps.safetensors?download=true"
  278.  
  279.  
  280.  
  281.  
  282. 9. Run ComfyUI and watch logs
  283.  
  284. Common patterns (depends on template):
  285.  
  286. tail -f /workspace/logs/comfyui.log
  287.  
  288.  
  289. If your template uses a start script, use that. Otherwise, you typically run ComfyUI from its main folder while venv is active.
  290.  
Add Comment
Please, Sign In to add comment