Instructions to use way2049/ZoomGain-9B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use way2049/ZoomGain-9B-MLX-8bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("way2049/ZoomGain-9B-MLX-8bit") config = load_config("way2049/ZoomGain-9B-MLX-8bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use way2049/ZoomGain-9B-MLX-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "way2049/ZoomGain-9B-MLX-8bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "way2049/ZoomGain-9B-MLX-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use way2049/ZoomGain-9B-MLX-8bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "way2049/ZoomGain-9B-MLX-8bit"
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 way2049/ZoomGain-9B-MLX-8bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use way2049/ZoomGain-9B-MLX-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "way2049/ZoomGain-9B-MLX-8bit"
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 "way2049/ZoomGain-9B-MLX-8bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
ZoomGain-9B-MLX-8bit
When I converted inclusionAI/ZoomGain-9B to MLX on a 24 GB M4 Pro Mac mini, I built both 4-bit and 8-bit packages to see how a local ~9.41B model handles small visual details without a crop tool. Looking once at the full image, a 9B model that fits on a Mac finds small details better than Grok 4.7 (52.7% vs 33.1%). With a zoom tool, Grok reaches 76.2%.
Note on those scores: I ran the 200-item benchmark evaluation on the 4-bit sibling (way2049/ZoomGain-9B-MLX-4bit), not on this 8-bit build. I have smoke-tested this 8-bit conversion for speed and memory on the same Mac, but its benchmark accuracy is not measured yet. Chinese accuracy and ZoomGain-4B are also not measured yet.
ZoomGain-9B is based on the Qwen3.5 architecture and reinforcement-learned on about 9K ZoomGain samples so it can inspect small details in large images in a single forward pass without calling a zoom tool (arXiv:2611.14076v1). This repository packages the 8-bit MLX quantization for Apple silicon. It is a community conversion prepared for @way2049, not an official inclusionAI release.
License status: The upstream ZoomGain-9B weights ship without a stated license. This quant follows the same convention as the existing GGUF conversions (including inclusionAI's own) and is tagged
license: other. I've asked inclusionAI in ZoomGain#2 and will follow their answer, including updating the license or taking this repo down if they request it.
Quick start
pip install -U "mlx-vlm>=0.8.0"
python -m mlx_vlm generate \
--model way2049/ZoomGain-9B-MLX-8bit \
--image /path/to/image.jpg \
--prompt "Describe this image." \
--max-tokens 128 \
--temperature 0.0
Leave Qwen3.5 thinking off (do not pass --enable-thinking) for a short greedy answer.
from mlx_vlm import load, generate
model, processor = load("way2049/ZoomGain-9B-MLX-8bit")
result = generate(
model,
processor,
prompt="Describe this image.",
image="/path/to/image.jpg",
max_tokens=128,
temperature=0.0,
)
print(result)
Results (4-bit reference; 8-bit not measured yet)
I have not run the 200-item ZoomGainBench slice on this 8-bit build yet. The table below shows how the 4-bit sibling performed on that English slice (seed 20261118, official scorer) alongside the base model and Grok 4.7.
| Setting | Overall | attr (94) | counting (19) | ocr (87) |
|---|---|---|---|---|
| Grok 4.7, up to 2 self-crops (agentic) | 76.23% | 75.53% | 73.68% | 77.54% |
| ZoomGain-9B MLX 4-bit sibling, single pass | 52.68% | 53.19% | 68.42% | 48.70% |
| Grok 4.7, single look, no crop | 33.13% | 30.85% | 63.16% | 29.04% |
| Qwen3.5-9B MLX 4-bit, single pass | 31.69% | 23.40% | 63.16% | 33.77% |
| ZoomGain-9B MLX 8-bit (this repo) | not measured yet | not measured yet | not measured yet | not measured yet |
What surprised me in the 4-bit run was how much the single-look restriction mattered. When neither model could crop, 4-bit ZoomGain beat single-look Grok on 62 items and trailed on 21 (both right 46, both wrong 71). Once Grok was allowed up to two self-crops, Grok alone won 65 vs 18. On the full 1,000-question bilingual benchmark, the paper reports 32.13 for Qwen3.5-9B and 55.48 for BF16 ZoomGain-9B. Whether this 8-bit MLX build recovers any of the 2.80-point gap between our 4-bit English slice and the paper's bilingual figure is not measured yet.
Where the 4-bit sibling holds up, and where it breaks
All examples below come from the 4-bit evaluation; I have not run 8-bit outputs on these items yet. Because benchmark images have no stated license, I describe them in words only.
In single-pass attribute questions, the 4-bit sibling picked out small details that both base Qwen and uncropped Grok missed. On item_000353 (color of the hair clip on the woman at the lower-right of the boat with the red-helmeted man; gold E. Purple), 4-bit ZoomGain answered E and matched cropped Grok (E), while Qwen answered C (silver) and uncropped Grok answered B (white). On item_000081 (object on the red picnic table on the left; gold C. Planter), 4-bit ZoomGain answered C, whereas Qwen picked A (hose reel) and Grok answered B (nothing) both with and without a crop.
Its weakest category is small-text OCR (48.70% on 4-bit). On item_000659 (address text below "LE LIMOUSIN" on a black oval sign; gold 1 rue de Satory Versailles), 4-bit ZoomGain guessed 1 rue de Saint Cyr (score 0) while cropped Grok zoomed in and read the exact address (1.0). Strict case-sensitive scoring also hurts: on item_000220 (billboard logo, gold HOTLiNK), 4-bit ZoomGain, Qwen, and cropped Grok all wrote Hotlink (case-sensitive ANLS 0.29) and scored 0. In counting, repeated patterns across symmetric surfaces can cause double-counting: on item_000236 (cartoon characters on the rear doors of a white van; gold 3), 4-bit ZoomGain answered 6 while Qwen and cropped Grok answered 3.
Speed and memory
I smoke-tested this 8-bit build locally on 2026-11-18 on a Mac mini (Apple M4 Pro, 24 GB unified memory, macOS 26.5.1) using mlx-vlm 0.8.0. The test used the public-domain NASA Apollo 17 "Blue Marble" image with the prompt "Describe this image in one or two sentences." (923 prompt tokens, temperature 0, max 128 tokens).
| Metric | 8-bit (this repo) | 4-bit sibling |
|---|---|---|
| Generation speed | 27.04 tok/s (33 tokens) | 47.15 tok/s (55 tokens) |
| Prompt speed | 229.7 tok/s | 246.5 tok/s |
| Peak memory (smoke test) | 11.52 GB | 7.19 GB |
| Weights on disk | 9.8 GB | 5.6 GB |
| 200-item slice accuracy | not measured yet | 52.68% |
On larger benchmark images (mean 3,573.8 prompt tokens), the 4-bit sibling peaked at 9.59 GB (mean per-item peak 8.44 GB) and averaged 29.25 s/item. I have not measured 8-bit peak memory across the high-resolution benchmark images yet, though it will sit above the 11.52 GB Apollo smoke test.
How it was converted and evaluated
I converted this build with mlx-vlm 0.8.0:
python -m mlx_vlm convert \
--hf-path inclusionAI/ZoomGain-9B \
--mlx-path ./ZoomGain-9B-MLX-8bit \
-q --q-bits 8 --q-group-size 64 --q-mode affine
Only the language model is quantized to 8-bit; the vision tower stays at full precision by default in mlx-vlm.
The 4-bit reference evaluation ran on 200 English ZoomGainBench items (seed 20261118: 94 attr, 19 counting, 87 ocr) with the official scorer (last <answer> tag; exact MCQ letter; exact integer; case-sensitive whitespace-insensitive OCR ANLS >= 0.7). MLX ran at temperature 0, thinking off, ZWZ_SYSTEM_PROMPT, and max_tokens=2048. Grok no-crop read each image once via its file tool (0 crop files); Grok self-crop allowed up to two crops. This 8-bit model was not part of that run.
Caveats
Do not assume this 8-bit build matches or improves on the 4-bit table before it is actually benchmarked; 8-bit accuracy is not measured yet. The reference scores also cover only one run on a 200-item English slice with no error bars, leaving Chinese questions and ZoomGain-4B unmeasured. In addition, the Grok setups are not like-for-like against local MLX: Grok no-crop reads images through its file tool (which may downscale large images), and Grok with crops runs an agentic loop rather than a single local forward pass. Because ZoomGainBench has no stated license, benchmark images are not redistributed here.
License
Upstream weight license not stated. This repo uses license: other and will follow inclusionAI's answer.
As of 2026-11-21 (America/Los_Angeles):
- inclusionAI/ZoomGain-9B has no
LICENSEfile, no Hublicensetag, and no checkpoint license statement in its README. - inclusionAI/ZoomGain is Apache-2.0 for code only; its README defers checkpoint and dataset terms to the Hugging Face cards, which state none.
- The base model Qwen/Qwen3.5-9B is Apache-2.0, which does not automatically license this fine-tuned checkpoint.
This card therefore uses license: other and does not claim Apache-2.0 for the weights. Existing GGUF conversions, including inclusionAI's own (inclusionAI/ZoomGain-9B-GGUF, bartowski/ZoomGain-9B-GGUF) are distributed on the same basis. A license clarification was requested in ZoomGain#2 on 2026-11-20. If inclusionAI publishes terms, this card will be updated to match; if they ask for removal, the repo will be taken down.
Credits and citation
Upstream model, RL data, and benchmark are by inclusionAI on top of Qwen3.5-9B. MLX conversion uses mlx-vlm 0.8.0. Quantization and Mac evaluation prepared for Hugging Face user way2049.
@article{shen2026zoomgain,
title = {ZoomGain: Mining Global-to-Zoom Perception Gaps for Fine-Grained Visual Supervision},
author = {Shen, Haozhan and He, Liangbo and Lan, Jun and Zhu, Huijia and Wang, Weiqiang and Zhao, Tiancheng and Yin, Jianwei},
journal = {arXiv preprint arXiv:2611.14076},
year = {2026}
}
- Downloads last month
- 39
8-bit
Model tree for way2049/ZoomGain-9B-MLX-8bit
Base model
inclusionAI/ZoomGain-9B