Instructions to use inclusionAI/ZwZ2-4B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use inclusionAI/ZwZ2-4B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf inclusionAI/ZwZ2-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf inclusionAI/ZwZ2-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf inclusionAI/ZwZ2-4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use inclusionAI/ZwZ2-4B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inclusionAI/ZwZ2-4B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "inclusionAI/ZwZ2-4B-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
- Ollama
How to use inclusionAI/ZwZ2-4B-GGUF with Ollama:
ollama run hf.co/inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use inclusionAI/ZwZ2-4B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "inclusionAI/ZwZ2-4B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use inclusionAI/ZwZ2-4B-GGUF with Docker Model Runner:
docker model run hf.co/inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
- Lemonade
How to use inclusionAI/ZwZ2-4B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.ZwZ2-4B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use inclusionAI/ZwZ2-4B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
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 inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use inclusionAI/ZwZ2-4B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf inclusionAI/ZwZ2-4B-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "inclusionAI/ZwZ2-4B-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
ZwZ2-4B-GGUF
📃 Paper | 🏠 Project | 🤗 Collection
GGUF-format weights for ZwZ2-4B, part of Zooming without Zooming v2. The model is split into two components:
- Language model: FP16, Q8_0, Q4_K_M.
- Vision encoder and projector (
mmproj): FP16, Q8_0, Q4_K_M.
Choose a language model and a matching vision component from this repository. Different precision levels can be combined. Quantization can affect accuracy; see the original model page for the published evaluation results.
How to Use
Use a recent llama.cpp build with Qwen3.5 multimodal support.
CLI Inference (llama-mtmd-cli)
For example, to run ZwZ2-4B with a Q8_0 vision encoder and Q8_0 quantized LLM:
llama-mtmd-cli \
-m ZwZ2-4B-Q8_0.gguf \
--mmproj mmproj-ZwZ2-4B-Q8_0.gguf \
--image /path/to/image.jpg \
-p "Describe this image." \
--temp 0 -n 2048
Web Chat (using llama-server)
To serve ZwZ2-4B via an OpenAI-compatible API with a web UI:
llama-server \
-m ZwZ2-4B-Q8_0.gguf \
--mmproj mmproj-ZwZ2-4B-Q8_0.gguf \
--host 127.0.0.1 --port 8080
Replace the filenames to use FP16 or Q4_K_M weights. For image input, always
provide the corresponding mmproj component.
Citation
@article{wei2026zoomingv2,
title={Zooming without Zooming v2: From Seeing Details to Connecting Evidence for Generalizable Multimodal Perception},
author={Wei, Lai and Li, Yatai and He, Liangbo and Lan, Jun and Gu, Renjie and Cao, Linhan and Lin, Junkai and Zhu, Huijia and Wang, Weiqiang and Kong, Linghe and Wang, Yue and Zhang, Zhuosheng and Huang, Weiran},
journal={arXiv preprint arXiv:2610.37037},
year={2026}
}
License
This model follows the Apache 2.0 License.
- Downloads last month
- -
4-bit
8-bit
16-bit