跳到主要内容

推理性能

模型性能数据

以下数据来自 vLLM-MUSA v1.4.2 在 M1000 端侧环境的实测结果。均在性能模式+compute_only环境下测试,数值供参考。

测试环境

  • 端设备:M1000 模组,64G 统一内存, DDR6400
  • 系统版本:V1.4.1
  • 服务参数:max-model-len=16384
  • 文本测试并发:12
  • 文本测试输入 / 输出:32/32128/1281024/10243072/10248192/1024
  • 图片测试输入 / 输出:128/128,单图,分辨率 256×256512×512720×1280

指标说明

LLM / VLM 文本性能字段:

  • Batch:并发数。
  • Input:输入 token 数。
  • Output:输出 token 数。
  • Decode(tps):Decode 吞吐率,即输出 TPS,为1000/TPOT(ms)。
  • TTFT(ms):首 token 平均延迟。
  • TPOT(ms):平均每输出 token 耗时。

图片输入性能字段:

  • Image:图片分辨率。
  • 其余字段含义同 LLM / VLM 文本性能字段。

Embedding / Reranker 性能字段:

  • Input / Output:输入 / 输出 token 数。
  • QPS:实际请求 QPS。
  • Output(tps):输出吞吐。
  • Total(tps):总吞吐。
  • TTFT(ms):首 token 平均延迟。

LLM / VLM 文本性能指标

Qwen3.6

gptq-Qwen3.6-35B-A3B-4bit-group(MoE GPTQ,GPTQ INT4(W4A16))

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.019.33682.9851.74
1128.0128.018.601200.7153.75
11024.01024.018.164884.8055.08
13072.01024.017.5513889.7656.99
18192.01024.016.1837621.4261.80
232.032.019.282386.4451.86
2128.0128.018.747185.0653.37
21024.01024.018.1250875.1555.18
23072.01024.017.5168108.8057.11
28192.01024.016.19113471.0561.75

Qwen3.6-27B-gptq-v1(Dense GPTQ,GPTQ INT4(W4A16))

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.04.191403.54238.64
1128.0128.04.032780.04248.01
11024.01024.03.8613649.41259.04
13072.01024.03.6745759.20272.31
18192.01024.03.24130219.21308.89
232.032.04.157567.29240.84
2128.0128.04.0327714.88248.41
21024.01024.03.80224731.41263.29
23072.01024.03.47305650.18287.80
28192.01024.03.24463886.80308.64

Qwen3.5

gptq-Qwen3.5-35B-A3B-full-4bit-group(MoE GPTQ,GPTQ INT4(W4A16))

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.0128.018.94723.9352.81
1128.0128.018.831200.5053.12
11024.0128.018.424702.1054.29
18192.0128.016.4535673.3260.79

gptq-Qwen3.5-9B-full-int4-group(Dense GPTQ,GPTQ INT4(W4A16))

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.011.79394.9584.85
1128.0128.011.31742.5488.40
11024.01024.010.753802.2793.04
13072.01024.09.9612133.66100.39
18192.01024.08.3833830.81119.29
232.032.011.802645.4184.78
2128.0128.011.389647.4787.86
21024.01024.010.7577996.5093.01
23072.01024.09.9798178.68100.29
28192.01024.08.39150644.92119.15

gptq-Qwen3.5-4B-full-int4-group(Dense GPTQ,GPTQ INT4(W4A16))

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.018.38261.3354.42
1128.0128.017.88483.2455.94
11024.01024.016.282386.0861.42
13072.01024.014.517433.9668.92
18192.01024.011.3420759.1288.15
232.032.018.381708.5354.40
2128.0128.017.876156.2555.96
21024.01024.016.3551074.7061.15
23072.01024.014.5665709.8468.68
28192.01024.011.39103635.1287.76

Qwen3.5-4B(Dense,BF16)

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.09.06324.21110.32
1128.0128.08.81480.09113.47
11024.01024.08.402056.30119.04
13072.01024.07.895545.91126.73
18192.01024.06.8515006.32145.92
232.032.09.053133.66110.56
2128.0128.08.8111639.78113.55
21024.01024.08.4094871.87118.99
23072.01024.07.90106783.23126.55
28192.01024.06.86138109.27145.76

Qwen3-VL

gptq-Qwen3-VL-8B-Instruct-4bit-group(VLM GPTQ,GPTQ INT4(W4A16))

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.013.06322.7676.55
1128.0128.012.40594.9580.64
11024.01024.010.583176.4594.50
13072.01024.08.6510904.11115.57
18192.01024.05.9532595.23168.05
232.032.013.082330.0876.43
2128.0128.012.398688.4280.68
21024.01024.010.5877976.6194.48
23072.01024.08.65107956.05115.56
28192.01024.05.95186801.42168.09

gptq-Qwen3-VL-4B-Instruct-4bit-group(VLM GPTQ,GPTQ INT4(W4A16))

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.020.75182.9648.20
1128.0128.019.70348.2150.75
11024.01024.015.361775.4565.11
13072.01024.011.596051.2186.25
18192.01024.07.1919708.28139.02
232.032.020.741432.0948.23
2128.0128.019.665433.5050.86
21024.01024.015.3653000.6165.11
23072.01024.011.5877055.3386.32
28192.01024.07.19141821.15139.05

gptq-Qwen3-VL-2B-Instruct-4bit-group(VLM GPTQ,GPTQ INT4(W4A16))

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.038.3698.4326.07
1128.0128.036.05161.6627.74
11024.01024.025.62745.4339.03
13072.01024.018.012405.8655.53
18192.01024.010.377756.5396.39
232.032.038.40768.5526.04
2128.0128.035.682935.0728.03
21024.01024.025.6131219.2639.05
23072.01024.018.0047019.9155.56
28192.01024.010.3688027.8496.51

Qwen3

Qwen3-30B-A3B-GPTQ-Int4(MoE GPTQ,GPTQ INT4(W4A16))

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.022.26742.5644.91
1128.0128.021.461258.5946.59
11024.01024.020.215354.2049.49
13072.01024.018.7715801.1653.27
18192.01024.015.9745665.2562.63
232.032.022.292328.0944.86
2128.0128.021.626593.7746.25
21024.01024.020.2147293.7049.49
23072.01024.018.7768683.3553.29
28192.01024.015.97128457.6162.61

gptq-Qwen3-8B(Dense GPTQ,GPTQ INT4(W4A16))

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.010.78286.0992.74
1128.0128.010.38488.1496.37
11024.01024.09.012092.27110.96
13072.01024.07.575921.74132.16
18192.01024.05.4118432.20184.74
232.032.010.782644.8192.77
2128.0128.010.3710017.6596.46
21024.01024.09.0188739.00110.97
23072.01024.07.57111985.52132.17
28192.01024.05.41174626.95184.72

Qwen3-8B(Dense,BF16)

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.05.71441.86175.01
1128.0128.05.54596.23180.65
11024.01024.05.112271.19195.82
13072.01024.04.616400.03217.03
18192.01024.03.7119240.77269.79
232.032.05.714831.42175.05
2128.0128.05.5318238.64180.77
21024.01024.05.11154160.42195.83
23072.01024.04.61177957.39217.04
28192.01024.03.71241325.75269.80

Qwen3-0.6B(Dense,BF16)

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.048.5266.0120.61
1128.0128.044.9386.3322.26
11024.01024.029.99310.7333.34
13072.01024.020.051001.3449.86
18192.01024.011.003900.7590.94
232.032.048.51592.1720.62
2128.0128.044.692272.2522.38
21024.01024.030.0026071.6333.34
23072.01024.020.0640163.1649.85
28192.01024.011.0076986.3090.93

Hunyuan

Hy-MT2-7B(Dense,BF16)

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.05.67452.73176.49
1128.0128.05.49639.45182.14
11024.01024.05.102310.87195.91
13072.01024.04.656482.91215.21
18192.01024.03.7919674.85263.55
232.032.05.674884.19176.46
2128.0128.05.4918464.19182.22
21024.01024.05.10154294.06195.90
23072.01024.04.65176541.51215.23
28192.01024.03.79237049.25263.53

Hy-MT2-1.8B(Dense,BF16)

BatchInputOutputDecode(tps)TTFT(ms)TPOT(ms)
132.032.018.76128.8553.32
1128.0128.018.04183.2455.42
11024.01024.016.59645.8660.29
13072.01024.015.361801.6865.09
18192.01024.013.066120.8176.55
232.032.018.761454.6453.31
2128.0128.018.035587.5355.48
21024.01024.016.6047299.2360.25
23072.01024.015.3653164.3465.11
28192.01024.013.0669526.2276.55

图片输入性能指标

Qwen3-VL

gptq-Qwen3-VL-30B-A3B-Instruct-4bit-group(VLM MoE GPTQ,GPTQ INT4(W4A16))

BatchImageInputOutputDecode(tps)TTFT(ms)TPOT(ms)
1256×25612812819.211878.9952.06
1512×51212812818.262906.9454.77
1720×128012812815.746442.3063.52

gptq-Qwen3-VL-8B-Instruct-4bit-group(VLM GPTQ,GPTQ INT4(W4A16))

BatchImageInputOutputDecode(tps)TTFT(ms)TPOT(ms)
1256×25612812812.23781.1181.79
1512×51212812811.931495.0583.82
1720×128012812811.104015.9790.06

gptq-Qwen3-VL-4B-Instruct-4bit-group(VLM GPTQ,GPTQ INT4(W4A16))

BatchImageInputOutputDecode(tps)TTFT(ms)TPOT(ms)
1256×25612812818.83456.1853.12
1512×51212812818.15896.0455.09
1720×128012812816.312352.8261.33

gptq-Qwen3-VL-2B-Instruct-4bit-group(VLM GPTQ,GPTQ INT4(W4A16))

BatchImageInputOutputDecode(tps)TTFT(ms)TPOT(ms)
1256×25612812833.41221.8329.93
1512×51212812831.75500.2431.49
1720×128012812827.331377.5936.58

OCR

PaddleOCR-VL(OCR,BF16)

BatchImageInputOutputDecode(tps)TTFT(ms)TPOT(ms)
1256×25612812863.1389.7715.84
1512×51212812860.57440.2316.51
1720×128012812847.981812.5720.84

DeepSeek-OCR-2(OCR,BF16)

BatchImageInputOutputDecode(tps)TTFT(ms)TPOT(ms)
1256×25612712848.92312.5320.44
1512×51212712848.92890.5520.44
1720×128012712846.611371.5521.45

Embedding / Reranker 性能指标

bge-m3(Embedding,FP16)

BatchInput / OutputQPSOutput(tps)Total(tps)TTFT(ms)
11024/10240.737481496250.9
1128/1280.749318745.0
13072/10240.63194138811441.9
132/320.74224443.8
21024/10240.737491497241.8
2128/1280.749318744.4
23072/10240.64196839352139.2
232/320.74224443.2

bge-reranker-v2-m3(Reranker,FP16)

BatchInput / OutputQPSOutput(tps)Total(tps)TTFT(ms)
11024/10240.7475815152.2
1128/1280.74931871.9
13072/10240.74227645522.5
132/320.7422442.4
18196/10240.746075121503.3
21024/10240.7475815151.9
2128/1280.74931872.2
23072/10240.74227645522.5
232/320.7422442.2
28196/10240.746073121463.2

本章节提供基于 vllm bench serve快速验证命令,用于确认文本生成和多模态图片请求链路可以正常完成,并快速查看 TTFT、TPOT、吞吐等基础指标。以下示例默认使用单请求、单并发配置。

测试前准备

性能测试需要先启动模型服务,再另开一个窗口运行 vllm bench serve

建议在运行 benchmark 前先激活环境,并显式配置 conda 运行时库路径:

source /home/dev/miniforge3/etc/profile.d/conda.sh
conda activate v1.4.2
export LD_LIBRARY_PATH="$CONDA_PREFIX/lib:$LD_LIBRARY_PATH"
提示

如果未配置 LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH,可能会遇到 CXXABI_1.3.15 not found 相关报错,处理方式请参考“常见问题(FAQ)”。

文本生成快速验证

先按“快速开始”章节启动文本生成模型服务,例如 gptq-Qwen3-8B。服务启动后,在另一个窗口执行:

vllm bench serve \
--backend openai-chat \
--base-url http://127.0.0.1:8000 \
--endpoint /v1/chat/completions \
--model /home/dev/models/gptq-Qwen3-8B \
--dataset-name random \
--random-input-len 128 \
--random-output-len 128 \
--num-prompts 1 \
--max-concurrency 1 \
--ignore-eos

多模态图片快速验证

多模态图片性能快速验证适用于 Qwen-VL、Qwen3-VL 等图片输入模型。先按“快速开始”章节启动多模态模型服务,例如 gptq-Qwen3-VL-8B-Instruct-4bit-group。如果使用该 8B 示例,服务启动时需要包含:

--limit-mm-per-prompt '{"image":1}'
--hf-overrides '{"text_config":{"tie_word_embeddings":false}}'

如果改测 Qwen3-VL 2B/4B,只保留 --limit-mm-per-prompt '{"image":1}',不要增加 --hf-overrides;如果改测 Qwen3-VL 30B-A3B,与 8B 一样需要增加 --hf-overrides '{"text_config":{"tie_word_embeddings":false}}'

服务启动后,在另一个窗口执行:

vllm bench serve \
--backend openai-chat \
--base-url http://127.0.0.1:8000 \
--endpoint /v1/chat/completions \
--model /home/dev/models/gptq-Qwen3-VL-8B-Instruct-4bit-group \
--dataset-name random-mm \
--num-prompts 1 \
--max-concurrency 1 \
--random-input-len 128 \
--random-output-len 128 \
--random-mm-base-items-per-request 1 \
--random-mm-limit-mm-per-prompt '{"image":1,"video":0}' \
--random-mm-bucket-config '{(256, 256, 1): 1.0}'

上述命令使用 random-mm 随机多模态数据集,发送 1 条多模态请求。该请求包含约 128 token 文本输入、1 张 256×256 随机图片,并请求模型生成约 128 token。

如需快速验证不同图片分辨率,可调整 --random-mm-bucket-config

# 512 x 512 单图
--random-mm-bucket-config '{(512, 512, 1): 1.0}'

# 720 x 1280 单图
--random-mm-bucket-config '{(720, 1280, 1): 1.0}'
提示

当前 random-mm 适合快速验证多模态图片输入链路和基础指标。真实业务需求请使用需求真实图片数据集和固定提示词进行测试。

参数说明

参数名参数作用输入范围 / 建议值
--backend指定 benchmark 使用的服务后端OpenAI chat 接口使用 openai-chat
--base-url指定 vLLM 服务地址默认本机服务可使用 http://127.0.0.1:8000
--endpoint指定请求接口文本和多模态 chat 使用 /v1/chat/completions
--model指定待测试的模型名称 / 本地路径字符串,需与服务端部署的模型路径或 --served-model-name 一致
--dataset-name指定性能测试使用的数据集类型文本随机数据集使用 random,随机多模态数据集使用 random-mm
--random-input-len使用随机数据集时,设置输入 Prompt 的 token 长度正整数,快速验证可使用 128
--random-output-len使用随机数据集时,设置模型输出 token 长度正整数,快速验证可使用 128
--num-prompts指定本次 benchmark 总请求数快速验证使用 1;多请求稳定性或吞吐测试可增大到 10100 或更多
--max-concurrency指定最大并发请求数单请求快速验证使用 1
--ignore-eos忽略 EOS 结束符文本性能测试时启用可保证输出长度稳定,避免提前停止影响结果
--random-mm-base-items-per-request多模态测试中,每条请求的多模态输入数量基准值单图测试使用 1
--random-mm-limit-mm-per-prompt限制每条请求中不同多模态输入的数量单图测试使用 '{"image":1,"video":0}'
--random-mm-bucket-config配置随机图片尺寸及采样概率例如 '{(256, 256, 1): 1.0}' 表示每条请求使用 1 张 256×256 图片

--num-prompts 说明

--num-prompts 表示本次 benchmark 总共发送多少条请求。快速验证场景建议设置为:

--num-prompts 1

对于多模态 random-mm 测试,每条请求通常包含:

  • 一段随机文本输入;
  • --random-mm-* 参数生成的图片输入;
  • 指定长度的输出请求。

如果需要做多请求稳定性或吞吐测试,可以将 --num-prompts 增大,例如 10100 或更多,并根据测试目标调整 --max-concurrency

输出示例

执行成功后,vllm bench serve 会输出类似如下指标。具体数值与模型、输入长度、输出长度、图片尺寸、并发数和运行环境有关,请以实际测试输出为准。

============ Serving Benchmark Result ============
Successful requests: 1
Failed requests: 0
Maximum request concurrency: 1
Benchmark duration (s): 11.68
Total input tokens: 128
Total generated tokens: 128
Request throughput (req/s): 0.09
Output token throughput (tok/s): 10.96
Peak output token throughput (tok/s): 12.00
Peak concurrent requests: 1.00
Total token throughput (tok/s): 21.91
---------------Time to First Token----------------
Mean TTFT (ms): 582.24
Median TTFT (ms): 582.24
P99 TTFT (ms): 582.24
-----Time per Output Token (excl. 1st token)------
Mean TPOT (ms): 87.40
Median TPOT (ms): 87.40
P99 TPOT (ms): 87.40
---------------Inter-token Latency----------------
Mean ITL (ms): 86.72
Median ITL (ms): 87.78
P99 ITL (ms): 91.97
==================================================
备注
  1. 一个窗口启动模型服务(vllm serve),另一个窗口运行性能测试(vllm bench serve)。
  2. 本章节命令定位为快速验证,默认使用单请求、单并发。
  3. 上述输出示例仅说明结果格式,不代表固定性能数据。实际结果请以本地测试输出为准。
  4. 正式性能测试建议固定并发、请求数、输入/输出长度、图片尺寸和测试环境,并多次运行后统计结果。