Downloads · 30 days
24
20% of all-time downloads
helenai/InternVL2-1B-ov
InternVL2-1B-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-1B model, converted to OpenVINO with INT4 compressed weights for the language model, INT8 weights for the other models.
Downloads · 30 days
24
20% of all-time downloads
All-time downloads
122
Public
Repo size
789 MB
Likes
0
Public
Click a slice to open those files.
.bin777 MB · 98%
From the Hugging Face model README
This is the OpenGVLab/InternVL2-1B 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 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-1B-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])