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)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Skywork/Skywork-R1V3-38B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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 README.md
Browse files70 unmodified lines7172737475767778798081828370 unmodified lines- **Logic Reasoning:** MME-Reasoning (42.8) VisuLogic (28.5)- **Math Benchmarks:** MathVista (77.1), MathVerse (59.6), MathVision (52.6)<div align="center"><img src="https://huggingface.co/Skywork/Skywork-R1V3-38B/resolve/main/eval.png" width="800"></div>---## 4. Usage70 unmodified lines717273747576777879808182838485868788899091929394959697989910010110210370 unmodified lines- **Logic Reasoning:** MME-Reasoning (42.8) VisuLogic (28.5)- **Math Benchmarks:** MathVista (77.1), MathVerse (59.6), MathVision (52.6)<!-- <div align="center"><img src="https://huggingface.co/Skywork/Skywork-R1V3-38B/resolve/main/eval.png" width="800"></div> --># Visual-Language Models Benchmark Comparison| Category | Benchmark | Metric | Skywork-38B | QVQ-72B | InternVL-78B | Qwen-72B | Claude 3.7 | GPT-4o ||----------------|-------------------------|---------|------------:|--------:|-------------:|--------:|----------:|-------:|| **General** | MMMU (val) | Acc. | π **76.0** | 70.3 | 72.2 | 70.3 | 75.0 | 70.7 || | EMMA (mini-cot) | Acc. | 40.3 | 32.0 | 38.3 | 39.3 | π **56.5** | 36.0 || | MMMU-pro | Acc. | π **55.4** | 46.9* | 48.6 | 51.1 | 50.0 | 54.5 || | MMK12 | Acc. | π **78.5** | 62.7* | 67.4* | 70.5* | 55.3 | 49.9 || | MMstar | Acc. | 70.6 | 60.8 | π **72.5** | 70.8 | 68.8 | 65.1 || | MMBench-en-1.1 | Acc. | 85.7 | 72.6* | 87.7 | π **88.0** | 82.0 | 84.3 || | HallusionBench | Acc. | π**61.3** | 55.3* | 59.1 | 55.2 | 58.3 | 56.2 || **Mathematics**| MathVista (mini) | Acc. | 77.1 | 71.4 | π **79.0** | 74.8 | 66.8 | 62.9 || | MathVerse (vision-only) | Acc. | π**59.6** | 45.1 | 51.0 | 57.6 | **49.9*** | 49.9 || | MathVision | Acc. | 52.6 | 35.9 | 43.1 | 38.1 | π 58.6 | 31.2 || | WeMath (strict) | Acc. |π**56.5** | 37.7 | 46.1 | 50.6 | 48.9* | 50.6 || **Logic** | Visulogic | Acc. | π**28.5** | 23.5* | 27.7 | 26.2 | 25.9 | 26.3 || | LogicVista | Acc. | 59.7 | 53.8 | 55.9 | 57.1 | 60.6* | π **64.4** || | MME-reasoning | Acc. | π**42.8** | 35.2 | 32.1 | 34.1 | 34.1 | 30.2 || **Physics** | PhyX (mc-text-minimal) | Acc. | π **52.8** | 35.2* | 40.5 | 44.8 | 41.6 | 43.8 || | SeePhys | Acc. | 31.5 | 22.5 | 19.0* | 24.2 | π **34.6** | 21.9 |π **Top performer** in each benchmark[*] indicates results from our evaluation framework.## 4. Usage
README.md+26-6