Instructions to use yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000") model = AutoModelForMultimodalLM.from_pretrained("yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000", "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/yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000
- SGLang
How to use yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000 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 "yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000" \ --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": "yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000", "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 "yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000" \ --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": "yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000", "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 yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000 with Docker Model Runner:
docker model run hf.co/yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000
Qwen2.5-VL-7B Multi-image GRPO step3000
This repository contains the merged Hugging Face-format GRPO checkpoint derived from Qwen/Qwen2.5-VL-7B-Instruct at training step 3000.
The model was trained for multi-image visual question answering. The checkpoint step was explicitly selected for this release; it is not a claim that the final or selected step is the best across every evaluation.
Evaluation
Evaluation uses the think prompting protocol. Scores are percentages.
| Benchmark | Score |
|---|---|
| BLINK (micro) | 68.60 |
| MUIR (micro) | 70.54 |
| VLM2 (8-task macro) | 75.62 |
| Mean of the three benchmarks | 71.59 |
These results describe this checkpoint under the stated protocol; direct-answer evaluations use a different protocol and are not interchangeable.
Files and use
The repository includes safetensors weights, their index, tokenizer files, chat template, and visual preprocessing configuration. Use the inference implementation for the base model with this repository's processor and chat template. The evaluated response format contains reasoning in <think>...</think> and the selected option in <answer>...</answer>.
SHA256SUMS records local file checksums. Model shard hashes are checked against Hugging Face's uploaded LFS metadata after upload. No training images, source data, account credentials, or optimizer states are included.
The base-model license and any included license file apply to this derivative checkpoint.
- Downloads last month
- 12
Model tree for yilingwang/Qwen2.5-VL-7B-MultiImage-GRPO-step3000
Base model
Qwen/Qwen2.5-VL-7B-Instruct