We are pleased to announce the release of
Ovis2.5
, the successor to Ovis2, designed for native-resolution visual perception and enhanced multimodal reasoning.
It integrates a native-resolution vision transformer (NaViT) that processes images at their original, variable resolutions, eliminating the need for fixed-resolution tiling and preserving both fine details and global layout—crucial for visually dense content such as charts and diagrams.
To strengthen reasoning, Ovis2.5 is trained not only on linear chain-of-thought (CoT) but also on reflective reasoning, including self-checking and revision.
This advanced capability is available at inference as an optional
thinking mode
, enabling users to trade latency for higher accuracy on complex inputs.
Building on these advances,
Ovis2.5-9B
achieves an average score of 78.3 on the OpenCompass multimodal evaluation suite (SOTA among open-source MLLMs under 40B parameters), while the lightweight
Ovis2.5-2B
scores 73.9, continuing the “small model, big performance” philosophy for resource-constrained scenarios.
Key Features
Native-Resolution Perception
— NaViT vision encoder preserves fine details and global structure without lossy tiling.
Deep-Reasoning Capability
— Optional
thinking mode
for self-checking and revision beyond linear CoT.
Thinking budget
supported.
Chart & Document OCR
— State-of-the-art at its scale for complex chart analysis, document understanding (including tables and forms), and OCR.
Broad Task Coverage
— Demonstrates leading performance on image reasoning, video understanding, and grounding benchmarks, showcasing strong general multimodal capability.
Quick Inference
Below is a simple example demonstrating how to run Ovis2.5 with a single image input. For accelerated inference with
vLLM
, refer to
GitHub
.
import torch
import requests
from PIL import Image
from transformers import AutoModelForCausalLM
MODEL_PATH = "AIDC-AI/Ovis2.5-2B"# Thinking mode & budget
enable_thinking = True
enable_thinking_budget = True# Only effective if enable_thinking is True.# Total tokens for thinking + answer. Ensure: max_new_tokens > thinking_budget + 25
max_new_tokens = 3072
thinking_budget = 2048
model = AutoModelForCausalLM.from_pretrained(
MODEL_PATH,
torch_dtype=torch.bfloat16,
trust_remote_code=True
).cuda()
messages = [{
"role": "user",
"content": [
{"type": "image", "image": Image.open(requests.get("https://cdn-uploads.huggingface.co/production/uploads/658a8a837959448ef5500ce5/TIlymOb86R6_Mez3bpmcB.png", stream=True).raw)},
{"type": "text", "text": "Calculate the sum of the numbers in the middle box in figure (c)."},
],
}]
input_ids, pixel_values, grid_thws = model.preprocess_inputs(
messages=messages,
add_generation_prompt=True,
enable_thinking=enable_thinking
)
input_ids = input_ids.cuda()
pixel_values = pixel_values.cuda() if pixel_values isnotNoneelseNone
grid_thws = grid_thws.cuda() if grid_thws isnotNoneelseNone
outputs = model.generate(
inputs=input_ids,
pixel_values=pixel_values,
grid_thws=grid_thws,
enable_thinking=enable_thinking,
enable_thinking_budget=enable_thinking_budget,
max_new_tokens=max_new_tokens,
thinking_budget=thinking_budget,
)
response = model.text_tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
The thinking and thinking budget logic can be applied in the same way for multi-image, video and pure text scenarios.
Note (answer extraction for CoT/Thinking):
To make evaluation and usage easier, we recommend appending a fixed suffix to prompts when using chain-of-thought (CoT) or thinking mode. This ensures the model clearly outputs a final answer that can be extracted programmatically:
End your response with 'Final answer: '.
For example:
Calculate the sum of the numbers in the middle box in figure (c).
End your response with 'Final answer: '.
Tip:
The sections below include an optional streaming helper (compatible with two-phase thinking/budget runs) and extra inference modes: multi-image, video, and text-only.
Optional: Streaming (Advanced)
To support thinking budget, we modified the implementation of the Ovis
generate
method and the default
TextIteratorStreamer
is now incompatible. If you need to stream model output, be sure to use the helper class below.
# --- Budget-aware streamer helper ---from transformers import TextIteratorStreamer
classBudgetAwareTextStreamer(TextIteratorStreamer):
"""A streamer compatible with Ovis two-phase generation. Call .manual_end() after generation to flush any remaining text. """defmanual_end(self):
iflen(self.token_cache) > 0:
text = self.tokenizer.decode(self.token_cache, **self.decode_kwargs)
printable_text = text[self.print_len:]
self.token_cache = []
self.print_len = 0else:
printable_text = ""
self.next_tokens_are_prompt = True
self.on_finalized_text(printable_text, stream_end=True)
# Disable base class's end hook; we'll finalize via manual_end()defend(self):
pass
To enable grounding, end your prompt with
Please provide the bounding box coordinates.
(for boxes) or
Please provide the point coordinates.
(for points). To target a specific object, wrap its description in
<ref>
tags, e.g.:
Find the <ref>red apple</ref> in the image. Please provide the bounding box coordinates.
Coordinates are normalized to
[0,1)
with the origin
(0,0)
at the top-left corner of the image.
Point:
<point>(x,y)</point>
Bounding box:
<box>(x1,y1),(x2,y2)</box>
where
(x1,y1)
is top-left,
(x2,y2)
is bottom-right.
Multiple results can be listed in square brackets:
[<box>(...)</box>,<box>(...)</box> ]
Example:
The image features a serene scene with <ref>three birds</ref>[
<box>(0.401,0.526),(0.430,0.557)</box>,
<box>(0.489,0.494),(0.516,0.526)</box>,
<box>(0.296,0.529),(0.324,0.576)</box>
] flying in formation against a clear blue sky.
We evaluate Ovis2.5 using
VLMEvalKit
, as employed in the OpenCompass multimodal and reasoning evaluation suite.
Citation
If you find Ovis useful, please consider citing the paper
@article{lu2025ovis25technicalreport,
title={Ovis2.5 Technical Report},
author={Shiyin Lu and Yang Li and Yu Xia and Yuwei Hu and Shanshan Zhao and Yanqing Ma and Zhichao Wei and Yinglun Li and Lunhao Duan and Jianshan Zhao and Yuxuan Han and Haijun Li and Wanying Chen and Junke Tang and Chengkun Hou and Zhixing Du and Tianli Zhou and Wenjie Zhang and Huping Ding and Jiahe Li and Wen Li and Gui Hu and Yiliang Gu and Siran Yang and Jiamang Wang and Hailong Sun and Yibo Wang and Hui Sun and Jinlong Huang and Yuping He and Shengze Shi and Weihong Zhang and Guodong Zheng and Junpeng Jiang and Sensen Gao and Yi-Feng Wu and Sijia Chen and Yuhui Chen and Qing-Guo Chen and Zhao Xu and Weihua Luo and Kaifu Zhang},
year={2025},
journal={arXiv:2508.11737}
}
@article{lu2024ovis,
title={Ovis: Structural Embedding Alignment for Multimodal Large Language Model},
author={Shiyin Lu and Yang Li and Qing-Guo Chen and Zhao Xu and Weihua Luo and Kaifu Zhang and Han-Jia Ye},
year={2024},
journal={arXiv:2405.20797}
}
We used compliance-checking algorithms during the training process, to ensure the compliance of the trained model to the best of our ability. Due to the complexity of the data and the diversity of language model usage scenarios, we cannot guarantee that the model is completely free of copyright issues or improper content. If you believe anything infringes on your rights or generates improper content, please contact us, and we will promptly address the matter.
Runs of ATH-MaaS Ovis2.5-2B on huggingface.co
5.8K
Total runs
147
24-hour runs
583
3-day runs
887
7-day runs
1.6K
30-day runs
More Information About Ovis2.5-2B huggingface.co Model
Ovis2.5-2B huggingface.co is an AI model on huggingface.co that provides Ovis2.5-2B's model effect (), which can be used instantly with this ATH-MaaS Ovis2.5-2B model. huggingface.co supports a free trial of the Ovis2.5-2B model, and also provides paid use of the Ovis2.5-2B. Support call Ovis2.5-2B model through api, including Node.js, Python, http.
Ovis2.5-2B huggingface.co is an online trial and call api platform, which integrates Ovis2.5-2B's modeling effects, including api services, and provides a free online trial of Ovis2.5-2B, you can try Ovis2.5-2B online for free by clicking the link below.
ATH-MaaS Ovis2.5-2B online free url in huggingface.co:
Ovis2.5-2B is an open source model from GitHub that offers a free installation service, and any user can find Ovis2.5-2B on GitHub to install. At the same time, huggingface.co provides the effect of Ovis2.5-2B install, users can directly use Ovis2.5-2B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.