Image-Text-to-Text
Transformers
Safetensors
English
skywork_chat
Skywork R1V
conversational
custom_code
Instructions to use Skywork/Skywork-R1V3-38B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Skywork/Skywork-R1V3-38B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Skywork/Skywork-R1V3-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-R1V3-38B", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Skywork/Skywork-R1V3-38B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Skywork/Skywork-R1V3-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-R1V3-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-R1V3-38B
- SGLang
How to use Skywork/Skywork-R1V3-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-R1V3-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-R1V3-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-R1V3-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-R1V3-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-R1V3-38B with Docker Model Runner:
docker model run hf.co/Skywork/Skywork-R1V3-38B
Update paper link to Hugging Face Papers page
Browse filesThis PR updates the paper link in the model card to the official Hugging Face Papers page (`https://huggingface.co/papers/2507.06167`). This improves discoverability and integration of the paper within the Hugging Face Hub. All other relevant information, including usage examples and evaluation, is already well-documented.
README.md
CHANGED
|
@@ -1,14 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
pipeline_tag: image-text-to-text
|
| 3 |
-
library_name: transformers
|
| 4 |
-
license: mit
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
base_model:
|
| 8 |
- OpenGVLab/InternVL3-38B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
tags:
|
| 10 |
- Skywork R1V
|
| 11 |
---
|
|
|
|
| 12 |
<!-- markdownlint-disable first-line-h1 -->
|
| 13 |
<!-- markdownlint-disable html -->
|
| 14 |
<!-- markdownlint-disable no-duplicate-header -->
|
|
@@ -27,7 +28,7 @@ tags:
|
|
| 27 |
|
| 28 |
|
| 29 |
<p align="center">
|
| 30 |
-
<a href="https://
|
| 31 |
<a href="https://github.com/SkyworkAI/Skywork-R1V"><strong>π» GitHub</strong></a>
|
| 32 |
|
| 33 |
</p>
|
|
@@ -60,7 +61,7 @@ Skywork-R1V3 is an advanced, open-source Vision-Language Model (VLM) built on se
|
|
| 60 |
|
| 61 |
- **Entropy of Critical Reasoning Tokens**: This unique indicator effectively gauges reasoning capability, guiding checkpoint selection during RL training.
|
| 62 |
|
| 63 |
-
These innovations lead to Broad Reasoning Generalization, allowing our RL-powered approach to successfully extend mathematical reasoning to diverse subject areas. Additionally, our work delves into RL-specific explorations like curriculum learning and learning rate strategies, alongside a broader discussion on multimodal reasoning. For more details, refer to our [[π R1V3 Report](https://
|
| 64 |
## 3. Evaluation
|
| 65 |
|
| 66 |
### π Key Results
|
|
@@ -140,11 +141,13 @@ def main():
|
|
| 140 |
pixel_values = pixel_values[0]
|
| 141 |
num_patches_list = None
|
| 142 |
|
| 143 |
-
prompt = "<image>
|
|
|
|
| 144 |
generation_config = dict(max_new_tokens=64000, do_sample=True, temperature=0.6, top_p=0.95, repetition_penalty=1.05)
|
| 145 |
response = model.chat(tokenizer, pixel_values, prompt, generation_config, num_patches_list=num_patches_list)
|
| 146 |
|
| 147 |
-
print(f'User: {args.question}
|
|
|
|
| 148 |
|
| 149 |
if __name__ == '__main__':
|
| 150 |
main()
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
base_model:
|
| 3 |
- OpenGVLab/InternVL3-38B
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
library_name: transformers
|
| 7 |
+
license: mit
|
| 8 |
+
pipeline_tag: image-text-to-text
|
| 9 |
tags:
|
| 10 |
- Skywork R1V
|
| 11 |
---
|
| 12 |
+
|
| 13 |
<!-- markdownlint-disable first-line-h1 -->
|
| 14 |
<!-- markdownlint-disable html -->
|
| 15 |
<!-- markdownlint-disable no-duplicate-header -->
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
<p align="center">
|
| 31 |
+
<a href="https://huggingface.co/papers/2507.06167"><strong>π R1V3 Report</strong></a> |
|
| 32 |
<a href="https://github.com/SkyworkAI/Skywork-R1V"><strong>π» GitHub</strong></a>
|
| 33 |
|
| 34 |
</p>
|
|
|
|
| 61 |
|
| 62 |
- **Entropy of Critical Reasoning Tokens**: This unique indicator effectively gauges reasoning capability, guiding checkpoint selection during RL training.
|
| 63 |
|
| 64 |
+
These innovations lead to Broad Reasoning Generalization, allowing our RL-powered approach to successfully extend mathematical reasoning to diverse subject areas. Additionally, our work delves into RL-specific explorations like curriculum learning and learning rate strategies, alongside a broader discussion on multimodal reasoning. For more details, refer to our [[π R1V3 Report](https://huggingface.co/papers/2507.06167)]Β .
|
| 65 |
## 3. Evaluation
|
| 66 |
|
| 67 |
### π Key Results
|
|
|
|
| 141 |
pixel_values = pixel_values[0]
|
| 142 |
num_patches_list = None
|
| 143 |
|
| 144 |
+
prompt = "<image>
|
| 145 |
+
"*len(args.image_paths) + args.question
|
| 146 |
generation_config = dict(max_new_tokens=64000, do_sample=True, temperature=0.6, top_p=0.95, repetition_penalty=1.05)
|
| 147 |
response = model.chat(tokenizer, pixel_values, prompt, generation_config, num_patches_list=num_patches_list)
|
| 148 |
|
| 149 |
+
print(f'User: {args.question}
|
| 150 |
+
Assistant: {response}')
|
| 151 |
|
| 152 |
if __name__ == '__main__':
|
| 153 |
main()
|