ZoomLynx ZoomLynx: Learning to Zoom In on What Matters

English | ็ฎ€ไฝ“ไธญๆ–‡

ZoomLynx compares object positions, reads signs and recovers from a missed crop.

๐Ÿ”— Quick Links

๐Ÿ“ฐ News

  • Code [12/01/2026] ยท The GitHub repository now includes inference, training and evaluation code. See the project page for examples.
  • Model [11/30/2026] ยท The ZoomLynx-M2 weights are available on Hugging Face.
  • Benchmark [11/30/2026] ยท Aperture-580 is available with 580 annotated questions and tools to fetch the evaluation images.
  • Paper [11/30/2026] ยท Read the ZoomLynx paper on arXiv or download the PDF.

Model Overview

Description

ZoomLynx is a 4B visual reasoning agent for high-resolution images. With one zoom tool, it learns when to inspect a detail, where to look, and when to stop. It can answer from the full image, zoom in to gather evidence, or abstain if the image cannot resolve the question. The checkpoint released here is ZoomLynx-M2, trained with supervised fine-tuning (SFT). Aperture-580 evaluates both its answers and the observations it chooses to make.

License/Terms of Use

ZoomLynx weights and project code use Apache 2.0. The base model and separately downloaded super-resolution weights retain their upstream notices. License and upstream credits

Citation

Model Architecture

Selective Zoom Training starts from Qwen3-VL-4B-Instruct and produces the full BF16 M2 checkpoint. Training examples cover direct answers, necessary zooms, comparisons across regions, recovery from a missed crop, and abstention. On repaired trajectories, the failed call and the image the model actually saw remain in the context. A teacher continues from that observation, and the corrected continuation supplies the supervision. M2 is the common starting point for two independent experiments, M3 with DPO and M4 with GSPO.

Selective Zoom Training and the DPO and GSPO branches from M2.

How it works. The agent calls zoom_and_super_resolve with a visible image and a bounding box. The executor returns a lossless Raw Crop and, for eligible small regions, a 2ร— or 4ร— Real-ESRGAN SR Crop. The enhanced view helps with inspection. Factual details such as letters must be supported by the raw pixels. If a crop misses, the agent can return to the original image and select another region. Each question allows three tool attempts, including rejected calls.

Inputs and Outputs

Interface What to provide or read
Input One image file and one question. The local runner accepts English or Chinese with --lang en or --lang zh.
Zoom request image_idx selects the original (0) or a returned view. bbox_2d is an integer box [x1, y1, x2, y2] in 0โ€“1000 coordinates relative to that view. The client executes the crop and sends the resulting pixels back to the model.
Terminal response A single JSON object carries action (answer or stop) and an answer string. The scorer reads the text inside <answer>โ€ฆ</answer>. A stop also supplies a reason, such as insufficient_visual_evidence.
Local output runs/demo/trace.json contains status, answer, n_tool_calls, turns, and messages. Generated crops are written as PNGs beside it.

Inference

Environment

Use Linux, Python 3.10 and a BF16-capable accelerator. The release runner uses Transformers 4.57.1 with the included processor, chat template and prompts. Download both BF16 shards (9.65 GB in total) with Git LFS, or place an existing full download in ~/zoomlynx-run/weights.

mkdir -p "$HOME/zoomlynx-run"
cd "$HOME/zoomlynx-run"
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/Skywalker0410/ZoomLynx weights
git -C weights lfs pull

The example runs on one CUDA device using the teaser image bundled with this card. Replace the image path and question to use your own image.

cd "$HOME/zoomlynx-run"
python3.10 -m venv .local-env
source .local-env/bin/activate
cd weights
python -m pip install "torch==2.5.1" "torchvision==0.20.1"
python -m pip install -r requirements-inference.txt
python agent/infer.py --weights . --image assets/teaser.png \
  --question "What color is the umbrella in the beach scene?" --lang en --device cuda:0 --out runs/demo

Run this in the same directory to read the terminal status, number of zoom calls and short answer.

python - <<'PY'
import json, re
from pathlib import Path

trace = json.loads(Path("runs/demo/trace.json").read_text(encoding="utf-8"))
short = re.search(r"<answer>(.*?)</answer>", trace["answer"] or "", re.S)
print(trace["status"], trace["n_tool_calls"], short.group(1).strip() if short else "")
PY

For example, the checkpointโ€™s recorded local run on Aperture-580 item zf_0090 ended with answer, two zoom calls and the text DUCK TAPE. The local agent uses greedy decoding, up to four model turns and 1,024 new tokens per turn by default. Start the SR service below to enable enhanced crops. When that service is unavailable, the executor can still return the raw crop. Local agent ยท Tool contract

Inference Infrastructure

For persistent serving, vLLM runs the model, Real-ESRGAN enhances small crops, and the client drives the conversation. The client calls /v1/chat/completions, executes each requested crop, appends the returned images, and requests another turn until the model answers or stops.

Service environment

Use the downloaded weights above and a separate Python 3.12 environment for the services.

cd "$HOME/zoomlynx-run"
git clone https://github.com/Skywalker-yqz/ZoomLynx.git code
python3.12 -m venv .serve-env
source .serve-env/bin/activate
python -m pip install "vllm==0.15.0" "pydantic>=2" fastapi uvicorn numpy pillow requests

Model server

Start vLLM on GPU 0. The paper uses BF16, tensor parallelism 1, a 49,152-token context, 0.85 GPU memory utilization and the Hermes tool parser. For evaluation, the client uses greedy decoding (temperature 0, top-p 1.0) with up to 2,048 new tokens per turn. Serving and decoding settings, Table 14

cd "$HOME/zoomlynx-run/code"
source ../.serve-env/bin/activate
MODEL="$HOME/zoomlynx-run/weights" SERVED_NAME=zoomlynx PORT=8000 \
  CUDA_VISIBLE_DEVICES=0 TP=1 GPU_MEM=0.85 MAX_LEN=49152 MAX_NUM_SEQS=64 MAX_IMAGES=40 \
  bash inference/serve_vllm.sh

Super-resolution service

In a second terminal, start Real-ESRGAN on GPU 1. On a one-GPU host, replace CUDA_VISIBLE_DEVICES=1 DEVICE=cuda DTYPE=fp16 with DEVICE=cpu DTYPE=fp32 to run SR on the CPU.

cd "$HOME/zoomlynx-run/code"
source ../.serve-env/bin/activate
export SR_MODEL_DIR="$PWD/weights/RealESRGAN"
bash scripts/download_sr_weights.sh "$SR_MODEL_DIR"
CUDA_VISIBLE_DEVICES=1 DEVICE=cuda DTYPE=fp16 MAX_CONCURRENCY=2 \
  bash tool_servers/sr/start.sh --host 127.0.0.1 --port 9049

Client request

In a third terminal, check the endpoints and ask one question. The HTTP clientโ€™s default protocol uses the Chinese system prompt. For the English protocol, follow the prompt guide.

cd "$HOME/zoomlynx-run/code"
source ../.serve-env/bin/activate
curl -fsS http://127.0.0.1:8000/v1/models
curl -fsS http://127.0.0.1:9049/health
python inference/run_demo.py --image ../weights/assets/teaser.png \
  --question "ๆตทๆปฉๅœบๆ™ฏไธญ๏ผŒ้ฎ้˜ณไผžๆ˜ฏไป€ไนˆ้ขœ่‰ฒ็š„๏ผŸ" --model zoomlynx \
  --base-url http://127.0.0.1:8000/v1 --sr-url http://127.0.0.1:9049/v1/sr/upscale \
  --output-dir runs/http-demo

The HTTP demo prints the short answer and writes runs/http-demo/trace.json with messages and terminal. For a stopped episode, inspect terminal.reason.

Setting What it controls
TP=1 GPUs sharing one model. For two model GPUs, use CUDA_VISIBLE_DEVICES=0,1 TP=2 and assign SR to another device or the CPU.
MAX_NUM_SEQS=64, MAX_IMAGES=40 vLLMโ€™s maximum concurrent sequences and maximum images per prompt. Returned crop views count toward the image limit.
MAX_CONCURRENCY=2 Number of simultaneous SR requests. Batch client workers share the model and SR endpoints.

Batch Workers

Keep both services running. Each worker handles one question through its entire tool loop. The example uses eight client threads and the original Chinese Aperture-580 test set. Set --images to your local image directory matched to the dataset manifest. The converter writes absolute image paths for the workers.

Batch evaluation commands ยท Bash
cd "$HOME/zoomlynx-run"
source .serve-env/bin/activate
git clone https://huggingface.co/datasets/Skywalker0410/Aperture-580 benchmark
python benchmark/tools/make_eval_jsonl.py --lang zh \
  --images /path/to/matched-images --out runs/ap580-zh.jsonl
python code/eval/run_agent_eval.py --benchmark runs/ap580-zh.jsonl \
  --base-url http://127.0.0.1:8000/v1 --model zoomlynx \
  --sr-url http://127.0.0.1:9049/v1/sr/upscale --workers 8 \
  --max-new-tokens 2048 --output-dir runs/ap580-m2 --resume
python code/eval/summarize.py --benchmark runs/ap580-zh.jsonl \
  --rollout runs/ap580-m2/rollout.jsonl --out runs/ap580-m2/summary.json

rollout.jsonl has one row per question, including sample_id, final_answer, status, n_tool_calls, score, and trace_path. Rerun the evaluation command with the same output directory and --resume to skip recorded IDs. The summary reports string-match accuracy, tool-use rate and mean calls. For open-ended Chinese answers, the paper used GPT-5.5 equivalence judgments and audited Stop decisions separately. Evaluation and scoring

Evaluation

The released M2 (SFT) checkpoint scores 60.95% on ZoomBench, 93.72% on V*Bench, and 71.55% on Aperture-580 with the three-call Agent protocol. It abstains appropriately on 59 of the 74 unanswerable Aperture-580 questions.

The paper also reports a separate M4 (GSPO) result. With access to the zoom tool, M4 scores 61.18% on ZoomBench and 94.24% on V*Bench. Both scores exceed the GPT-5.5 and Gemini-3.1-pro results in the paperโ€™s Direct setting, where the models answer without tools. Benchmark results, Table 1

Accuracy of M2, M4 and the leading baselines on seven benchmarks.

ZoomBench ยท HR-Bench 4K ยท HR-Bench 8K ยท V*Bench ยท ActiView ยท MME-RealWorld-Lite ยท Aperture-580

Cross-View Example

ZoomLynx trained on single-image tasks. In this zero-shot MMSI-Bench example, it can select either of two views at inference. The first crop shows the piano, the second shows a doorframe, and the third finds the table under the mirror in the other view. ZoomLynx correctly answers that the table is longer.

ZoomLynx compares the piano and table across views after a crop misses the table.


ZoomLynx ZoomLynx๏ผšๅญฆไผšๆ”พๅคงๅ›พๅƒไธญ็š„ๅ…ณ้”ฎไฟกๆฏ

English | ็ฎ€ไฝ“ไธญๆ–‡

ZoomLynx ๆฏ”่พƒ็‰ฉไฝ“ไฝ็ฝฎใ€่พจ่ฎค่ทฏ็‰Œ๏ผŒๅนถๅœจ่ฃๅ‰ชๅ็ฆป็›ฎๆ ‡ๅŽ้‡ๆ–ฐๅฎšไฝใ€‚

๐Ÿ”— ๅฟซ้€Ÿ้“พๆŽฅ

๐Ÿ“ฐ ๆœ€ๆ–ฐๅŠจๆ€

  • ไปฃ็  [12/01/2026] ยท ๆŽจ็†ใ€่ฎญ็ปƒๅ’Œ่ฏ„ๆต‹ไปฃ็ ๅทฒๅœจ GitHub ๅ‘ๅธƒใ€‚ๆจกๅž‹็คบไพ‹่ง้กน็›ฎไธป้กตใ€‚
  • ๆจกๅž‹ [11/30/2026] ยท ZoomLynx-M2 ๆƒ้‡ๅทฒๅœจ Hugging Face ๅ‘ๅธƒใ€‚
  • ่ฏ„ๆต‹้›† [11/30/2026] ยท Aperture-580 ๅทฒๅ‘ๅธƒ๏ผŒๅŒ…ๅซ 580 ้“้ข˜็š„ๆ ‡ๆณจๅ’Œ่ฏ„ๆต‹ๅŽŸๅ›พไธ‹่ฝฝๅทฅๅ…ทใ€‚
  • ่ฎบๆ–‡ [11/30/2026] ยท ZoomLynx ่ฎบๆ–‡ๅทฒๅœจ arXiv ๅ‘ๅธƒ๏ผŒๅฏไธ‹่ฝฝ PDFใ€‚

ๆจกๅž‹ๆฆ‚่งˆ

็ฎ€ไป‹

ZoomLynx ๆ˜ฏ้ขๅ‘้ซ˜ๅˆ†่พจ็އๅ›พๅƒ็š„ 4B ่ง†่ง‰ๆŽจ็†ๆ™บ่ƒฝไฝ“ใ€‚ๅฎƒๅชๆœ‰ไธ€็ง็ผฉๆ”พๅทฅๅ…ท๏ผŒ้œ€่ฆๅˆคๆ–ญไฝ•ๆ—ถๆŸฅ็œ‹ๅฑ€้ƒจใ€ๅŽปๅ“ช้‡Œๅ–่ฏ๏ผŒไปฅๅŠไฝ•ๆ—ถ็ป“ๆŸ่ง‚ๅฏŸใ€‚ๅ…จๅ›พ่ถณไปฅๅ›ž็ญ”ๆ—ถ๏ผŒๅฎƒๅฏไปฅ็›ดๆŽฅไฝœ็ญ”ใ€‚้œ€่ฆ็ป†่Š‚ๆ—ถ๏ผŒๅฎƒๅฏไปฅ้€‰ๅŒบๆ”พๅคง๏ผŒ่ฏๆฎไธ่ถณๆ—ถไนŸๅฏไปฅๅผƒ็ญ”ใ€‚ๆœฌไป“ๅบ“ๅ‘ๅธƒ็š„ๆ˜ฏ็ป่ฟ‡็›‘็ฃๅพฎ่ฐƒ๏ผˆSFT๏ผ‰็š„ ZoomLynx-M2ใ€‚Aperture-580 ๅŒๆ—ถ่ฏ„ๆต‹ๆจกๅž‹็š„็ญ”ๆกˆๅ’Œ่Žทๅ–่ฏๆฎ็š„่ฟ‡็จ‹ใ€‚

่ฎธๅฏไธŽไฝฟ็”จๆกๆฌพ

ZoomLynx ๆƒ้‡ไธŽ้กน็›ฎไปฃ็ ้‡‡็”จ Apache 2.0ใ€‚ๅŸบ็ก€ๆจกๅž‹ไธŽๅฆ่กŒ่Žทๅ–็š„่ถ…ๅˆ†่พจ็އๆƒ้‡ไฟ็•™ๅ„่‡ช็š„ไธŠๆธธๅฃฐๆ˜Žใ€‚่ฎธๅฏไธŽไธŠๆธธ็ฝฒๅ

ๅผ•็”จ

ๆจกๅž‹ๆžถๆž„

M2 ๆ˜ฏไปฅ Qwen3-VL-4B-Instruct ไธบๅŸบ็ก€๏ผŒ็ป้€‰ๆ‹ฉๆ€ง็ผฉๆ”พ่ฎญ็ปƒๅพ—ๅˆฐ็š„ๅฎŒๆ•ด BF16 ๆƒ้‡ใ€‚่ฎญ็ปƒๆ ทๆœฌ่ฆ†็›–็›ดๆŽฅไฝœ็ญ”ใ€ๅฟ…่ฆ็š„ๅฑ€้ƒจ่ง‚ๅฏŸใ€่ทจๅŒบๅŸŸๅ–่ฏใ€่ฃๅ‰ชๅคฑ่ฏฏๅŽ็š„็บ ๆญฃ๏ผŒไปฅๅŠ่ฏๆฎไธ่ถณๆ—ถ็š„ๅผƒ็ญ”ใ€‚ๅฏนไบŽ้œ€่ฆ็บ ๆญฃ็š„่ฝจ่ฟน๏ผŒๆจกๅž‹ๅคฑ่ดฅ็š„่ฐƒ็”จๅ’Œๅฎƒๅฎž้™…็œ‹ๅˆฐ็š„่ฃๅ‰ชๅ›พไผšไฟ็•™ๅœจไธŠไธ‹ๆ–‡ไธญใ€‚ๆ•™ๅธˆๆจกๅž‹ไปŽ่ฟ™ไธ€่ง‚ๅฏŸ็ป“ๆžœ็ปง็ปญๆŽจ็†๏ผŒ็›‘็ฃไฟกๅทๅชๆ–ฝๅŠ ๅœจ็บ ๆญฃๅŽ็š„ๅŽ็ปญๆญฅ้ชคไธŠใ€‚่ฎบๆ–‡ๅฆไปฅ M2 ไธบๅ…ฑๅŒ่ตท็‚น๏ผŒๅˆ†ๅˆซ้€š่ฟ‡ DPO ๅพ—ๅˆฐ M3ใ€้€š่ฟ‡ GSPO ๅพ—ๅˆฐ M4ใ€‚

้€‰ๆ‹ฉๆ€ง็ผฉๆ”พ่ฎญ็ปƒ๏ผŒไปฅๅŠไปŽ M2 ๅ‡บๅ‘็š„ DPO ๅ’Œ GSPO ไธคไธชๅˆ†ๆ”ฏใ€‚

ๅทฅไฝœๆ–นๅผใ€‚ ๆ™บ่ƒฝไฝ“่ฐƒ็”จ zoom_and_super_resolve๏ผŒๆŒ‡ๅฎšๅฝ“ๅ‰ๅฏ่ง็š„ๅ›พๅƒๅ’Œ่ฆๆŸฅ็œ‹็š„ๅŒบๅŸŸใ€‚ๆ‰ง่กŒๅ™จ่ฟ”ๅ›žๆ— ๆŸ็š„ๅŽŸๅง‹่ฃๅ‰ช๏ผˆRaw Crop๏ผ‰ใ€‚่‹ฅๅฐๅŒบๅŸŸๆปก่ถณๆ”พๅคงๆกไปถ๏ผŒ่ฟ˜ไผš่ฟ”ๅ›ž 2ร— ๆˆ– 4ร— ็š„ Real-ESRGAN ่ถ…ๅˆ†่พจ็އ่ง†ๅ›พ๏ผˆSR Crop๏ผ‰ใ€‚่ถ…ๅˆ†ๅ›พ่พ…ๅŠฉ่ง‚ๅฏŸ๏ผŒ่พจ่ฎคๆ–‡ๅญ—็ญ‰็ป†่Š‚ๆ—ถไปฅๅŽŸๅง‹ๅƒ็ด ไธบๅ‡†ใ€‚่ฃๅ‰ชๅ็ฆป็›ฎๆ ‡ๅŽ๏ผŒๆจกๅž‹ๅฏไปฅๅ›žๅˆฐๅŽŸๅ›พ้‡ๆ–ฐ้€‰ๅŒบใ€‚ๆฏ้ข˜ๆœ€ๅคšๅฐ่ฏ•่ฐƒ็”จไธ‰ๆฌก๏ผŒ่ขซๆ‹’็ป็š„่ฐƒ็”จไนŸ่ฎกๅ…ฅ้ข„็ฎ—ใ€‚

่พ“ๅ…ฅไธŽ่พ“ๅ‡บ

ๆŽฅๅฃ ่พ“ๅ…ฅๆˆ–่ฟ”ๅ›žๅ€ผ
่พ“ๅ…ฅ ไธ€ๅผ ๅ›พ็‰‡ๅ’Œไธ€ไธช้—ฎ้ข˜ใ€‚ๆœฌๅœฐ่„šๆœฌ้€š่ฟ‡ --lang zh ๆˆ– --lang en ้€‰ๆ‹ฉไธŽๆ้—ฎ่ฏญ่จ€ๅฏนๅบ”็š„ๆ็คบ่ฏใ€‚
็ผฉๆ”พ่ฏทๆฑ‚ image_idx ๆŒ‡ๅฎšๅŽŸๅ›พ๏ผˆ0๏ผ‰ๆˆ–ๅ‰้ข่ฟ”ๅ›ž็š„่ง†ๅ›พใ€‚bbox_2d ้‡‡็”จๆ•ดๆ•ฐๅๆ ‡ [x1, y1, x2, y2]๏ผŒ็›ธๅฏนไบŽๅฝ“ๅ‰ๆ‰€้€‰่ง†ๅ›พๅฝ’ไธ€ๅŒ–่‡ณ 0โ€“1000ใ€‚ๅฎขๆˆท็ซฏ่ดŸ่ดฃ่ฃๅ‰ชๅนถๅฐ†ๅ›พๅƒๅ›žไผ ๆจกๅž‹ใ€‚
็ปˆๆญขๅ“ๅบ” ๆœ€็ปˆ่ฟ”ๅ›žไธ€ไธช JSON ๅฏน่ฑก๏ผŒๅŒ…ๅซ action๏ผˆanswer ๆˆ– stop๏ผ‰ๅ’Œ answer ๅญ—็ฌฆไธฒใ€‚่ฏ„ๅˆ†ๆ—ถ่ฏปๅ– <answer>โ€ฆ</answer> ไธญ็š„็ฎ€็Ÿญ็ญ”ๆกˆใ€‚stop ่ฟ˜้กป็ป™ๅ‡บ reason๏ผŒไพ‹ๅฆ‚ insufficient_visual_evidence๏ผˆ่ง†่ง‰่ฏๆฎไธ่ถณ๏ผ‰ใ€‚
ๆœฌๅœฐ่พ“ๅ‡บ runs/demo/trace.json ่ฎฐๅฝ• statusใ€answerใ€n_tool_callsใ€turns ๅ’Œ messagesใ€‚็”Ÿๆˆ็š„่ฃๅ‰ชๅ›พไปฅ PNG ๆ ผๅผไฟๅญ˜ๅœจๅŒไธ€็›ฎๅฝ•ใ€‚

ๆŽจ็†้ƒจ็ฝฒ

็Žฏๅขƒ

ไฝฟ็”จ Linuxใ€Python 3.10 ๅ’Œๆ”ฏๆŒ BF16 ็š„ๅŠ ้€Ÿๅกใ€‚ๆœฌๅœฐ่„šๆœฌๅŸบไบŽ Transformers 4.57.1๏ผŒไฝฟ็”จๆƒ้‡ๅŒ…ๅ†…็š„ๅค„็†ๅ™จใ€ๅฏน่ฏๆจกๆฟไธŽๆ็คบ่ฏใ€‚็”จ Git LFS ่Žทๅ–ไธคไธช BF16 ๅˆ†็‰‡๏ผˆๅˆ่ฎก 9.65 GB๏ผ‰๏ผŒไนŸๅฏไปฅๆŠŠๅทฒๅฎŒๆ•ดไธ‹่ฝฝ็š„ๆจกๅž‹ๆ”พๅœจ ~/zoomlynx-run/weightsใ€‚

mkdir -p "$HOME/zoomlynx-run"
cd "$HOME/zoomlynx-run"
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/Skywalker0410/ZoomLynx weights
git -C weights lfs pull

ไธ‹้ข็š„ไพ‹ๅญ็”จๅ•ๅผ  CUDA ๅกๅ’Œๆจกๅž‹ๅก่‡ชๅธฆ็š„ Teaser ๅ›พ็‰‡่ฟ่กŒใ€‚ๆ›ฟๆขๅ›พ็‰‡่ทฏๅพ„ๅ’Œ้—ฎ้ข˜ๅณๅฏๆต‹่ฏ•่‡ชๅทฑ็š„ๅ›พๅƒใ€‚

cd "$HOME/zoomlynx-run"
python3.10 -m venv .local-env
source .local-env/bin/activate
cd weights
python -m pip install "torch==2.5.1" "torchvision==0.20.1"
python -m pip install -r requirements-inference.txt
python agent/infer.py --weights . --image assets/teaser.png \
  --question "ๆตทๆปฉๅœบๆ™ฏไธญ๏ผŒ้ฎ้˜ณไผžๆ˜ฏไป€ไนˆ้ขœ่‰ฒ็š„๏ผŸ" --lang zh --device cuda:0 --out runs/demo

ๅœจๅŒไธ€็›ฎๅฝ•่ฟ่กŒไปฅไธ‹ๅ‘ฝไปค๏ผŒ่ฏปๅ–็ปˆๆญข็Šถๆ€ใ€็ผฉๆ”พ่ฐƒ็”จๆฌกๆ•ฐๅ’Œ็ฎ€็Ÿญ็ญ”ๆกˆใ€‚

python - <<'PY'
import json, re
from pathlib import Path

trace = json.loads(Path("runs/demo/trace.json").read_text(encoding="utf-8"))
short = re.search(r"<answer>(.*?)</answer>", trace["answer"] or "", re.S)
print(trace["status"], trace["n_tool_calls"], short.group(1).strip() if short else "")
PY

ไพ‹ๅฆ‚๏ผŒๆƒ้‡ๅŒ…่ฎฐๅฝ•็š„ Aperture-580 ๆ ทๆœฌ zf_0090 ๆœฌๅœฐๆŽจ็†ๅœจไธคๆฌก็ผฉๆ”พๅŽ่ฟ”ๅ›žไบ† answer๏ผŒ็ฎ€็Ÿญ็ญ”ๆกˆไธบ DUCK TAPEใ€‚ๆœฌๅœฐ่„šๆœฌ้ป˜่ฎค้‡‡็”จ่ดชๅฟƒ่งฃ็ ๏ผŒๆœ€ๅคš็”Ÿๆˆๅ››่ฝฎ๏ผŒๆฏ่ฝฎๆœ€ๅคš 1,024 ไธชๆ–ฐ tokenใ€‚ๅฏๅŠจไธ‹ๆ–‡็š„่ถ…ๅˆ†่พจ็އๆœๅŠกๅณๅฏ่Žทๅพ—ๅขžๅผบ่ง†ๅ›พใ€‚ๆœๅŠกไธๅฏ็”จๆ—ถ๏ผŒๆ‰ง่กŒๅ™จไปๅฏ่ฟ”ๅ›žๅŽŸๅง‹่ฃๅ‰ชใ€‚ๆœฌๅœฐ่„šๆœฌ ยท ๅทฅๅ…ทๅ่ฎฎ

ๆŽจ็†ๅŸบ็ก€่ฎพๆ–ฝ

ๅธธ้ฉป้ƒจ็ฝฒ็”ฑไธ‰ไธช้ƒจๅˆ†็ป„ๆˆใ€‚vLLM ่ฟ่กŒๆจกๅž‹๏ผŒReal-ESRGAN ไธบๅฐๅŒบๅŸŸๆไพ›่ถ…ๅˆ†่พจ็އ่ง†ๅ›พ๏ผŒๅฎขๆˆท็ซฏ่ดŸ่ดฃไธฒ่ตทๅคš่ฝฎ่ง‚ๅฏŸใ€‚ๅฎขๆˆท็ซฏๅ‘ /v1/chat/completions ๅ‘้€่ฏทๆฑ‚๏ผŒๆŒ‰ๆจกๅž‹่ฟ”ๅ›ž็š„ๅ‚ๆ•ฐ่ฃๅ‰ชๅ›พๅƒ๏ผŒๆŠŠๆ–ฐ่ง†ๅ›พๅŠ ๅ…ฅๅฏน่ฏ๏ผŒๅ†ๆฌก่ฏทๆฑ‚ๆจกๅž‹๏ผŒ็›ดๅˆฐไฝœ็ญ”ๆˆ–ๅผƒ็ญ”ใ€‚

ๆœๅŠก็Žฏๅขƒ

ไฝฟ็”จไธŠๆ–‡ไธ‹่ฝฝ็š„ๆƒ้‡๏ผŒๅนถไธบๆœๅŠกๅ•็‹ฌๅˆ›ๅปบ Python 3.12 ็Žฏๅขƒใ€‚

cd "$HOME/zoomlynx-run"
git clone https://github.com/Skywalker-yqz/ZoomLynx.git code
python3.12 -m venv .serve-env
source .serve-env/bin/activate
python -m pip install "vllm==0.15.0" "pydantic>=2" fastapi uvicorn numpy pillow requests

ๆจกๅž‹ๆœๅŠก

ๅœจ GPU 0 ไธŠๅฏๅŠจ vLLMใ€‚่ฎบๆ–‡ไฝฟ็”จ BF16ใ€ๅผ ้‡ๅนถ่กŒๅบฆ 1ใ€49,152 token ไธŠไธ‹ๆ–‡ใ€0.85 ๆ˜พๅญ˜ๅ ็”จๆฏ”ไพ‹ๅ’Œ Hermes ๅทฅๅ…ท่ฐƒ็”จ่งฃๆžๅ™จใ€‚่ฏ„ๆต‹ๅฎขๆˆท็ซฏ้‡‡็”จ่ดชๅฟƒ่งฃ็ ๏ผˆtemperature 0ใ€top-p 1.0๏ผ‰๏ผŒๆฏ่ฝฎๆœ€ๅคš็”Ÿๆˆ 2,048 ไธชๆ–ฐ tokenใ€‚ๆœๅŠกไธŽ่งฃ็ ๅ‚ๆ•ฐ๏ผŒ่กจ 14

cd "$HOME/zoomlynx-run/code"
source ../.serve-env/bin/activate
MODEL="$HOME/zoomlynx-run/weights" SERVED_NAME=zoomlynx PORT=8000 \
  CUDA_VISIBLE_DEVICES=0 TP=1 GPU_MEM=0.85 MAX_LEN=49152 MAX_NUM_SEQS=64 MAX_IMAGES=40 \
  bash inference/serve_vllm.sh

่ถ…ๅˆ†่พจ็އๆœๅŠก

ๅœจ็ฌฌไบŒไธช็ปˆ็ซฏไฝฟ็”จ GPU 1 ๅฏๅŠจ Real-ESRGANใ€‚ๅชๆœ‰ไธ€ๅผ  GPU ๆ—ถ๏ผŒๅฏๅฐ† CUDA_VISIBLE_DEVICES=1 DEVICE=cuda DTYPE=fp16 ๆ›ฟๆขไธบ DEVICE=cpu DTYPE=fp32๏ผŒๅœจ CPU ไธŠ่ฟ่กŒ่ถ…ๅˆ†่พจ็އใ€‚

cd "$HOME/zoomlynx-run/code"
source ../.serve-env/bin/activate
export SR_MODEL_DIR="$PWD/weights/RealESRGAN"
bash scripts/download_sr_weights.sh "$SR_MODEL_DIR"
CUDA_VISIBLE_DEVICES=1 DEVICE=cuda DTYPE=fp16 MAX_CONCURRENCY=2 \
  bash tool_servers/sr/start.sh --host 127.0.0.1 --port 9049

ๅฎขๆˆท็ซฏ่ฏทๆฑ‚

ๅœจ็ฌฌไธ‰ไธช็ปˆ็ซฏๆฃ€ๆŸฅไธคไธชๆœๅŠกๅนถๅ‘้€ไธ€้“้—ฎ้ข˜ใ€‚HTTP ๅฎขๆˆท็ซฏ็š„้ป˜่ฎคๅ่ฎฎไฝฟ็”จไธญๆ–‡็ณป็ปŸๆ็คบ่ฏใ€‚่‹ฑๆ–‡้—ฎ้ข˜็š„ๅ่ฎฎ้…็ฝฎ่งๆ็คบ่ฏๆŒ‡ๅ—ใ€‚

cd "$HOME/zoomlynx-run/code"
source ../.serve-env/bin/activate
curl -fsS http://127.0.0.1:8000/v1/models
curl -fsS http://127.0.0.1:9049/health
python inference/run_demo.py --image ../weights/assets/teaser.png \
  --question "ๆตทๆปฉๅœบๆ™ฏไธญ๏ผŒ้ฎ้˜ณไผžๆ˜ฏไป€ไนˆ้ขœ่‰ฒ็š„๏ผŸ" --model zoomlynx \
  --base-url http://127.0.0.1:8000/v1 --sr-url http://127.0.0.1:9049/v1/sr/upscale \
  --output-dir runs/http-demo

HTTP ๅฎขๆˆท็ซฏไผšๆ‰“ๅฐ็ฎ€็Ÿญ็ญ”ๆกˆ๏ผŒๅนถๅœจ runs/http-demo/trace.json ไธญๅ†™ๅ…ฅ messages ๅ’Œ terminalใ€‚ๅผƒ็ญ”ๅŽŸๅ› ่ง terminal.reasonใ€‚

้…็ฝฎ ๅซไน‰
TP=1 ๅˆ†ๆ‹…ๅŒไธ€ไปฝๆจกๅž‹ๆƒ้‡็š„ GPU ๆ•ฐใ€‚ๅŒๅกๅผ ้‡ๅนถ่กŒๅฏ่ฎพ CUDA_VISIBLE_DEVICES=0,1 TP=2๏ผŒๅนถๅฐ†่ถ…ๅˆ†่พจ็އๆœๅŠกๆ”พๅœจๅ…ถไป–่ฎพๅค‡ๆˆ– CPU ไธŠใ€‚
MAX_NUM_SEQS=64ใ€MAX_IMAGES=40 vLLM ๅŒๆ—ถๅค„็†็š„ๆœ€ๅคงๅบๅˆ—ๆ•ฐๅ’Œๆฏไธชๆ็คบๅ…่ฎธ็š„ๆœ€ๅคงๅ›พๅƒๆ•ฐใ€‚ๆฏๆฌก่ฟ”ๅ›ž็š„่ฃๅ‰ช่ง†ๅ›พไนŸ่ฎกๅ…ฅๅ›พๅƒๆ•ฐใ€‚
MAX_CONCURRENCY=2 ่ถ…ๅˆ†่พจ็އๆœๅŠกๅฏๅŒๆ—ถๅค„็†็š„่ฏทๆฑ‚ๆ•ฐใ€‚ๆ‰น้‡ๆŽจ็†็š„ๅ„ไธช worker ๅ…ฑ็”จๆจกๅž‹ๅ’Œ่ถ…ๅˆ†่พจ็އๆœๅŠกใ€‚

ๆ‰น้‡่ฏ„ๆต‹ Worker

ไฟๆŒไธคไธชๆœๅŠก่ฟ่กŒใ€‚ๆฏไธช worker ่ดŸ่ดฃไธ€้“้ข˜็š„ๅฎŒๆ•ดๅคš่ฝฎ่ง‚ๅฏŸ่ฟ‡็จ‹ใ€‚ไธ‹้ข็”จๅ…ซไธชๅฎขๆˆท็ซฏ็บฟ็จ‹่ฟ่กŒ Aperture-580 ไธญๆ–‡ๅŽŸ้ข˜ใ€‚ๅฐ† --images ๆ›ฟๆขไธบๆŒ‰ๅ›พๅƒๆธ…ๅ• ๅŒน้…ๅฅฝ็š„ๆœฌๅœฐ็›ฎๅฝ•๏ผŒ่ฝฌๆข่„šๆœฌไผšๅ†™ๅ‡บไพ› worker ไฝฟ็”จ็š„ๅ›พๅƒ็ปๅฏน่ทฏๅพ„ใ€‚

ๆ‰น้‡่ฏ„ๆต‹ๅ‘ฝไปค ยท Bash
cd "$HOME/zoomlynx-run"
source .serve-env/bin/activate
git clone https://huggingface.co/datasets/Skywalker0410/Aperture-580 benchmark
python benchmark/tools/make_eval_jsonl.py --lang zh \
  --images /path/to/matched-images --out runs/ap580-zh.jsonl
python code/eval/run_agent_eval.py --benchmark runs/ap580-zh.jsonl \
  --base-url http://127.0.0.1:8000/v1 --model zoomlynx \
  --sr-url http://127.0.0.1:9049/v1/sr/upscale --workers 8 \
  --max-new-tokens 2048 --output-dir runs/ap580-m2 --resume
python code/eval/summarize.py --benchmark runs/ap580-zh.jsonl \
  --rollout runs/ap580-m2/rollout.jsonl --out runs/ap580-m2/summary.json

rollout.jsonl ๆฏ้ข˜ไธ€่กŒ๏ผŒๅŒ…ๆ‹ฌ sample_idใ€final_answerใ€statusใ€n_tool_callsใ€score ๅ’Œ trace_pathใ€‚็ปง็ปญ่ฏ„ๆต‹ๆ—ถ๏ผŒไฝฟ็”จ็›ธๅŒ็š„่พ“ๅ‡บ็›ฎๅฝ•ๅ’Œ --resume๏ผŒๅณๅฏ่ทณ่ฟ‡ๅทฒ่ฎฐๅฝ•็š„ๆ ทๆœฌ IDใ€‚ๆฑ‡ๆ€ป่„šๆœฌๆŠฅๅ‘Šๅญ—็ฌฆไธฒๅŒน้…ๅ‡†็กฎ็އใ€ๅทฅๅ…ทไฝฟ็”จ็އๅ’Œๅนณๅ‡่ฐƒ็”จๆฌกๆ•ฐใ€‚่ฎบๆ–‡ๅฏนไธญๆ–‡ๅผ€ๆ”พๅผ็ญ”ๆกˆ้‡‡็”จ GPT-5.5 ๅˆคๆ–ญ็ญ”ๆกˆๆ˜ฏๅฆ็ญ‰ไปท๏ผŒๅนถๅ•็‹ฌ่ฏ„ไผฐๅผƒ็ญ”่กŒไธบใ€‚่ฏ„ๆต‹ไธŽ่ฎกๅˆ†

่ฏ„ๆต‹

ๅœจๆฏ้ข˜ๆœ€ๅคš่ฐƒ็”จไธ‰ๆฌกๅทฅๅ…ท็š„ Agent ่ฎพ็ฝฎไธ‹๏ผŒๆœฌไป“ๅบ“ๅ‘ๅธƒ็š„ M2๏ผˆSFT๏ผ‰ ๅœจ **ZoomBench ไธŠ่พพๅˆฐ 60.95%**๏ผŒๅœจ **V*Bench ไธŠ่พพๅˆฐ 93.72%**๏ผŒๅœจ **Aperture-580 ไธŠ่พพๅˆฐ 71.55%**ใ€‚Aperture-580 ๆœ‰ 74 ้“ๆ— ๆณ•ๅ‡ญๅ›พๅƒๅฏ้ ไฝœ็ญ”็š„้—ฎ้ข˜๏ผŒM2 ๅœจๅ…ถไธญ 59 ้“ไธŠๆญฃ็กฎๅผƒ็ญ”ใ€‚

่ฎบๆ–‡่ฟ˜ๅ•็‹ฌๆŠฅๅ‘Šไบ† M4๏ผˆGSPO๏ผ‰ ็š„็ป“ๆžœใ€‚M4 ไฝฟ็”จ็ผฉๆ”พๅทฅๅ…ท๏ผŒๅœจ **ZoomBench ไธŠ่พพๅˆฐ 61.18%**๏ผŒๅœจ **V*Bench ไธŠ่พพๅˆฐ 94.24%**ใ€‚ไฝœไธบๅฏน็…ง๏ผŒGPT-5.5 ๅ’Œ Gemini-3.1-pro ๅœจ่ฎบๆ–‡็š„ Direct ่ฎพ็ฝฎไธ‹็›ดๆŽฅ็œ‹ๅ›พไฝœ็ญ”๏ผŒไธ่ฐƒ็”จๅทฅๅ…ทใ€‚M4 ๅœจ่ฟ™ไธค้กนๅŸบๅ‡†ไธŠ็š„ๅˆ†ๆ•ฐๅ‡้ซ˜ไบŽ่ฟ™ไธคไธชๅฏน็…งๆจกๅž‹ใ€‚ๅŸบๅ‡†็ป“ๆžœ๏ผŒ่กจ 1

M2ใ€M4 ไธŽ้ข†ๅ…ˆๅŸบ็บฟๅœจไธƒ้กนๅŸบๅ‡†ไธŠ็š„ๅ‡†็กฎ็އใ€‚

ZoomBench ยท HR-Bench 4K ยท HR-Bench 8K ยท V*Bench ยท ActiView ยท MME-RealWorld-Lite ยท Aperture-580

่ทจ่ง†่ง’็คบไพ‹

ZoomLynx ็š„่ฎญ็ปƒไปปๅŠกไฝฟ็”จๅ•ๅผ ๅ›พๅƒใ€‚ๅœจ่ฟ™ไธชๆฅ่‡ช MMSI-Bench ็š„้›ถๆ ทๆœฌ็คบไพ‹ไธญ๏ผŒๆจกๅž‹ๅœจๆŽจ็†ๆ—ถๅฏไปฅไปŽไธคไธช่ง†่ง’ไธญ้€‰ๅŒบใ€‚็ฌฌไธ€ๅค„่ฃๅ‰ชๆ‰พๅˆฐไบ†้’ข็ด๏ผŒ็ฌฌไบŒๅค„ๅช็œ‹ๅˆฐ้—จๆก†๏ผŒ็ฌฌไธ‰ๆฌกๅˆ‡ๆขๅˆฐๅฆไธ€ไธช่ง†่ง’๏ผŒๆ‰พๅˆฐไบ†้•œๅญไธ‹ๆ–น็š„ๆกŒๅญใ€‚ๆจกๅž‹ๆฎๆญคๆญฃ็กฎๅˆคๆ–ญๆกŒๅญๆ›ด้•ฟใ€‚

ไธ€ๆฌก่ฃๅ‰ชๅ็ฆปๆกŒๅญๅŽ๏ผŒZoomLynx ๅˆ‡ๆข่ง†่ง’๏ผŒๆฏ”่พƒ้’ข็ดๅ’ŒๆกŒๅญ็š„้•ฟๅบฆใ€‚

Downloads last month
41
Safetensors
Model size
4B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Skywalker0410/ZoomLynx

Finetuned
(585)
this model

Paper for Skywalker0410/ZoomLynx