Image-Text-to-Text
Transformers
Safetensors
English
qwen2_5_vl
multimodal
conversational
Eval Results
text-generation-inference
Instructions to use Qwen/Qwen2.5-VL-3B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen2.5-VL-3B-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-3B-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-3B-Instruct") model = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen2.5-VL-3B-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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Qwen/Qwen2.5-VL-3B-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-3B-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-3B-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-3B-Instruct
- SGLang
How to use Qwen/Qwen2.5-VL-3B-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-3B-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-3B-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-3B-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-3B-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-3B-Instruct with Docker Model Runner:
docker model run hf.co/Qwen/Qwen2.5-VL-3B-Instruct
Add MMMU-Pro evaluation result
1
#50 opened 6 days ago
by
SaylorTwift
Fix typo
#49 opened 19 days ago
by
taekeunkang
Add ScreenSpot-Pro evaluation result (Qwen2.5-VL-3B-Instruct)
#48 opened 2 months ago
by
merve
REDME.md
#47 opened 3 months ago
by
Fradeck619
Showcase: Real-Time Invoice Parser using Qwen2.5-VL
👍 1
1
#46 opened 3 months ago
by
Liviu16
Suppress Verbosity
#45 opened 6 months ago
by
jsob7
task1234
#44 opened 6 months ago
by
shahdabdelrhman8
Using the vision encoder only
#43 opened 7 months ago
by
klu30
Update README.md
#42 opened 7 months ago
by
jangbyeongheon
如何转成ONNX模型
1
#40 opened 9 months ago
by
FishTheSky
Update config.json
#39 opened 9 months ago
by
Bohr
Change to Apache 2.0 Licnse
❤️ 6
1
#36 opened 11 months ago
by
ehartford
License
❤️ 3
#35 opened 11 months ago
by
ehartford
本地推理得到奇怪的回答 (使用 4090)
#34 opened 11 months ago
by
hflin0613
Update qwen-vl-version to 0.11 in model-card
#33 opened 11 months ago
by
nhop
ValueError: Image features and image tokens do not match: tokens: 27624, features 34828
1
#31 opened 12 months ago
by
Jdemonn
模型加载报错
➕ 1
1
#30 opened about 1 year ago
by
ZqXu
transformers 版本不支持该架构
1
#29 opened about 1 year ago
by
furontan
System prompt
#28 opened about 1 year ago
by
ksooklall
Chat template of AutoTokenizer does not work on assistant mask tokens
2
#27 opened about 1 year ago
by
doruktarhan6
How to change the temperature of output generation??
#26 opened about 1 year ago
by
IronmanSnap
Update README.md
#25 opened about 1 year ago
by
megladagon
Distributed reasoning
#23 opened about 1 year ago
by
Lucaslym
Cannot use this model as Conversational agent in smolagent framework
#22 opened about 1 year ago
by
IronmanSnap
Cannot scale inference endpoint to zero MANUALLY
#21 opened about 1 year ago
by
ArunSharma93
How much VRAM is required? I have 8gb RTX 3060 and seems in sufficient
6
#20 opened about 1 year ago
by
LawItApps
tokenizer size
#19 opened about 1 year ago
by
dsanddkjad
Fix model tree—Current loops back to itself, new loops to Qwen2.5-3B-Instruct
#18 opened over 1 year ago
by deleted
Add project page, Github repo and paper
#17 opened over 1 year ago
by
nielsr
RTX 4090 cant process videos above 4 mins
1
#16 opened over 1 year ago
by
IronmanSnap
Update preprocessor_config.json
2
#14 opened over 1 year ago
by
Isotr0py
Dimension out of range (expected to be in range of [-3, 2], but got 3)
👍 2
1
#13 opened over 1 year ago
by
oshyshko
Licensing of Qwen2.5-VL
➕ 1
2
#12 opened over 1 year ago
by
goodev
Vision tokens missing from chat template
4
#11 opened over 1 year ago
by
depasquale
Update README.md
1
#10 opened over 1 year ago
by
manu
How to add this model to ollama
👍 5
1
#8 opened over 1 year ago
by
hellostevehaha
Rename README.md to какая инвестиция перспективна 2025
#7 opened over 1 year ago
by
ProtasBali
Memory requirements
3
#6 opened over 1 year ago
by
sskorol
Deploying on inference endpoint not working
👍 1
#5 opened over 1 year ago
by
crbo
Quantized Qwen2.5-VL models
👍 13
3
#4 opened over 1 year ago
by
fortminors
Update README.md
#3 opened over 1 year ago
by
KatyTheCutie
Remove recursive base_model
#2 opened over 1 year ago
by
davanstrien
A minor typo of the score on AndroidWorld
#1 opened over 1 year ago
by
BoyuNLP