Instructions to use Andyhere/Z-images_models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Andyhere/Z-images_models with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Andyhere/Z-images_models", filename="clipQwen34BUDQ8KXL.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Andyhere/Z-images_models with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Andyhere/Z-images_models # Run inference directly in the terminal: llama-cli -hf Andyhere/Z-images_models
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Andyhere/Z-images_models # Run inference directly in the terminal: llama-cli -hf Andyhere/Z-images_models
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Andyhere/Z-images_models # Run inference directly in the terminal: ./llama-cli -hf Andyhere/Z-images_models
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Andyhere/Z-images_models # Run inference directly in the terminal: ./build/bin/llama-cli -hf Andyhere/Z-images_models
Use Docker
docker model run hf.co/Andyhere/Z-images_models
- LM Studio
- Jan
- Ollama
How to use Andyhere/Z-images_models with Ollama:
ollama run hf.co/Andyhere/Z-images_models
- Unsloth Studio new
How to use Andyhere/Z-images_models with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Andyhere/Z-images_models to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Andyhere/Z-images_models to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Andyhere/Z-images_models to start chatting
- Pi new
How to use Andyhere/Z-images_models with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Andyhere/Z-images_models
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Andyhere/Z-images_models" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Andyhere/Z-images_models with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Andyhere/Z-images_models
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Andyhere/Z-images_models
Run Hermes
hermes
- Docker Model Runner
How to use Andyhere/Z-images_models with Docker Model Runner:
docker model run hf.co/Andyhere/Z-images_models
- Lemonade
How to use Andyhere/Z-images_models with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Andyhere/Z-images_models
Run and chat with the model
lemonade run user.Z-images_models-{{QUANT_TAG}}List all available models
lemonade list
| [ | |
| { | |
| "model name": "FLUX.2-klein-4B-SDNQ-4bit-dynamic", | |
| "type": "base model", | |
| "thumbnail": "https://i.ibb.co/JZbXB6w/flux-klein-4-B.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/FLUX.2-klein-4B-SDNQ-4bit-dynamic.zip" | |
| }, | |
| { | |
| "model name": "FLUX.2-klein-9B-SDNQ-4bit-dynamic-svd-r32", | |
| "type": "base model", | |
| "thumbnail": "https://i.ibb.co/MDrSYHyG/flux-klein-9-B.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/FLUX.2-klein-9B-SDNQ-4bit-dynamic-svd-r32.zip" | |
| }, | |
| { | |
| "model name": "FLUX-Klein-9B-KV-NF4", | |
| "type": "base model", | |
| "thumbnail": "https://i.ibb.co/xq4s6XXC/flux-klein-9-B-KV.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/FLUX-Klein-9B-KV-NF4.zip" | |
| }, | |
| { | |
| "model name": "Z-Image-Turbo-SDNQ-uint4-svd-r32", | |
| "type": "base model", | |
| "thumbnail": "https://i.ibb.co/F4gckdRv/z-image-turbo.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/Z-Image-Turbo-SDNQ-uint4-svd-r32.zip" | |
| }, | |
| { | |
| "model name": "GLM-Image-SDNQ-4bit-dynamic", | |
| "type": "base model", | |
| "thumbnail": "https://i.ibb.co/RGMWFhdg/GLM-image.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/GLM-Image-SDNQ-4bit-dynamic.zip" | |
| }, | |
| { | |
| "model name": "firered-image-edit-1.1-bnb-4bit", | |
| "type": "base model", | |
| "thumbnail": "https://i.ibb.co/LXDSVNs6/firered-image-edit.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/firered-image-edit-1.1-bnb-4bit.zip" | |
| }, | |
| { | |
| "model name": "Qwen-Image-Edit-Lightning-SDNQ-uint4-svd-r32", | |
| "type": "base model", | |
| "thumbnail": "https://i.ibb.co/Jj3ZVCmG/Qwen-image-edit-lighting.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/Qwen-Image-Edit-Lightning-SDNQ-uint4-svd-r32.zip" | |
| }, | |
| { | |
| "model name": "ERNIE_Image_Turbo_sdnq_dynamic_int4", | |
| "type": "base model", | |
| "thumbnail": "https://i.ibb.co/gMmXyZxD/Ernie-Turbo.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/ERNIE_Image_Turbo_sdnq_dynamic_int4.zip" | |
| }, | |
| { | |
| "model name": "blend_image", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/KpWHWkvN/blend-image.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/blend_image.zip" | |
| }, | |
| { | |
| "model name": "headswap", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/2wd1Fpd/headswap.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/headswap.zip" | |
| }, | |
| { | |
| "model name": "Flux2-Klein-Relight-LoRA_v2", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/XxTW2Y5F/Flux2-Klein-Relight-Lo-RA-v2.jpg", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/Flux2-Klein-Relight-LoRA_v2.zip" | |
| }, | |
| { | |
| "model name": "image_restore", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/xqxSxPy3/screenimg.jpg", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/image_restore.zip" | |
| }, | |
| { | |
| "model name": "uncrop_F2K9B", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/KzrQ0xpc/uncrop-F2-K9-B.jpg", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/uncrop_F2K9B.zip" | |
| }, | |
| { | |
| "model name": "Nano-Alcohol-Bright", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/nMWGCHcY/screen.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/Nano-Alcohol-Bright.zip" | |
| }, | |
| { | |
| "model name": "object-remove-lora", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/HDdGkxFN/flux-2-klein-4-B-object-remove-lora.jpg", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/object-remove-lora.zip" | |
| }, | |
| { | |
| "model name": "outpaint-lora", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/7drPqyGW/flux-2-klein-4-B-outpaint-lora.jpg", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/outpaint-lora.zip" | |
| }, | |
| { | |
| "model name": "virtual-tryon-lora", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/QFvH1G52/flux-klein-9b-virtual-tryon-lora.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/virtual-tryon-lora.zip" | |
| }, | |
| { | |
| "model name": "Consistent_F2K", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/dwnHqvnW/Flux2-Klein-9-B-no-face-change.jpg", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/Consistent_F2K.zip" | |
| }, | |
| { | |
| "model name": "Flux2-Klein-9B-Enhanced-Details", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/83WPjLq/Flux2-Klein-9-B-Enhanced-Details.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/Flux2-Klein-9B-Enhanced-Details.zip" | |
| }, | |
| { | |
| "model name": "Flux2-Klein-9B-consistency-V2", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/sdBjjBXG/Flux2-Klein-9-B-consistency-V2.jpg", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/Flux2-Klein-9B-consistency-V2.zip" | |
| }, | |
| { | |
| "model name": "REALSTAGRAM_ZIMG", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/W469Ktk8/REALSTAGRAM-ZIMG.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/REALSTAGRAM_ZIMG.zip" | |
| }, | |
| { | |
| "model name": "QRMonster", | |
| "type": "LoRA", | |
| "thumbnail": "https://i.ibb.co/rRMfd4tR/QRCode-Monster.png", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/QRMonster.zip" | |
| }, | |
| { | |
| "model name": "seedvr2_ema_3b-Q4_K_M", | |
| "type": "Upscaler", | |
| "thumbnail": "https://i.ibb.co/MDHDq2ZT/seedvr2.jpg", | |
| "url": "https://huggingface.co/cmeka/SeedVR2-GGUF/resolve/main/seedvr2_ema_3b-Q4_K_M.gguf" | |
| }, | |
| { | |
| "model name": "seedvr2_ema_3b_fp16", | |
| "type": "Upscaler", | |
| "thumbnail": "https://i.ibb.co/MDHDq2ZT/seedvr2.jpg", | |
| "url": "https://huggingface.co/numz/SeedVR2_comfyUI/resolve/main/seedvr2_ema_3b_fp16.safetensors" | |
| }, | |
| { | |
| "model name": "seedvr2_ema_3b_fp8_e4m3fn", | |
| "type": "Upscaler", | |
| "thumbnail": "https://i.ibb.co/MDHDq2ZT/seedvr2.jpg", | |
| "url": "https://huggingface.co/numz/SeedVR2_comfyUI/resolve/main/seedvr2_ema_3b_fp8_e4m3fn.safetensors" | |
| }, | |
| { | |
| "model name": "seedvr2_ema_7b_fp16", | |
| "type": "Upscaler", | |
| "thumbnail": "https://i.ibb.co/MDHDq2ZT/seedvr2.jpg", | |
| "url": "https://huggingface.co/numz/SeedVR2_comfyUI/resolve/main/seedvr2_ema_7b_fp16.safetensors" | |
| }, | |
| { | |
| "model name": "seedvr2_ema_7b_sharp_fp8_e4m3fn", | |
| "type": "Upscaler", | |
| "thumbnail": "https://i.ibb.co/MDHDq2ZT/seedvr2.jpg", | |
| "url": "https://huggingface.co/numz/SeedVR2_comfyUI/resolve/main/seedvr2_ema_7b_sharp_fp8_e4m3fn.safetensors" | |
| }, | |
| { | |
| "model name": "ema_vae_fp16", | |
| "type": "Upscaler", | |
| "thumbnail": "https://i.ibb.co/MDHDq2ZT/seedvr2.jpg", | |
| "url": "https://huggingface.co/numz/SeedVR2_comfyUI/resolve/main/ema_vae_fp16.safetensors" | |
| }, | |
| { | |
| "model name": "UltraSharpV2", | |
| "type": "Upscaler", | |
| "thumbnail": "https://i.ibb.co/hFXVM3WY/Ultrasharp-V2.jpg", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/UltraSharpV2.zip" | |
| }, | |
| { | |
| "model name": "SAM3", | |
| "type": "Others", | |
| "thumbnail": "https://i.ibb.co/msQPWSQ/sam3.jpg", | |
| "url": "https://huggingface.co/Andyhere/Z-images_models/resolve/main/SAM3.zip" | |
| } | |
| ] | |