Image-Text-to-Text
Transformers
Safetensors
English
qwen2_5_vl
multimodal
conversational
Eval Results
text-generation-inference
Instructions to use Qwen/Qwen2.5-VL-72B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen2.5-VL-72B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Qwen/Qwen2.5-VL-72B-Instruct") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("Qwen/Qwen2.5-VL-72B-Instruct") model = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen2.5-VL-72B-Instruct") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Qwen/Qwen2.5-VL-72B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Qwen/Qwen2.5-VL-72B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Qwen/Qwen2.5-VL-72B-Instruct", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Qwen/Qwen2.5-VL-72B-Instruct
- SGLang
How to use Qwen/Qwen2.5-VL-72B-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Qwen/Qwen2.5-VL-72B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Qwen/Qwen2.5-VL-72B-Instruct", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Qwen/Qwen2.5-VL-72B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Qwen/Qwen2.5-VL-72B-Instruct", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Qwen/Qwen2.5-VL-72B-Instruct with Docker Model Runner:
docker model run hf.co/Qwen/Qwen2.5-VL-72B-Instruct
Add EvalEval community eval results (mmlu_pro.yaml)
#35 opened 13 days ago
by
EvalEvalBot
Add ScreenSpot-Pro evaluation result (Qwen2.5-VL-72B-Instruct)
#34 opened 3 months ago
by
merve
fix typo in README.md
#33 opened 12 months ago
by
jsilverman26
Update README.md
1
#31 opened about 1 year ago
by
Disya
How to use Qwen2.5-VL for computer use?
1
#30 opened about 1 year ago
by
luffycodes
I want to use this model with javascript for video understanding
1
#29 opened about 1 year ago
by
the-research-100
updated one spelling mistake
#28 opened about 1 year ago
by
kirpalsingh2252002
Update README.md
#27 opened about 1 year ago
by
megladagon
Inference problems for all Qwen2.5 VL models in transformers above 4.49.0
2
#26 opened about 1 year ago
by
mirekphd
Ask about the M-RoPE
1
#25 opened about 1 year ago
by
JavenChen
Upload IMG-20250318-WA0007.jpg
#23 opened about 1 year ago
by
Aceyung1
'Qwen2_5_VLProcessor' object has no attribute 'eos_token'
1
#22 opened about 1 year ago
by
itztheking
本地部署72b时,模型输出为空,怎么解决?
1
#21 opened about 1 year ago
by
Cranegu
Qwen/Qwen2.5-VL-72B-Instruct
#20 opened about 1 year ago
by
chnsmth
Could you please share the detailed parameters setting for the online demo?
#18 opened about 1 year ago
by
harryzwh
vllm推理32k-128k输入
#17 opened about 1 year ago
by
luckyZhangHu
official finetune example?
5
#16 opened over 1 year ago
by
erichartford
Anyone pls let me know what hardware can run 72B ?
2
#15 opened over 1 year ago
by
haoyiharrison
Fix model tree (remove loop)
#14 opened over 1 year ago
by
hekmon
batch inference error
👍 1
1
#13 opened over 1 year ago
by
404dreamer
Error in preprocessing prompt inputs
#12 opened over 1 year ago
by
darvec
cannot import name 'Qwen2_5_VLImageProcessor' (on vLLM)
4
#11 opened over 1 year ago
by
cbrug
Update preprocessor_config.json
#10 opened over 1 year ago
by
Isotr0py
Hardware Requirements
👀 4
#9 opened over 1 year ago
by
shreyas0985
Vision tokens missing from chat template
#8 opened over 1 year ago
by
depasquale
ERROR:hf-to-gguf:Model Qwen2_5_VLForConditionalGeneration is not supported
2
#7 opened over 1 year ago
by
li-gz
docs(readme): fix typo in README.md
#6 opened over 1 year ago
by
BjornMelin
Out of Memory on two H100 (80GB) each and load_in_8_bit = True
#4 opened over 1 year ago
by
Maverick17
Model Memory Requirements
2
#3 opened over 1 year ago
by
nvip1204
Video Inference - TypeError: process_vision_info() got an unexpected keyword argument 'return_video_kwargs'
2
#2 opened over 1 year ago
by
hmanju
Qwen/Qwen2.5-VL-72B-Instruct-AWQ and Qwen/Qwen2.5-VL-40<B-Instruct-AWQ please
➕❤️ 18
6
#1 opened over 1 year ago
by
devops724