Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
vllm【部署与运维】Route vLLM tasks across offline inference, OpenAI-compatible serving, structured/tool/reasoning, multimodal/LoRA/pooling, and deployment/performance workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when the user asks how to install, use, serve, configure, troubleshoot, or optimize vLLM, the high-throughput inference and serving engine for LLMs. This root skill is a router; open the focused sub-skill before writing substantial commands or code.
references/repo-provenance.md to check whether this skill is aligned with the current vLLM checkout.references/troubleshooting.md for cross-cutting install/import/backend triage before routing to workflow-specific troubleshooting.| User asks for | Open |
|---|---|
Python LLM, SamplingParams, generate, chat, encode, embed, classify, score, output extraction, or offline smoke scripts | sub-skills/offline-inference/SKILL.md |
vllm serve, OpenAI clients, /v1 endpoints, chat, complete, run-batch, model discovery, server/client errors | sub-skills/openai-serving/SKILL.md |
| Structured outputs, JSON schema, regex/grammar constraints, tool calling, reasoning parsers, chat templates, streaming tool-call deltas | sub-skills/structured-tool-reasoning/SKILL.md |
| Multimodal image/audio/video payloads, media allowlists, LoRA/adapters, embeddings, rerank, score, pooling outputs | sub-skills/modalities-adapters-pooling/SKILL.md |
| Memory planning, parallelism, quantization, KV cache/offload, disaggregated serving, Ray/torchrun, metrics, profiling, benchmarks | sub-skills/deployment-performance/SKILL.md |
python -c "import vllm; print(vllm.__version__)" verifies importability, but it does not prove a model/backend can run.vllm --help, vllm serve --help, and vllm serve --help=all expose current command groups and flags.vllm serve [model_tag] [options] launches an OpenAI-compatible server; if omitted, current CLI help documents a default small Qwen model, but production commands should pass an explicit model.LLM(model=...) plus SamplingParams(max_tokens=...) is the main in-process path; chat models usually need LLM.chat or an explicit chat template rather than raw generate prompts.scripts/vllm_skill_doctor.py: checks Python import, distribution metadata, CLI availability, and selected backend facts without downloading models or starting a server.Sub-skills also include focused helpers for offline smoke planning, serve command construction, OpenAI client smoke checks, structured request validation, multimodal payload validation, environment summaries, and memory command planning.
trust_remote_code, read arbitrary local media, execute tool calls, or run distributed/benchmark commands unless the user explicitly approves the required resources and side effects.--allowed-local-media-path; for remote media, use explicit --allowed-media-domain entries.This skill was generated from vLLM source, docs, examples, tests, package metadata, and a CPU/precompiled package-inspection environment. Live GPU model serving, model downloads, multi-node runs, and native benchmark execution remain user-environment gated and should be verified with the user’s actual hardware and model.