openai-serving
Use for vLLM OpenAI-compatible serving workflows: vllm serve/chat/complete/run-batch, OpenAI clients, server lifecycle, API request validation, batch JSONL, and client/server troubleshooting.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- openai-serving
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use for vLLM OpenAI-compatible serving workflows: vllm serve/chat/complete/run-batch, OpenAI clients, server lifecycle, API request validation, batch JSONL, and client/server troubleshooting.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/cli-reference.md5.8 KB
- 参考文档references/openai-api-workflows.md6.8 KB
- 参考文档references/troubleshooting.md5.8 KB
- 脚本scripts/openai_client_smoke.py4.8 KB
- 脚本scripts/serve_command_builder.py3.1 KB
03 SKILL.md 正文
openai-serving
Use this sub-skill when the task is about running or consuming vLLM as an OpenAI-compatible HTTP server rather than using the offline Python LLM API.
Route here
- Build or explain
vllm servecommands, including host/port, API key, CORS, frontend, logging, model identity, dtype, tensor parallelism, memory, and max context flags. - Use
vllm chat,vllm complete, OpenAI Python clients,curl, or batch JSONL against/v1endpoints. - Diagnose client errors such as connection refused, wrong
/v1base URL, auth mismatch, 404 model mismatch, request-schema validation, streaming expectations, and port conflicts. - Validate server readiness with
/health, discover model names with/v1/models, inspect logs, and separate server lifecycle issues from request payload issues.
Route elsewhere
- Offline in-process inference with
vllm.LLM,SamplingParams, orLLM.chat: use../offline-inference/SKILL.md. - Deep structured outputs, tool calling, tool parsers, or reasoning schemas: use
../structured-tool-reasoning/SKILL.md. - Multimodal, embeddings, pooling, rerank, score, LoRA, and adapter-specific endpoint behavior: use
../modalities-adapters-pooling/SKILL.md. - GPU capacity planning, throughput tuning, multi-node scaling, and deployment architectures: use
../deployment-performance/SKILL.md.
References
- Start with
references/cli-reference.mdforserve,chat,complete, andrun-batchcommand patterns. - Use
references/openai-api-workflows.mdfor OpenAI-compatible client payloads, endpoints, model naming, and validation checks. - Use
references/troubleshooting.mdfor symptoms, likely causes, commands to run, and routing for hardware/performance failures.
Bundled helpers
scripts/serve_command_builder.pyprints a safevllm servecommand from common frontend and engine options.scripts/openai_client_smoke.pychecks/v1/modelsand can issue a minimal chat or completion request when a user-provided server is running.
Both scripts are self-contained and require only normal Python plus the openai package for the smoke client. They do not start model downloads or a server unless the user runs the printed command.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).