Instructions to use Skywalker0410/ZoomLynx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Skywalker0410/ZoomLynx with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Skywalker0410/ZoomLynx") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Skywalker0410/ZoomLynx") model = AutoModelForMultimodalLM.from_pretrained("Skywalker0410/ZoomLynx", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Skywalker0410/ZoomLynx with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Skywalker0410/ZoomLynx" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Skywalker0410/ZoomLynx", "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/Skywalker0410/ZoomLynx
- SGLang
How to use Skywalker0410/ZoomLynx with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Skywalker0410/ZoomLynx" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Skywalker0410/ZoomLynx", "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 images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Skywalker0410/ZoomLynx" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Skywalker0410/ZoomLynx", "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" } } ] } ] }' - Docker Model Runner
How to use Skywalker0410/ZoomLynx with Docker Model Runner:
docker model run hf.co/Skywalker0410/ZoomLynx
ZoomLynx: Learning to Zoom In on What Matters
English | ็ฎไฝไธญๆ

๐ Quick Links
- ๐ค Hugging Face ยท ZoomLynx-M2 ยท Aperture-580
ModelScope ยท ZoomLynx ยท Aperture-580
- ๐ Project Page ยท ZoomLynx
- ๐ป GitHub Code ยท Skywalker-yqz/ZoomLynx
- ๐ Paper ยท arXiv:2611.40816 ยท PDF
- ๐ ๏ธ Usage ยท Inputs and outputs ยท Local inference ยท Serving ยท Batch workers ยท Evaluation
๐ฐ 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.

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

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๏ผๅญฆไผๆพๅคงๅพๅไธญ็ๅ
ณ้ฎไฟกๆฏ
English | ็ฎไฝไธญๆ

๐ ๅฟซ้้พๆฅ
- ๐ค Hugging Face ยท ZoomLynx-M2 ยท Aperture-580
ModelScope ยท ZoomLynx ยท Aperture-580
- ๐ ้กน็ฎไธป้กต ยท ZoomLynx
- ๐ป GitHub ไปฃ็ ยท Skywalker-yqz/ZoomLynx
- ๐ ่ฎบๆ ยท arXiv:2611.40816 ยท PDF
- ๐ ๏ธ ไฝฟ็จๆๅ ยท ่พๅ ฅไธ่พๅบ ยท ๅๅพๆจ็ ยท ๆๅก้จ็ฝฒ ยท ๆน้่ฏๆต ยท ่ฏๆต็ปๆ
๐ฐ ๆๆฐๅจๆ
- ไปฃ็ [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ใ

ๅทฅไฝๆนๅผใ ๆบ่ฝไฝ่ฐ็จ 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

ZoomBench ยท HR-Bench 4K ยท HR-Bench 8K ยท V*Bench ยท ActiView ยท MME-RealWorld-Lite ยท Aperture-580
่ทจ่ง่ง็คบไพ
ZoomLynx ็่ฎญ็ปไปปๅกไฝฟ็จๅๅผ ๅพๅใๅจ่ฟไธชๆฅ่ช MMSI-Bench ็้ถๆ ทๆฌ็คบไพไธญ๏ผๆจกๅๅจๆจ็ๆถๅฏไปฅไปไธคไธช่ง่งไธญ้ๅบใ็ฌฌไธๅค่ฃๅชๆพๅฐไบ้ข็ด๏ผ็ฌฌไบๅคๅช็ๅฐ้จๆก๏ผ็ฌฌไธๆฌกๅๆขๅฐๅฆไธไธช่ง่ง๏ผๆพๅฐไบ้ๅญไธๆน็ๆกๅญใๆจกๅๆฎๆญคๆญฃ็กฎๅคๆญๆกๅญๆด้ฟใ

- Downloads last month
- 41
Model tree for Skywalker0410/ZoomLynx
Base model
Qwen/Qwen3-VL-4B-Instruct