File size: 7,410 Bytes
ba4e06e b5ac5f4 ba4e06e 16cc189 1e15726 16cc189 b5ac5f4 16cc189 1e15726 16cc189 0fd378a 16cc189 0fd378a 16cc189 0fd378a 16cc189 b5ac5f4 16cc189 b5ac5f4 16cc189 946dcd4 b5ac5f4 946dcd4 b5ac5f4 ba4e06e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 |
---
library_name: transformers
license: mit
pipeline_tag: image-text-to-text
---
# Skywork-R1V-38B-AWQ
<div align="center">
<img src="skywork-logo.png" alt="Introduction Image" width="500" height="400">
</div>
## 📖 [Technical Report](https://huggingface.co/papers/2507.06167) | 💻 [GitHub](https://github.com/SkyworkAI/Skywork-R1V) | 🌐 [Wisemodel](https://wisemodel.cn/models/Skywork/Skywork-R1V)
<div align="center">
[](https://github.com/SkyworkAI/Skywork-R1V/stargazers) [](https://github.com/SkyworkAI/Skywork-R1V/fork)
</div>
## Evaluation
<div align="center">
<b>Comparison with Larger-Scale Open-Source and Closed-Source Models</b>
</div>
<table align="center">
<thead>
<tr>
<th></th>
<th align="center"><strong>Benchmark</strong></th>
<th align="center"><strong>LLM</strong></th>
<th align="center" colspan="5"><strong>VLM</strong></th>
</tr>
<tr>
<th></th>
<th></th>
<th align="center"><strong>QwQ-32B-Preview</strong></th>
<th align="center"><strong>InternVL-2.5-38B</strong></th>
<th align="center"><strong>VILA 1.5-40B</strong></th>
<th align="center"><strong>InternVL2-40B</strong></th>
<th align="center"><strong>Skywork-R1V-38B</strong></th>
<th align="center"><strong>Skywork-R1V-AWQ</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="3">Reasoning</td>
<td>MATH-500</td>
<td align="center">90.6</td>
<td align="center">-</td>
<td align="center">-</td>
<td align="center">-</td>
<td align="center"><strong>94.0</strong></td>
<td align="center">86.0</td>
</tr>
<tr>
<td>AIME 2024</td>
<td align="center">50.0</td>
<td align="center">-</td>
<td align="center">-</td>
<td align="center">-</td>
<td align="center"><strong>72.0</strong></td>
<td align="center">61.0</td>
</tr>
<tr>
<td>GPQA</td>
<td align="center">54.5</td>
<td align="center">-</td>
<td align="center">-</td>
<td align="center">-</td>
<td align="center"><strong>61.6</strong></td>
<td align="center">56.5</td>
</tr>
<tr>
<td rowspan="2">Vision</td>
<td>MathVista(mini)</td>
<td align="center">-</td>
<td align="center">71.9</td>
<td align="center">49.5</td>
<td align="center">63.7</td>
<td align="center">67.5</td>
<td align="center">59.9</td>
</tr>
<tr>
<td>MMMU(Val)</td>
<td align="center">-</td>
<td align="center">63.9</td>
<td align="center">55.1</td>
<td align="center">55.2</td>
<td align="center"><strong>69.0</strong></td>
<td align="center">60.1</td>
</tr>
</tbody>
</table>
## Usage
You can use the quantized model with different inference frameworks:
### Using VLLM
#### Python API
```python
import os
from vllm import LLM, SamplingParams
from vllm.entrypoints.chat_utils import load_chat_template
model_name = "Skywork/Skywork-R1V-38B-AWQ" # or local path
llm = LLM(model_name,
dtype='float16',
quantization="awq",
gpu_memory_utilization=0.85,
max_model_len=4096,
trust_remote_code=True,
)
# Add your inference code here
```
#### OpenAI-compatible API Server
```bash
MODEL_ID="Skywork/Skywork-R1V-38B-AWQ" # or local path
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
```
### Using LMDeploy
```python
import os
from lmdeploy import pipeline, TurbomindEngineConfig, ChatTemplateConfig
from lmdeploy.vl import load_image
model_path = "Skywork/Skywork-R1V-38B-AWQ" # or local path
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,
)
# Example: Multimodal inference
image = load_image('table.jpg')
response = pipe(('Describe this image?', image))
print(response.text)
```
## Hardware Requirements
The AWQ quantization reduces the memory footprint compared to the original FP16 model. We recommend:
- At least one GPU with 30GB+ VRAM for inference
- For optimal performance with longer contexts, 40GB+ VRAM is recommended
## Citation
If 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
```python
import os
from vllm import LLM, SamplingParams
from vllm.entrypoints.chat_utils import load_chat_template
model_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 服务器
```bash
MODEL_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
```python
import os
from lmdeploy import pipeline, TurbomindEngineConfig, ChatTemplateConfig
from lmdeploy.vl import load_image
model_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},
}
``` |