Downloads · 30 days
209
14% of all-time downloads
robotflowlabs/qwen3-vl-4b-instruct-int4
qwen3-vl-4b-instruct-int4 is a image-text-to-text model from robotflowlabs. 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 transformers. The card lists the license as apache-2.0.
Alibaba's latest Qwen3-VL-4B-Instruct quantized to 4-bit NF4 with double quantization for high-quality robotic visual reasoning. 3.1x smaller — from 8.5 GB to 2.7 GB — delivering stronger visual understanding than the…
Downloads · 30 days
209
14% of all-time downloads
All-time downloads
1.5K
Public
Parameters
4.6B
2.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.9 GB · 100%
How the weights are stored.
U84.2B · 91%
From the Hugging Face model README
Alibaba's latest Qwen3-VL-4B-Instruct quantized to 4-bit NF4 with double quantization for high-quality robotic visual reasoning. 3.1x smaller — from 8.5 GB to 2.7 GB — delivering stronger visual understanding than the 2B variant while still fitting on edge GPUs.
This model is part of the RobotFlowLabs model library, built for the ANIMA agentic robotics platform — a modular ROS2-native AI system that brings foundation model intelligence to real robots operating in the real world.
When robotic tasks demand higher visual reasoning quality — complex scene descriptions, multi-step visual planning, or precise spatial grounding — the 4B variant provides a significant accuracy boost over the 2B. Qwen3-VL-4B features a deeper language model (36 layers vs 28) with wider hidden dimensions (2560 vs 2048), delivering better performance on visual grounding, counting, and reasoning benchmarks. At 2.7 GB quantized, it fits on an L4 24GB alongside a vision encoder and action model.
| Property | Value |
|---|---|
| Architecture | Qwen3-VL (vision encoder + language decoder) |
| Total Parameters | 4B |
| Text Hidden Dimension | 2560 |
| Text Layers | 36 |
| Text Attention Heads | 32 (8 KV heads, GQA) |
| Text MLP Dimension | 9728 (SiLU activation) |
| Vision Encoder | 24-layer ViT (1024d, 16 heads, patch 16) |
| Vision Features | DeepStack at layers [5, 11, 17] |
| Spatial Merge | 2×2 (4 patches → 1 token) |
| Temporal Patch | 2 frames per token |
| Context Length | 262,144 tokens |
| Vocabulary | 151,936 tokens |
| RoPE | M-RoPE (interleaved, θ = 5,000,000) |
| Quantization | NF4 double quantization (bitsandbytes) |
| Original Model | Qwen/Qwen3-VL-4B-Instruct |
| License | Apache-2.0 |
Quantized on an NVIDIA L4 24GB GPU using bitsandbytes NF4 with double quantization.
| Metric | Original | INT4 Quantized | Change |
|---|---|---|---|
| Total Size | 8,465 MB | 2,741 MB | 3.1x smaller |
| Quantization | BF16 | NF4 + double quant | 4-bit weights |
| Compute Dtype | BF16 | BF16 | Preserved at inference |
| Format | SafeTensors | SafeTensors | Direct HF loading |
from transformers import AutoModelForImageTextToText, AutoProcessor
from PIL import Image
model = AutoModelForImageTextToText.from_pretrained(
"robotflowlabs/qwen3-vl-4b-instruct-int4",
device_map="auto",
)
processor = AutoProcessor.from_pretrained("robotflowlabs/qwen3-vl-4b-instruct-int4")
image = Image.open("workspace.jpg")
messages = [
{"role": "system", "content": "You are a robotic vision assistant specialized in manipulation tasks."},
{"role": "user", "content": [
{"type": "image", "image": image},
{"type": "text", "text": "List all graspable objects, their approximate positions, and suggest a pick order."}
]}
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=text, images=[image], return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(outputs[0], skip_special_tokens=True))
from forge.vlm import VLMRegistry
vlm = VLMRegistry.load("qwen3-vl-4b-instruct-int4")
plan = vlm.describe(image, "List all graspable objects and suggest a manipulation sequence.")
Qwen3-VL-4B serves as the high-quality visual reasoning engine in ANIMA:
| Model | Params | Quantized Size | Best For |
|---|---|---|---|
| qwen3-vl-2b-instruct-int4 | 2B | 1.5 GB | Edge deployment, real-time |
| qwen3-vl-4b-instruct-int4 | 4B | 2.7 GB | Higher accuracy visual reasoning |
ANIMA is a modular, ROS2-native agentic robotics platform developed by RobotFlowLabs. It combines 58 specialized AI modules into a unified system for real-world robotic autonomy.
Original Qwen3-VL-4B-Instruct (BF16, 8.5 GB)
│
└─→ bitsandbytes NF4 double quantization
├─→ bnb_4bit_quant_type: nf4
├─→ bnb_4bit_use_double_quant: true
├─→ bnb_4bit_compute_dtype: bfloat16
└─→ model.safetensors (2.7 GB)
Qwen/Qwen3-VL-4B-Instruct by Alibaba Cloud@article{qwen3vl,
title={Qwen3-VL Technical Report},
author={Qwen Team},
year={2025}
}