vllm-bench-random-synthetic
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "vllm-bench-random-synthetic":https://skillpi.com/zh/skills/deepskill-d2acc4495f5091da84b9e4e5f4235b0277ac140693563e9815f3e297e0e4a8eb。安装前核对上游来源和版本:https://github.com/vllm-project/vllm-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
使用合成随机数据运行 vLLM 性能基准测试,以测量吞吐量、首个令牌生成时间(TTFT)、每输出令牌平均时间(TPOT)及其他关键性能指标。适合希望在不下载外部数据集情况下快速测试 vLLM 服务性能的场景。
介绍来源: third_party · vllm-project · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: vllm-bench-random-synthetic
description: Run vLLM performance benchmark using synthetic random data to measure throughput, TTFT (Time to First Token), TPOT (Time per Output Token), and other key performance metrics. Use when the user wants to quickly test vLLM serving performance without downloading external datasets.vLLM Benchmark with Random Synthetic Data
Run a quick performance benchmark on a vLLM server using synthetic random data. This skill measures core serving metrics including request throughput, token throughput, TTFT (Time to First Token), TPOT (Time per Output Token), and inter-token latency.
When to use
- User wants to quickly benchmark vLLM serving performance
- User wants to measure throughput and latency metrics without downloading datasets
- User wants to test a vLLM deployment with synthetic workload
- User wants baseline performance numbers for a specific model
Prerequisites
- vLLM must be installed (
pip install vllm) - A vLLM server must be running (or can be started as part of the benchmark)
- For GPU models, NVIDIA GPU with appropriate drivers must be available
Quick Start
The simplest way to run the benchmark:
# Start vLLM server (in background or separate terminal)
vllm serve Qwen/Qwen2.5-1.5B-Instruct
# Run benchmark with random synthetic data
vllm bench serve \
--backend openai-chat \
--model Qwen/Qwen2.5-1.5B-Instruct \
--endpoint /v1/chat/completions \
--dataset-name random \
--num-prompts 10
Note:
- Use
--backend openai-chatwith endpoint/v1/chat/completionsfor online benchmarks.
Parameters
| Parameter | Description | Default |
|---|---|---|
--backend |
Backend type: vllm, openai, openai-chat |
vllm |
--model |
Model name (must match the server) | Required |
--endpoint |
API endpoint path | /v1/completions or /v1/chat/completions |
--dataset-name |
Dataset to use | random (synthetic) |
--num-prompts |
Number of requests to send | 10 |
--port |
Server port | 8000 |
--max-concurrency |
Maximum concurrent requests | Auto |
--save-result |
Save results to file | Off |
--result-dir |
Directory to save results | ./ |
Expected Output
When successful, you will see output like:
============ Serving Benchmark Result ============
Successful requests: 10
Benchmark duration (s): 5.78
Total input tokens: 1369
Total generated tokens: 2212
Request throughput (req/s): 1.73
Output token throughput (tok/s): 382.89
Total token throughput (tok/s): 619.85
---------------Time to First Token----------------
Mean TTFT (ms): 71.54
Median TTFT (ms): 73.88
P99 TTFT (ms): 79.49
-----Time per Output Token (excl. 1st token)------
Mean TPOT (ms): 7.91
Median TPOT (ms): 7.96
P99 TPOT (ms): 8.03
---------------Inter-token Latency----------------
Mean ITL (ms): 7.74
Median ITL (ms): 7.70
P99 ITL (ms): 8.39
==================================================
Advanced Usage
With more prompts for better statistics
vllm bench serve \
--backend openai-chat \
--model Qwen/Qwen2.5-1.5B-Instruct \
--endpoint /v1/chat/completions \
--dataset-name random \
--num-prompts 100
Save results to file
vllm bench serve \
--backend openai-chat \
--model Qwen/Qwen2.5-1.5B-Instruct \
--endpoint /v1/chat/completions \
--dataset-name random \
--num-prompts 50 \
--save-result \
--result-dir ./benchmark-results/
Custom port and concurrency
vllm bench serve \
--backend openai-chat \
--model meta-llama/Llama-3.1-8B-Instruct \
--endpoint /v1/chat/completions \
--dataset-name random \
--num-prompts 100 \
--port 8001 \
--max-concurrency 4
Model Recommendations
For quick testing (small models, fast):
Qwen/Qwen2.5-1.5B-Instruct(recommended for quick tests)facebook/opt-125mfacebook/opt-350m
For realistic benchmarks (medium models):
Qwen/Qwen2.5-7B-Instructmeta-llama/Llama-3.1-8B-Instructmistralai/Mistral-7B-Instruct-v0.3
Workflow
- Check if vLLM is installed: Run
vllm --versionto verify - Check if server is already running: Run
curl http://localhost:8000/healthto check - Start vLLM server if needed: Run
vllm serve <model-name>(wait for "Application startup complete") - Run benchmark: Execute
vllm bench servewith appropriate parameters - Review results: Check throughput and latency metrics
- Clean up: If the agent skill started the vLLM server (not a pre-existing one), stop it after benchmark completion using
kill <PID>
Troubleshooting
Server not responding:
- Check if server is running:
curl http://localhost:8000/health - Verify port matches: Use
--portflag if server is on different port
Model not found:
- Ensure model name matches exactly between server and benchmark
- Check HuggingFace access:
export HF_TOKEN=<your_token>if needed
Out of memory:
- Use a smaller model (e.g., Qwen2.5-1.5B-Instruct)
- Reduce
--num-promptsor--max-concurrency
Connection refused:
- Server may still be starting (wait for "Application startup complete")
- Check firewall or network settings
Notes
- The
randomdataset generates synthetic prompts automatically - Benchmark duration scales with
--num-prompts - For production benchmarking, use at least 100 prompts for stable statistics
- Results may vary based on hardware, model size, and system load
- First run may be slower due to model loading and compilation
- Important: If the agent skill starts a vLLM server for benchmarking, it must stop the server after the benchmark completes to free up resources. Do not stop pre-existing servers that were already running before the benchmark.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供无需下载外部数据集即可快速测试 vLLM 服务性能的实用能力
- 覆盖吞吐量、TTFT、TPOT 等关键性能指标测量,满足用户明确的性能评估需求
亮点
- description 清晰完整地描述了 Skill 的核心功能和适用场景
- 触发词精准,边界清晰,能有效引导用户在合适场景下使用该 Skill
亮点
- 文档结构完整,包含从前置条件到故障排查的全流程指导
- Workflow 步骤清晰,配有端到端示例,便于用户理解和执行
亮点
- 工具来源明确(vLLM),参数说明完整准确
- 覆盖了主要异常情况并提供解决方案,体现了良好的错误处理意识
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 19 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- localhost
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。