vllm-deploy-simple
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "vllm-deploy-simple":https://skillpi.com/zh/skills/deepskill-f12adbccf757e382d880d34574842a7748e20819e67ccfdbfb97dfd7b42b7a8d。安装前核对上游来源和版本:https://github.com/vllm-project/vllm-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
快速安装并部署 vLLM 的工具。用于使用简单的 LLM 启动服务并测试 OpenAI API。
介绍来源: third_party · vllm-project · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: vllm-deploy-simple
description: Quick install and deploy vLLM, start serving with a simple LLM, and test OpenAI API.vLLM Simple Deployment
A simple skill to quickly install vLLM, start a server, and validate the OpenAI-compatible API.
What this skill does
This skill provides a streamlined workflow to:
- Detect hardware backend (NVIDIA CUDA, AMD ROCm, Google TPU, or CPU)
- Install vLLM with appropriate backend support
- Start the vLLM server with configurable model and port
- Test the OpenAI-compatible API endpoint
- Validate the deployment is working correctly
- Support virtual environment isolation
Prerequisites
- Python 3.10+
- GPU (NVIDIA CUDA, AMD ROCm) (recommended) or TPU or CPU
- pip or uv package manager
- curl (for API testing)
- Virtual environment (optional but recommended)
Usage
Create a venv
If user did not specify the venv path or asked to deploy in the current environment, create a venv using uv with python 3.12 in the current folder. If uv not found, make a folder in this path and use python to create a virtual environment.
Run the complete workflow (suggested)
If user did not specify the venv path, model, or port, use default options:
# Default deployment options (--venv "." --model "Qwen/Qwen2.5-1.5B-Instruct" --port 8000 --gpu_memory_utilization 0.8)
scripts/quickstart.sh
Or with custom options:
# Use custom virtual environment
scripts/quickstart.sh --venv /path/to/venv
# Use custom model and port
scripts/quickstart.sh --model "Qwen/Qwen2.5-1.5B-Instruct" --port 8000
# Use custom GPU memory utilization
scripts/quickstart.sh --gpu_memory_utilization 0.6
# Combine all options
scripts/quickstart.sh --venv /path/to/venv --model "Qwen/Qwen2.5-1.5B-Instruct" --port 8000 --gpu_memory_utilization 0.8
This will:
- Activate the virtual environment (if specified)
- Detect hardware backend (CUDA/ROCm/TPU/CPU)
- Install vLLM with appropriate backend support
- Start the vLLM server in the background
- Wait for the server to be ready
- Test the API with a sample request
- Display the server status
Run individual commands (for step-by-step usage or troubleshooting)
Install vLLM:
scripts/quickstart.sh install
# Or with virtual environment
scripts/quickstart.sh install --venv /path/to/venv
Start the server:
scripts/quickstart.sh start
# Or with custom options
scripts/quickstart.sh start --venv /path/to/venv --model "Qwen/Qwen2.5-1.5B-Instruct" --port 8000 --gpu_memory_utilization 0.8
Test the API:
scripts/quickstart.sh test
# Or with custom port
scripts/quickstart.sh test --port 8000
Stop the server:
scripts/quickstart.sh stop
# Or with virtual environment
scripts/quickstart.sh stop --venv /path/to/venv
Check server status:
scripts/quickstart.sh status
Restart the server:
scripts/quickstart.sh restart
# Or with custom options
scripts/quickstart.sh restart --venv /path/to/venv --port 8000 --gpu_memory_utilization 0.8
Configuration
The script supports the following command-line options:
scripts/quickstart.sh [command] [OPTIONS]
Commands:
install - Install vLLM and dependencies
start - Start the vLLM server
stop - Stop the vLLM server
test - Test the OpenAI-compatible API
status - Show server status
restart - Restart the server
all - Run complete workflow (default)
Options:
--model MODEL Model to use (default: Qwen/Qwen2.5-1.5B-Instruct)
--port PORT Port to run server on (default: 8000)
--venv VENV_PATH Virtual environment path (default: .)
--gpu_memory_utilization VRAM GPU memory utilization (default: 0.8)
Hardware Backend Detection
The script automatically detects your hardware and installs the appropriate vLLM version:
- NVIDIA CUDA: Detected via
nvidia-smicommand - AMD ROCm: Detected via
/dev/kfdand/dev/dridevices - Google TPU: Detected via
TPU_NAMEenvironment variable orgcloudcommand - CPU: Fallback if no GPU/TPU detected
For Google TPU, the script installs vllm-tpu instead of the standard vllm package.
API Testing
The test script sends a simple chat completion request:
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "Qwen/Qwen2.5-1.5B-Instruct",
"messages": [{"role": "user", "content": "Say hello!"}],
"max_tokens": 50
}'
Troubleshooting
Virtual environment not found:
- Ensure the path provided with
--venvexists and is a valid virtual environment - Check that the activation script exists (
bin/activateon Linux/macOS orScripts/activateon Windows) - Check and install uv, and create a new virtual environment with uv:
uv venv /path/to/venv(suggested); or with pip:python3 -m venv /path/to/venv
Server won't start:
- Check if the port is already in use:
lsof -i :8000 - Verify GPU availability:
nvidia-smi(for NVIDIA) orrocm-smi(for AMD) - Check vLLM installation:
python -c "import vllm; print(vllm.__version__)" - Review server logs at
$VENV_PATH/tmp/vllm-server.log
API returns errors:
- Wait a few seconds for the model to load
- Check server logs:
cat $VENV_PATH/tmp/vllm-server.log - Verify the server is running:
scripts/quickstart.sh status
Out of memory:
- Use a smaller model (e.g., Qwen2.5-0.5B-Instruct)
- Reduce
--gpu-memory-utilizationparameter - Close other GPU-intensive applications
Wrong backend detected:
- For NVIDIA: Ensure
nvidia-smiis in your PATH - For AMD: Check that ROCm drivers are properly installed
- For TPU: Set
TPU_NAMEenvironment variable or installgcloud
Notes
- The server runs in the background and logs to
$VENV_PATH/tmp/vllm-server.log - The PID is stored in
$VENV_PATH/tmp/vllm-server.pidfor easy management - First run will download the model (~3GB for Qwen2.5-1.5B-Instruct)
- Subsequent runs will use the cached model
- The script automatically detects and uses
uvif available, otherwise falls back topip - Virtual environment support allows isolation from system Python packages
- Arguments can be specified in any order (e.g.,
scripts/quickstart.sh --port 8080 start --venv /path/to/venv)
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供完整的 vLLM 部署工作流,涵盖硬件检测、安装、服务启动、API 测试等关键环节
- 支持多种硬件后端(NVIDIA CUDA、AMD ROCm、Google TPU、CPU)和虚拟环境隔离
- 解决了用户在本地或服务器上快速部署 LLM 服务的实际痛点
亮点
- description 清晰明确,准确描述了 Skill 的核心功能和使用场景
- 触发词覆盖全面,支持默认部署、自定义选项和分步执行等多种使用方式
亮点
- 文档结构完整且逻辑清晰,包含 prerequisites、usage、configuration、troubleshooting 等必要章节
- 提供了丰富的代码示例和详细的参数说明,便于用户理解和操作
亮点
- 工具来源明确(vLLM),参数配置合理且灵活
- 覆盖了主要异常情况的处理方案,提供了详细的 troubleshooting 指南
- 支持日志记录和状态检查,便于问题排查和服务管理
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- localhost
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。