serve-deployments
Develop, run, deploy, configure, update, lint, and troubleshoot Ray Serve applications and deployments.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- serve-deployments
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Develop, run, deploy, configure, update, lint, and troubleshoot Ray Serve applications and deployments.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-reference.md8.0 KB
- 参考文档references/configuration.md10.3 KB
- 参考文档references/troubleshooting.md8.9 KB
- 脚本scripts/serve_config_lint.py13.0 KB
- 脚本scripts/serve_smoke_app.py4.4 KB
03 SKILL.md 正文
Ray Serve Deployments
Use this sub-skill when the task mentions ray.serve, @serve.deployment, serve.run, Deployment.bind, Serve YAML, serve run, serve deploy, serve build, serve status, serve config, HTTP/gRPC endpoints, autoscaling_config, runtime_env, user_config, or in-place Serve updates.
Ray Serve is Ray's Python serving layer for online inference APIs and general Python web services. Default to the narrow install extra ray[serve]; avoid recommending ray[all] unless the user explicitly needs many unrelated Ray libraries.
Route the task
- For Python application code, deployment decorators, handles, batching, FastAPI ingress, or local
serve.run, usereferences/api-reference.md. - For Serve YAML,
serve build,serve deploy,serve run <config.yaml>,runtime_env, HTTP/gRPC/proxy/logging fields, or in-place update planning, usereferences/configuration.md. - For import errors, config validation, blocked
serve run, idempotent deploy confusion, remote URI failures, HTTP/gRPC symptoms, and status/config debugging, usereferences/troubleshooting.md. - For config linting without contacting a Ray cluster, run
scripts/serve_config_lint.py. - For a tiny self-contained deployment pattern or optional local smoke check, use
scripts/serve_smoke_app.py. - For generic Ray cluster lifecycle, dashboard, node resources,
ray start, orray status, route to../cluster-ops/SKILL.md. - For training, tuning, or model development workflows before serving, route to
../train-tune/SKILL.md.
Default workflow
- Confirm the user is working on Serve rather than generic Ray cluster operations.
- For new apps, write a Python module with
@serve.deployment, bind an application object, then test importability before starting Serve. - For local development, use
serve run module:app --app-dir .or a small guarded script; remember the CLI blocks by default. - For production-style deployment, generate or maintain a Serve YAML and use
serve deploy config.yamlagainst an already running Ray cluster. - After deploys or updates, inspect
serve statusandserve config; do not assumeserve deployblocks until replicas are healthy. - Use lightweight in-place updates only for deployment options that Serve can apply without replica restarts; plan code updates separately.
Bundled helpers
python scripts/serve_config_lint.py serve_config.yaml
python scripts/serve_smoke_app.py --validate-only
The helpers are safe by default: the linter only parses YAML, and the smoke app only validates imports/configuration unless --run-local is explicitly passed.
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).