deployment-performance
Deployment topology, parallelism, memory planning, quantization, KV cache/offloading, disaggregated serving, distributed execution, observability, profiling, environment collection, backend/hardware selection, and performance troubleshooting for vLLM.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- deployment-performance
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Deployment topology, parallelism, memory planning, quantization, KV cache/offloading, disaggregated serving, distributed execution, observability, profiling, environment collection, backend/hardware selection, and performance troubleshooting for vLLM.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/configuration.md9.6 KB
- 参考文档references/deployment.md9.6 KB
- 参考文档references/performance-and-observability.md7.7 KB
- 参考文档references/troubleshooting.md8.9 KB
- 脚本scripts/collect_env_summary.py6.7 KB
- 脚本scripts/memory_command_planner.py8.1 KB
03 SKILL.md 正文
Deployment Performance
Use this sub-skill when a task asks how to deploy, scale, tune, observe, or troubleshoot vLLM performance. It owns operational configuration and diagnosis, not request payload syntax.
Route Here For
- Choosing
vllm serveengine flags for GPU memory, context length, batch size, tensor/data/pipeline/expert/context parallelism, Ray, multiprocessing, or torchrun-style external launchers. - Planning quantization, dtype, CPU weight offload, KV cache sizing, prefix caching, KV offloading, or disaggregated prefill/decode topologies.
- Setting up production metrics, OpenTelemetry tracing, Prometheus/Grafana scraping, profiler captures, benchmark interpretation, or environment summaries.
- Debugging OOM, unsupported dtype/quantization, CUDA/ROCm/CPU mismatch, NCCL/GLOO/Ray/network failures, bad parallel sizes, missing
/metrics, or misleading throughput results.
Start With These References
- Configuration: engine/server flags, memory controls, quantization, KV cache, prefix cache, and profiling knobs.
- Deployment: single-node, multi-node, Ray, multiprocessing, data/expert/context parallel, disaggregated prefill, and hardware/backend selection.
- Performance and Observability: metrics, OpenTelemetry, profiling, benchmarks, and runbook signals.
- Troubleshooting: symptom-to-action checks for memory, distributed launch, hardware, metrics, and benchmark issues.
Bundled Tools
scripts/collect_env_summary.py: safe environment and package summary for support tickets; does not download models or start servers.scripts/memory_command_planner.py: prints a conservativevllm servecommand skeleton and checklist from model length, GPU count, TP size, memory utilization, offload, and KV-cache inputs.
Cross-Skill Routing
- For offline
LLM.generatecode and sampling/request examples, route to the offline-inference sub-skill. - For OpenAI-compatible API request bodies, chat/completions syntax, or client integration, route to the openai-serving sub-skill.
- For structured outputs, tool calling, parser behavior, or guided decoding interactions, route to structured-tool-reasoning and cross-link back here only for throughput/profiling impact.
- For LoRA, multimodal, pooling, or adapter-specific memory details, route to modalities-adapters-pooling and cross-link back here for GPU/KV/cache capacity planning.
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).