Downloads · 30 days
3.2K
26% of all-time downloads
h2oai/Qwen3-VL-2B-Instruct-GPTQ-Int4
Qwen3-VL-2B-Instruct-GPTQ-Int4 is a machine learning model from h2oai. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
GPTQ-Int4 quantized version of Qwen/Qwen3-VL-2B-Instruct.
Downloads · 30 days
3.2K
26% of all-time downloads
All-time downloads
12.2K
Public
Parameters
2.1B
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 99%
How the weights are stored.
I321.4B · 66%
From the Hugging Face model README
GPTQ-Int4 quantized version of Qwen/Qwen3-VL-2B-Instruct.
from transformers import AutoModelForImageTextToText, AutoProcessor
model = AutoModelForImageTextToText.from_pretrained(
"h2oai/Qwen3-VL-2B-Instruct-GPTQ-Int4",
torch_dtype="auto",
device_map="auto",
)
processor = AutoProcessor.from_pretrained("h2oai/Qwen3-VL-2B-Instruct-GPTQ-Int4")
messages = [
{"role": "user", "content": [
{"type": "image", "image": "https://example.com/image.png"},
{"type": "text", "text": "Describe this image."},
]}
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=[text], images=[image], return_tensors="pt", padding=True).to(model.device)
output = model.generate(**inputs, max_new_tokens=128)
print(processor.batch_decode(output, skip_special_tokens=True))
Same as the base model: Apache-2.0