Instructions to use Skywork/Skywork-R1V2-38B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Skywork/Skywork-R1V2-38B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Skywork/Skywork-R1V2-38B", trust_remote_code=True) 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 AutoModel model = AutoModel.from_pretrained("Skywork/Skywork-R1V2-38B", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Skywork/Skywork-R1V2-38B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Skywork/Skywork-R1V2-38B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Skywork/Skywork-R1V2-38B", "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/Skywork/Skywork-R1V2-38B
- SGLang
How to use Skywork/Skywork-R1V2-38B 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 "Skywork/Skywork-R1V2-38B" \ --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": "Skywork/Skywork-R1V2-38B", "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 "Skywork/Skywork-R1V2-38B" \ --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": "Skywork/Skywork-R1V2-38B", "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 Skywork/Skywork-R1V2-38B with Docker Model Runner:
docker model run hf.co/Skywork/Skywork-R1V2-38B
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,27 +11,20 @@ license: mit
|
|
| 11 |
</div>
|
| 12 |
|
| 13 |
## π [Technical Report](https://github.com/SkyworkAI/Skywork-R1V/blob/main/Skywork_R1V.pdf) | π» [GitHub](https://github.com/SkyworkAI/Skywork-R1V) | π [ModelScope](https://modelscope.cn/models/Skywork/Skywork-R1V-38B)
|
| 14 |
-
|
| 15 |
<div align="center">
|
| 16 |
-
|
| 17 |
[](https://github.com/SkyworkAI/Skywork-R1V/stargazers) [](https://github.com/SkyworkAI/Skywork-R1V/fork)
|
| 18 |
-
|
| 19 |
</div>
|
| 20 |
|
| 21 |
|
| 22 |
## 1. Model Introduction
|
| 23 |
|
| 24 |
Skywork-R1V2-38B is a **state-of-the-art open-source multimodal reasoning model**, achieving top-tier performance across multiple benchmarks:
|
| 25 |
-
|
| 26 |
- On **MMMU**, it scores **73.6%**, the **highest among all open-source models** to date.
|
| 27 |
- On **OlympiadBench**, it achieves **62.6%**, leading **by a large margin** over other open models.
|
| 28 |
- R1V2 also performs strongly on **MathVision**, **MMMU-Pro**, and **MathVista**, **rivaling proprietary commercial models**.
|
| 29 |
- Overall, R1V2 stands out as a **high-performing, open-source VLM** combining powerful **visual reasoning** and **text understanding**.
|
| 30 |
|
| 31 |
-
<br>
|
| 32 |
-
|
| 33 |
### π§ Model Details
|
| 34 |
-
|
| 35 |
<table>
|
| 36 |
<thead>
|
| 37 |
<tr>
|
|
@@ -52,6 +45,8 @@ Skywork-R1V2-38B is a **state-of-the-art open-source multimodal reasoning model*
|
|
| 52 |
</table>
|
| 53 |
|
| 54 |
|
|
|
|
|
|
|
| 55 |
## 2. Evaluation
|
| 56 |
|
| 57 |
|
|
|
|
| 11 |
</div>
|
| 12 |
|
| 13 |
## π [Technical Report](https://github.com/SkyworkAI/Skywork-R1V/blob/main/Skywork_R1V.pdf) | π» [GitHub](https://github.com/SkyworkAI/Skywork-R1V) | π [ModelScope](https://modelscope.cn/models/Skywork/Skywork-R1V-38B)
|
|
|
|
| 14 |
<div align="center">
|
|
|
|
| 15 |
[](https://github.com/SkyworkAI/Skywork-R1V/stargazers) [](https://github.com/SkyworkAI/Skywork-R1V/fork)
|
|
|
|
| 16 |
</div>
|
| 17 |
|
| 18 |
|
| 19 |
## 1. Model Introduction
|
| 20 |
|
| 21 |
Skywork-R1V2-38B is a **state-of-the-art open-source multimodal reasoning model**, achieving top-tier performance across multiple benchmarks:
|
|
|
|
| 22 |
- On **MMMU**, it scores **73.6%**, the **highest among all open-source models** to date.
|
| 23 |
- On **OlympiadBench**, it achieves **62.6%**, leading **by a large margin** over other open models.
|
| 24 |
- R1V2 also performs strongly on **MathVision**, **MMMU-Pro**, and **MathVista**, **rivaling proprietary commercial models**.
|
| 25 |
- Overall, R1V2 stands out as a **high-performing, open-source VLM** combining powerful **visual reasoning** and **text understanding**.
|
| 26 |
|
|
|
|
|
|
|
| 27 |
### π§ Model Details
|
|
|
|
| 28 |
<table>
|
| 29 |
<thead>
|
| 30 |
<tr>
|
|
|
|
| 45 |
</table>
|
| 46 |
|
| 47 |
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
## 2. Evaluation
|
| 51 |
|
| 52 |
|