AIDC-AI / Ovis1.6-Gemma2-9B

huggingface.co
Total runs: 86.6K
24-hour runs: 0
7-day runs: 572
30-day runs: 5.5K
Model's Last Updated: August 15 2025
image-text-to-text

Introduction of Ovis1.6-Gemma2-9B

Model Details of Ovis1.6-Gemma2-9B

Introduction

Ovis is a novel Multimodal Large Language Model (MLLM) architecture, designed to structurally align visual and textual embeddings. For a comprehensive introduction, please refer to Ovis paper and Ovis GitHub .

Model

Built upon Ovis1.5, Ovis1.6 further enhances high-resolution image processing, is trained on a larger, more diverse, and higher-quality dataset, and refines the training process with DPO training following instruction-tuning.

Ovis MLLMs ViT LLM Model Weights
Ovis1.6-Gemma2-9B Siglip-400M Gemma2-9B-It Huggingface
Performance

With just 10B parameters, Ovis1.6-Gemma2-9B leads the OpenCompass benchmark among open-source MLLMs within 30B parameters.

Usage

Below is a code snippet to run Ovis with multimodal inputs. For additional usage instructions, including inference wrapper and Gradio UI, please refer to Ovis GitHub .

pip install torch==2.2.0 transformers==4.44.2 numpy==1.24.3 pillow==10.3.0
import torch
from PIL import Image
from transformers import AutoModelForCausalLM

# load model
model = AutoModelForCausalLM.from_pretrained("AIDC-AI/Ovis1.6-Gemma2-9B",
                                             torch_dtype=torch.bfloat16,
                                             multimodal_max_length=8192,
                                             trust_remote_code=True).cuda()
text_tokenizer = model.get_text_tokenizer()
visual_tokenizer = model.get_visual_tokenizer()

# enter image path and prompt
image_path = input("Enter image path: ")
image = Image.open(image_path)
text = input("Enter prompt: ")
query = f'<image>\n{text}'

# format conversation
prompt, input_ids, pixel_values = model.preprocess_inputs(query, [image])
attention_mask = torch.ne(input_ids, text_tokenizer.pad_token_id)
input_ids = input_ids.unsqueeze(0).to(device=model.device)
attention_mask = attention_mask.unsqueeze(0).to(device=model.device)
pixel_values = [pixel_values.to(dtype=visual_tokenizer.dtype, device=visual_tokenizer.device)]

# generate output
with torch.inference_mode():
    gen_kwargs = dict(
        max_new_tokens=1024,
        do_sample=False,
        top_p=None,
        top_k=None,
        temperature=None,
        repetition_penalty=None,
        eos_token_id=model.generation_config.eos_token_id,
        pad_token_id=text_tokenizer.pad_token_id,
        use_cache=True
    )
    output_ids = model.generate(input_ids, pixel_values=pixel_values, attention_mask=attention_mask, **gen_kwargs)[0]
    output = text_tokenizer.decode(output_ids, skip_special_tokens=True)
    print(f'Output:\n{output}')
Citation

If you find Ovis useful, please cite the paper

@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}
}
License

The project is licensed under the Apache 2.0 License and is restricted to uses that comply with the license agreements of Gemma2 and Siglip.

Runs of AIDC-AI Ovis1.6-Gemma2-9B on huggingface.co

86.6K
Total runs
0
24-hour runs
1.4K
3-day runs
572
7-day runs
5.5K
30-day runs

More Information About Ovis1.6-Gemma2-9B huggingface.co Model

More Ovis1.6-Gemma2-9B license Visit here:

https://choosealicense.com/licenses/apache-2.0

Ovis1.6-Gemma2-9B huggingface.co

Ovis1.6-Gemma2-9B huggingface.co is an AI model on huggingface.co that provides Ovis1.6-Gemma2-9B's model effect (), which can be used instantly with this AIDC-AI Ovis1.6-Gemma2-9B model. huggingface.co supports a free trial of the Ovis1.6-Gemma2-9B model, and also provides paid use of the Ovis1.6-Gemma2-9B. Support call Ovis1.6-Gemma2-9B model through api, including Node.js, Python, http.

Ovis1.6-Gemma2-9B huggingface.co Url

https://huggingface.co/AIDC-AI/Ovis1.6-Gemma2-9B

AIDC-AI Ovis1.6-Gemma2-9B online free

Ovis1.6-Gemma2-9B huggingface.co is an online trial and call api platform, which integrates Ovis1.6-Gemma2-9B's modeling effects, including api services, and provides a free online trial of Ovis1.6-Gemma2-9B, you can try Ovis1.6-Gemma2-9B online for free by clicking the link below.

AIDC-AI Ovis1.6-Gemma2-9B online free url in huggingface.co:

https://huggingface.co/AIDC-AI/Ovis1.6-Gemma2-9B

Ovis1.6-Gemma2-9B install

Ovis1.6-Gemma2-9B is an open source model from GitHub that offers a free installation service, and any user can find Ovis1.6-Gemma2-9B on GitHub to install. At the same time, huggingface.co provides the effect of Ovis1.6-Gemma2-9B install, users can directly use Ovis1.6-Gemma2-9B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Ovis1.6-Gemma2-9B install url in huggingface.co:

https://huggingface.co/AIDC-AI/Ovis1.6-Gemma2-9B

Url of Ovis1.6-Gemma2-9B

Ovis1.6-Gemma2-9B huggingface.co Url

Provider of Ovis1.6-Gemma2-9B huggingface.co

AIDC-AI
ORGANIZATIONS

Other API from AIDC-AI

huggingface.co

Total runs: 117.5K
Run Growth: 4.7K
Growth Rate: 3.98%
Updated:August 15 2025
huggingface.co

Total runs: 18.8K
Run Growth: 14.3K
Growth Rate: 76.35%
Updated:February 13 2026
huggingface.co

Total runs: 12.5K
Run Growth: -13.7K
Growth Rate: -109.21%
Updated:February 13 2026
huggingface.co

Total runs: 11.3K
Run Growth: -35.3K
Growth Rate: -312.00%
Updated:August 15 2025
huggingface.co

Total runs: 1.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:February 26 2025
huggingface.co

Total runs: 1.4K
Run Growth: 270
Growth Rate: 19.58%
Updated:March 04 2025
huggingface.co

Total runs: 982
Run Growth: -45.0K
Growth Rate: -4582.28%
Updated:August 15 2025
huggingface.co

Total runs: 688
Run Growth: 387
Growth Rate: 56.25%
Updated:August 15 2025
huggingface.co

Total runs: 426
Run Growth: -476
Growth Rate: -111.74%
Updated:July 03 2025
huggingface.co

Total runs: 398
Run Growth: -7
Growth Rate: -1.76%
Updated:November 23 2024
huggingface.co

Total runs: 326
Run Growth: 320
Growth Rate: 98.16%
Updated:June 09 2026
huggingface.co

Total runs: 300
Run Growth: -37
Growth Rate: -12.33%
Updated:August 15 2025
huggingface.co

Total runs: 59
Run Growth: -898
Growth Rate: -1522.03%
Updated:February 28 2025
huggingface.co

Total runs: 39
Run Growth: 28
Growth Rate: 71.79%
Updated:May 29 2025
huggingface.co

Total runs: 38
Run Growth: -6
Growth Rate: -15.79%
Updated:August 15 2025
huggingface.co

Total runs: 27
Run Growth: 9
Growth Rate: 33.33%
Updated:November 21 2024
huggingface.co

Total runs: 13
Run Growth: 8
Growth Rate: 61.54%
Updated:July 30 2025
huggingface.co

Total runs: 11
Run Growth: -14
Growth Rate: -127.27%
Updated:November 21 2024
huggingface.co

Total runs: 6
Run Growth: 1
Growth Rate: 16.67%
Updated:August 19 2025
huggingface.co

Total runs: 6
Run Growth: 0
Growth Rate: 0.00%
Updated:November 14 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 19 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 03 2025