Downloads · 30 days
11
8% of all-time downloads
helenai/InternVL2-2B-ov
InternVL2-2B-ov is a machine learning model from helenai. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is the OpenGVLab/InternVL2-2B model, converted to OpenVINO with INT4 compressed weights for the language model, INT8 weights for the other models.
Downloads · 30 days
11
8% of all-time downloads
All-time downloads
141
Public
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.bin1.5 GB · 100%
From the Hugging Face model README
This is the OpenGVLab/InternVL2-2B model, converted to OpenVINO with INT4 compressed weights for the language model, INT8 weights for the other models.
Use OpenVINO GenAI 2025.1 or later and Pillow to run inference on this model:
pip install --upgrade openvino-genai pillowcurl -O "https://storage.openvinotoolkit.org/test_data/images/dog.jpg"import numpy as np
import openvino as ov
import openvino_genai
from PIL import Image
# Choose GPU instead of CPU in the line below to run the model on Intel integrated or discrete GPU
pipe = openvino_genai.VLMPipeline("./InternVL2-2B-ov", "CPU")
image = Image.open("dog.jpg")
image_data = np.array(image.getdata()).reshape(1, image.size[1], image.size[0], 3).astype(np.uint8)
image_data = ov.Tensor(image_data)
prompt = "Can you describe the image?"
result = pipe.generate(prompt, image=image_data, max_new_tokens=100)
print(result.texts[0])