Downloads · 30 days
59
33% of all-time downloads
shawnxhong/Qwen3-VL-2B-Instruct-ov-int4
Qwen3-VL-2B-Instruct-ov-int4 is a image-text-to-text model from shawnxhong. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for openvino_genai.
This repository contains a local OpenVINO IR export of Qwen/Qwen3-VL-2B-Instruct converted for OpenVINO GenAI inference and compressed to INT4 weights.
Downloads · 30 days
59
33% of all-time downloads
All-time downloads
177
Public
Repo size
1.8 GB
Likes
1
Public
Click a slice to open those files.
.bin1.8 GB · 99%
From the Hugging Face model README
This repository contains a local OpenVINO IR export of Qwen/Qwen3-VL-2B-Instruct converted for OpenVINO GenAI inference and compressed to INT4 weights.
This model is intended for OpenVINO GenAI VLM inference.
pip install -U openvino openvino-tokenizers openvino-genai pillow numpy
hf download shawnxhong/Qwen3-VL-2B-Instruct-ov-int4 --local-dir Qwen3-VL-2B-Instruct-ov-int4
from pathlib import Path
import numpy as np
import openvino as ov
import openvino_genai
from PIL import Image
model_dir = Path("Qwen3-VL-2B-Instruct-ov-int4")
image_path = Path("example.png")
pipe = openvino_genai.VLMPipeline(str(model_dir), "CPU")
image = Image.open(image_path).convert("RGB")
image_tensor = ov.Tensor(np.array(image)[None])
generation_config = pipe.get_generation_config()
generation_config.max_new_tokens = 128
generation_config.do_sample = False
result = pipe.generate(
"Read the image and return the visible text.",
image_tensor,
generation_config,
)
print(result.texts[0])
import openvino as ov
import openvino_genai
from PIL import Image
import numpy as np
pipe = openvino_genai.VLMPipeline("Qwen3-VL-2B-Instruct-ov-int4", "CPU")
image = ov.Tensor(np.array(Image.open("example.png").convert("RGB"))[None])
result = pipe.generate("Read the image and return the visible text.", image, max_new_tokens=128)
print(result.texts[0])
llm_benchIf you have the openvino.genai source tree locally:
python tools/llm_bench/benchmark.py \
-m Qwen3-VL-2B-Instruct-ov-int4 \
-d CPU \
-t visual_text_gen \
-i example.png \
-p "Read the image and return the visible text." \
-n 3 \
-ic 128 \
-r benchmark_report.csv \
-rj benchmark_report.json
VLMPipeline.Qwen/Qwen3-VL-2B-Instruct to OpenVINO IR and compressed to INT4.Read the image and return the visible text. work well as a baseline.