Run this model with HF Jobs
Run Skywork/Skywork-R1V-38B-AWQ on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Skywork/Skywork-R1V-38B-AWQ. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Skywork/Skywork-R1V-38B-AWQ on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Skywork/Skywork-R1V-38B-AWQ. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Skywork/Skywork-R1V-38B-AWQ. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Skywork/Skywork-R1V-38B-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Skywork/Skywork-R1V-38B-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Skywork/Skywork-R1V-38B-AWQ", 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-R1V-38B-AWQ", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Skywork/Skywork-R1V-38B-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Skywork/Skywork-R1V-38B-AWQ" # 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-R1V-38B-AWQ", "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-R1V-38B-AWQ
- SGLang
How to use Skywork/Skywork-R1V-38B-AWQ 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-R1V-38B-AWQ" \ --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-R1V-38B-AWQ", "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-R1V-38B-AWQ" \ --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-R1V-38B-AWQ", "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-R1V-38B-AWQ with Docker Model Runner:
docker model run hf.co/Skywork/Skywork-R1V-38B-AWQ
Update README.md
Browse files168 unmodified lines169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263168 unmodified linesIf you use this model in your research, please cite:```bibtex@article{skywork2025r1v,title = {Skywork-R1V3 Technical Report},author = {Yi Peng, Chris, Xiaokun Wang, Yichen Wei, Jiangbo Pei, Weijie Qiu, Ai Jian, Yunzhuo Hao, Jiachun Pan, Tianyidan Xie, Li Ge, Rongxian Zhuang, Xuchen Song, Yang Liu, Yahui Zhou},year = {2025},journal = {https://huggingface.co/papers/2507.06167},url = {https://huggingface.co/papers/2507.06167}}```# Skywork-R1V-38B-AWQ (中文说明)## 使用方法您可以使用不同的推理框架来使用这个量化模型:### 使用 VLLM#### Python API```pythonimport osfrom vllm import LLM, SamplingParamsfrom vllm.entrypoints.chat_utils import load_chat_templatemodel_name = "Skywork/Skywork-R1V-38B-AWQ" # 或本地路径llm = LLM(model_name,dtype='float16',quantization="awq",gpu_memory_utilization=0.85,max_model_len=4096,trust_remote_code=True,)# 在此添加您的推理代码```#### OpenAI 兼容的 API 服务器```bashMODEL_ID="Skywork/Skywork-R1V-38B-AWQ" # 或本地路径CUDA_VISIBLE_DEVICES=0 \python -m vllm.entrypoints.openai.api_server \--model $MODEL_ID \--dtype float16 \--quantization awq \--port 23334 \--max-model-len 12000 \--gpu-memory-utilization 0.9 \--trust-remote-code```### 使用 LMDeploy```pythonimport osfrom lmdeploy import pipeline, TurbomindEngineConfig, ChatTemplateConfigfrom lmdeploy.vl import load_imagemodel_path = "Skywork/Skywork-R1V-38B-AWQ" # 或本地路径engine_config = TurbomindEngineConfig(cache_max_entry_count=0.75)chat_template_config = ChatTemplateConfig(model_name=model_path)pipe = pipeline(model_path,backend_config=engine_config,chat_template_config=chat_template_config,)# 示例:多模态推理image = load_image('table.jpg')response = pipe(('描述这个图片?', image))print(response.text)```## 硬件要求与原始 FP16 模型相比,AWQ 量化减少了内存占用。我们建议:- 至少一块 30GB+ 显存的 GPU 用于推理- 对于更长上下文的最佳性能,建议使用 40GB+ 显存## 引用如果您在研究中使用此模型,请引用:```bibtex@misc{peng2025skyworkr1vpioneeringmultimodal,title={Skywork-R1V3 Technical Report},author={Yi Peng and Chris and Xiaokun Wang and Yichen Wei and Jiangbo Pei and Weijie Qiu and Ai Jian and Yunzhuo Hao and Jiachun Pan and Tianyidan Xie and Li Ge and Rongxian Zhuang and Xuchen Song and Yang Liu and Yahui Zhou},year={2025},url={https://huggingface.co/papers/2507.06167},}```168 unmodified lines169170171172173174175176177178179180181182183184185186187188189190191168 unmodified linesIf you use this model in your research, please cite:```bibtex@misc{shen2025skyworkr1v3technicalreport,title={Skywork-R1V3 Technical Report},author={Wei Shen and Jiangbo Pei and Yi Peng and Xuchen Song and Yang Liu and Jian Peng and Haofeng Sun and Yunzhuo Hao and Peiyu Wang and Jianhao Zhang and Yahui Zhou},year={2025},eprint={2507.06167},archivePrefix={arXiv},primaryClass={cs.CL},url={https://arxiv.org/abs/2507.06167},}@misc{peng2025skyworkr1vpioneeringmultimodal,title={Skywork R1V: Pioneering Multimodal Reasoning with Chain-of-Thought},author={Yi Peng and Peiyu Wang and Xiaokun Wang and Yichen Wei and Jiangbo Pei and Weijie Qiu and Ai Jian and Yunzhuo Hao and Jiachun Pan and Tianyidan Xie and Li Ge and Rongxian Zhuang and Xuchen Song and Yang Liu and Yahui Zhou},year={2025},eprint={2504.05599},archivePrefix={arXiv},primaryClass={cs.CV},url={https://arxiv.org/abs/2504.05599},}```
README.md+15-87