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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Qwen/Qwen2.5-VL-72B-Instruct") model = AutoModelForMultimodalLM.from_pretrained("Qwen/Qwen2.5-VL-72B-Instruct", device_map="auto") 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 Real5-OmniDocBench evaluation results for Qwen2.5-VL-72B
Browse files# Real5-OmniDocBench evaluation results for Qwen2.5-VL-72B
This PR adds the evaluation file for Qwen2.5-VL-72B under the Hugging Face
evaluation-results workflow.
This is based on the new evaluation results feature: https://huggingface.co/docs/hub/eval-results.
## Dataset
- [PaddlePaddle/Real5-OmniDocBench](https://huggingface.co/datasets/PaddlePaddle/Real5-OmniDocBench)
## File
- `.eval_results/real5_omnidocbench.yaml`
## Tasks
- overall
- scanning
- warping
- screen_photography
- illumination
- skew
.eval_results/real5_omnidocbench.yaml
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- dataset:
|
| 2 |
+
id: PaddlePaddle/Real5-OmniDocBench
|
| 3 |
+
task_id: overall
|
| 4 |
+
value: 86.92
|
| 5 |
+
source:
|
| 6 |
+
url: https://paddle-model-ecology.bj.bcebos.com/PPOCRVL/AIStudio/real5_omnidocbench/leaderboard_data.json
|
| 7 |
+
name: Real5-OmniDocBench leaderboard data
|
| 8 |
+
user: PaddlePaddle
|
| 9 |
+
notes: Qwen2.5-VL-72B; official Real5-OmniDocBench result
|
| 10 |
+
- dataset:
|
| 11 |
+
id: PaddlePaddle/Real5-OmniDocBench
|
| 12 |
+
task_id: scanning
|
| 13 |
+
value: 86.19
|
| 14 |
+
source:
|
| 15 |
+
url: https://paddle-model-ecology.bj.bcebos.com/PPOCRVL/AIStudio/real5_omnidocbench/leaderboard_data.json
|
| 16 |
+
name: Real5-OmniDocBench leaderboard data
|
| 17 |
+
user: PaddlePaddle
|
| 18 |
+
notes: Qwen2.5-VL-72B; official Real5-OmniDocBench result
|
| 19 |
+
- dataset:
|
| 20 |
+
id: PaddlePaddle/Real5-OmniDocBench
|
| 21 |
+
task_id: warping
|
| 22 |
+
value: 87.77
|
| 23 |
+
source:
|
| 24 |
+
url: https://paddle-model-ecology.bj.bcebos.com/PPOCRVL/AIStudio/real5_omnidocbench/leaderboard_data.json
|
| 25 |
+
name: Real5-OmniDocBench leaderboard data
|
| 26 |
+
user: PaddlePaddle
|
| 27 |
+
notes: Qwen2.5-VL-72B; official Real5-OmniDocBench result
|
| 28 |
+
- dataset:
|
| 29 |
+
id: PaddlePaddle/Real5-OmniDocBench
|
| 30 |
+
task_id: screen_photography
|
| 31 |
+
value: 86.48
|
| 32 |
+
source:
|
| 33 |
+
url: https://paddle-model-ecology.bj.bcebos.com/PPOCRVL/AIStudio/real5_omnidocbench/leaderboard_data.json
|
| 34 |
+
name: Real5-OmniDocBench leaderboard data
|
| 35 |
+
user: PaddlePaddle
|
| 36 |
+
notes: Qwen2.5-VL-72B; official Real5-OmniDocBench result
|
| 37 |
+
- dataset:
|
| 38 |
+
id: PaddlePaddle/Real5-OmniDocBench
|
| 39 |
+
task_id: illumination
|
| 40 |
+
value: 87.25
|
| 41 |
+
source:
|
| 42 |
+
url: https://paddle-model-ecology.bj.bcebos.com/PPOCRVL/AIStudio/real5_omnidocbench/leaderboard_data.json
|
| 43 |
+
name: Real5-OmniDocBench leaderboard data
|
| 44 |
+
user: PaddlePaddle
|
| 45 |
+
notes: Qwen2.5-VL-72B; official Real5-OmniDocBench result
|
| 46 |
+
- dataset:
|
| 47 |
+
id: PaddlePaddle/Real5-OmniDocBench
|
| 48 |
+
task_id: skew
|
| 49 |
+
value: 86.9
|
| 50 |
+
source:
|
| 51 |
+
url: https://paddle-model-ecology.bj.bcebos.com/PPOCRVL/AIStudio/real5_omnidocbench/leaderboard_data.json
|
| 52 |
+
name: Real5-OmniDocBench leaderboard data
|
| 53 |
+
user: PaddlePaddle
|
| 54 |
+
notes: Qwen2.5-VL-72B; official Real5-OmniDocBench result
|