Model reference · open weights
Qwen2-VL is an open-weight language model from Qwen. Qwen2-VL-72B-Instruct (BF16) weighs 147 GB; the smallest configuration that runs it is 4× L40S 48 GB.
Summary of the Qwen/Qwen2-VL-7B-Instruct-AWQ model card, 2026-10-01. The estimate below is for another build of the family.
What it is
| Released by | Qwen |
|---|---|
| Released | 2024-08-29 |
| Parameters | 8.3B |
| VRAM | 147 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … H200 141 GB 11 smaller cards | — | — | — | |
| B200 180 GB | 7 | 1 | all 32K | 176 GB |
| 4× L40S 48 GB tensor parallel | 7 | 1 | all 32K | 44.0 GB a card |
| 2× RTX PRO 6000 Blackwell 96 GB tensor parallel | 9 | 2 | all 32K | 93.8 GB a card |
| 2× H200 141 GB tensor parallel | 42 | 10 | all 32K | 138 GB a card |
| 4× H100 80 GB tensor parallel | 50 | 12 | all 32K | 78.1 GB a card |
| 4× A100 80 GB tensor parallel | 58 | 14 | all 32K | 78.2 GB a card |
| 2× B200 180 GB tensor parallel | 70 | 17 | all 32K | 176 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 152 GB | 160 GB |
| 5 | 162 GB | 203 GB |
| 8 | 171 GB | 235 GB |
| 16 | 192 GB | 321 GB |
| 32 | 235 GB | 493 GB |
| 64 | 321 GB | 836 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| Qwen2-VL-7B-Instruct-AWQ ↗ | 8.3B | AWQ | 6.9 GB | RTX 3060 12 GB |
| Qwen2-VL-2B-Instruct ↗ | 2.2B | BF16 | 4.4 GB | RTX 3060 12 GB |
| Qwen2-VL-7B-Instruct ↗ | 8.3B | BF16 | 16.6 GB | 2× RTX 3060 12 GB |
| Qwen2-VL-72B-Instruct (above) ↗ | 73.4B | BF16 | 147 GB | 4× L40S 48 GB |
| Qwen2-VL-2B-Instruct-AWQ ↗ | 2.4B | AWQ | 2.9 GB | RTX 3060 12 GB |
From the model card
We're excited to unveil Qwen2-VL, the latest iteration of our Qwen-VL model, representing nearly a year of innovation.
SoTA understanding of images of various resolution & ratio: Qwen2-VL achieves state-of-the-art performance on visual understanding benchmarks, including MathVista, DocVQA, RealWorldQA, MTVQA, etc.
Understanding videos of 20min+: Qwen2-VL can understand videos over 20 minutes for high-quality video-based question answering, dialog, content creation, etc.
Agent that can operate your mobiles, robots, etc.: with the abilities of complex reasoning and decision making, Qwen2-VL can be integrated with devices like mobile phones, robots, etc., for automatic operation based on visual environment and text instructions.
Multilingual Support: to serve global users, besides English and Chinese, Qwen2-VL now supports the understanding of texts in different languages inside images, including most European languages, Japanese, Korean, Arabic, Vietnamese, etc.
Naive Dynamic Resolution: Unlike before, Qwen2-VL can handle arbitrary image resolutions, mapping them into a dynamic number of visual tokens, offering a more human-like visual processing experience.
Multimodal Rotary Position Embedding (M-ROPE): Decomposes positional embedding into parts to capture 1D textual, 2D visual, and 3D video positional information, enhancing its multimodal processing capabilities.
We have three models with 2, 7 and 72 billion parameters. This repo contains the instruction-tuned 7B Qwen2-VL model. For more information, visit our Blog and GitHub.
This section reports the generation performance of quantized models (including GPTQ and AWQ) of the Qwen2-VL series. Specifically, we report:
We use VLMEvalkit to evaluate all models.
| Model Size | Quantization | MMMU | DocVQA | MMBench | MathVista |
|---|---|---|---|---|---|
| Qwen2-VL-7B-Instruct | BF16(🤗🤖) | 53.77 | 93.89 | 81.78 | 58.20 |
| GPTQ-Int8(🤗🤖) | 53.00 | 93.94 | 82.38 | 57.90 | |
| GPTQ-Int4(🤗🤖) | 52.55 | 93.16 | 81.27 | 60.30 | |
| AWQ(🤗🤖) | 53.66 | 93.10 | 81.61 | 56.80 |
This section reports the speed performance of bf16 models, quantized models (including GPTQ-Int4, GPTQ-Int8 and AWQ) of the Qwen2-VL series. Specifically, we report the inference speed (tokens/s) as well as memory footprint (GB) under the conditions of different context lengths.
The environment of the evaluation with huggingface transformers is:
Note:
We use the batch size of 1 and the least number of GPUs as possible for the evalution.
We test the speed and memory of generating 2048 tokens with the input lengths of 1, 6144, 14336, 30720, 63488, and 129024 tokens (>32k is only avaliable for Qwen2-72B-Instuct and Qwen2-7B-Instuct).
7B (transformers)
| Model | Input Length | Quantization | GPU Num | Speed(tokens/s) | GPU Memory(GB) |
|---|---|---|---|---|---|
| Qwen2-VL-7B-Instruct | 1 | BF16 | 1 | 39.02 | 16.07 |
| GPTQ-Int8 | 1 | 31.60 | 10.11 | ||
| GPTQ-Int4 | 1 | 42.76 | 7.20 | ||
| AWQ | 1 | 32.08 | 7.07 | ||
| 6144 | BF16 | 1 | 38.75 | 21.56 | |
| GPTQ-Int8 | 1 | 31.31 | 15.61 | ||
| GPTQ-Int4 | 1 | 39.75 | 12.69 | ||
| AWQ | 1 | 32.66 | 12.56 | ||
| 14336 | BF16 | 1 | 30.65 | 29.07 | |
| GPTQ-Int8 | 1 | 27.96 | 23.11 | ||
| GPTQ-Int4 | 1 | 29.72 | 20.20 | ||
| AWQ | 1 | 31.42 | 20.07 | ||
| 30720 | BF16 | 1 | 19.53 | 44.08 | |
| GPTQ-Int8 | 1 | 18.37 | 38.13 | ||
| GPTQ-Int4 | 1 | 19.15 | 35.22 | ||
| AWQ | 1 | 19.95 | 35.08 |
The code of Qwen2-VL has been in the latest Hugging face transformers and we advise you to build from source with command pip install git+https://github.com/huggingface/transformers, or you might encounter the following error:
KeyError: 'qwen2_vl'
We offer a toolkit to help you handle various types of visual input more conveniently. This includes base64, URLs, and interleaved images and videos. You can install it using the following command:
pip install qwen-vl-utils
Here we show a code snippet to show you how to use the chat model with transformers and qwen_vl_utils:
from transformers import Qwen2VLForConditionalGeneration, AutoTokenizer, AutoProcessor
from qwen_vl_utils import process_vision_info
# default: Load the model on the available device(s)
model = Qwen2VLForConditionalGeneration.from_pretrained(
"Qwen/Qwen2-VL-7B-Instruct-AWQ", torch_dtype="auto", device_map="auto"
)
# We recommend enabling flash_attention_2 for better acceleration and memory saving, especially in multi-image and video scenarios.
# model = Qwen2VLForConditionalGeneration.from_pretrained(
# "Qwen/Qwen2-VL-7B-Instruct-AWQ",
# torch_dtype=torch.bfloat16,
# attn_implementation="flash_attention_2",
# device_map="auto",
# )
# default processer
processor = AutoProcessor.from_pretrained("Qwen/Qwen2-Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.