Celeste Imperia | Qwen2-VL-2B (OpenVINO INT4 Gold)
The specialized vision-reasoning engine for edge hardware. This is a hardware-optimized port of Alibaba's Qwen2-VL-2B-Instruct, forged using Intel's NNCF (Neural Network Compression Framework) for ultra-low latency execution on CPUs, GPUs, and NPUs.
🐍 For Python Users (Optimum Intel)
To achieve the highest throughput on Intel or ARM64 hardware, use the optimum-intel library with the OpenVINO backend.
1from optimum.intel import OVModelForVisualCausalLM
2from transformers import AutoProcessor
3from PIL import Image
4import requests
5
6model_id = "CelesteImperia/Qwen2-VL-2B-Instruct-OpenVINO-INT4"
7
8# Load optimized model on CPU/GPU/NPU
9model = OVModelForVisualCausalLM.from_pretrained(model_id, device="CPU")
10processor = AutoProcessor.from_pretrained(model_id)
11
12# Example: Simple Image Description
13url = "[https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.png](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.png)"
14image = Image.open(requests.get(url, stream=True).raw)
15inputs = processor(text=["Describe this image."], images=[image], return_tensors="pt")
16
17output = model.generate(**inputs, max_new_tokens=128)
18print(processor.decode(output[0], skip_special_tokens=True))
💻 For C# / .NET Users (OpenVINO .NET SDK)
As a Senior .NET developer, I have validated this vision-language model for native C# integration. This is ideal for building high-speed OCR or automated surveillance tools directly in the Windows/Intel ecosystem.
1using OpenVinoSharp;
2using System;
3
4// 1. Initialize OpenVINO Core for Vision
5Core core = new Core();
6
7// 2. Load the Optimized Qwen2-VL INT4 Model (.xml / .bin)
8Model model = core.read_model("qwen2_vl_int4.xml");
9CompiledModel compiledModel = core.compile_model(model, "CPU");
10
11Console.WriteLine("👁️ Qwen2-VL Vision Engine Initialized on .NET");
12// [Inference logic for visual tokens goes here]
📜 Gold Release: Change Log
This release optimizes the Qwen2-VL architecture for constrained edge environments, specifically targeting the Snapdragon X Elite (ARM64) and Intel Core Ultra ecosystems.
🛠️ Key Technical Upgrades:
- Weight Compression: Reduced memory footprint to ~1.8GB (Asymmetric INT4/INT8), making it viable for 8GB-16GB RAM laptops and edge gateways.
- Architecture: Native support for high-resolution image reasoning remains intact despite heavy quantization.
- NPU Ready: Validated for Intel Meteor Lake/Lunar Lake NPUs and Qualcomm NPUs (via OpenVINO ARM64), allowing for continuous scene description with minimal power draw.
- Multimodal Speed: Significant reduction in Time-to-First-Token (TTFT) compared to the original FP16 weights.
🎯 Sample Vision Benchmarks
Test Case 1: High-Resolution OCR
Result: Highly accurate extraction of text from technical diagrams and complex documents.
Latency: Optimized for real-time interaction on the i5-11400 / 64GB RAM validation rig.
Test Case 2: Zero-Latency Scene Analysis
Prompt: "Identify all safety hazards in this factory floor image."
Accuracy: Successfully maintains spatial awareness and object-token alignment despite INT4 compression.
🏗️ Technical Forge & Infrastructure
- Model Type: OpenVINO IR (INT4 Quantized)
- Optimization: Intel NNCF (Mixed INT4/INT8 Asymmetric)
- Validation Rig: Intel i5-11400 | 64GB DDR4 RAM | NVIDIA RTX 3090 + RTX A4000
- Primary Use Case: Image-text-to-text (Multimodal Reasoning)
📜 License & Disclaimer
License: This port is distributed under the Apache License 2.0, aligning with the original Qwen2-VL release by Alibaba Cloud.
Disclaimer: This model is for research and development purposes. Vision AI can occasionally misinterpret visual data; verify critical OCR or safety-related outputs manually.
☕ Support the Forge
Maintaining a dual-GPU AI workstation and hosting high-bandwidth models requires significant compute resources. If our open-source tools power your projects, consider supporting our development:
Scan to support via UPI (India Only):
Connect with the architect: Abhishek Jaiswal on LinkedIn