AGENT SKILL

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

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, use references/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, use references/configuration.md.
  • For import errors, config validation, blocked serve run, idempotent deploy confusion, remote URI failures, HTTP/gRPC symptoms, and status/config debugging, use references/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, or ray status, route to ../cluster-ops/SKILL.md.
  • For training, tuning, or model development workflows before serving, route to ../train-tune/SKILL.md.

Default workflow

  1. Confirm the user is working on Serve rather than generic Ray cluster operations.
  2. For new apps, write a Python module with @serve.deployment, bind an application object, then test importability before starting Serve.
  3. For local development, use serve run module:app --app-dir . or a small guarded script; remember the CLI blocks by default.
  4. For production-style deployment, generate or maintain a Serve YAML and use serve deploy config.yaml against an already running Ray cluster.
  5. After deploys or updates, inspect serve status and serve config; do not assume serve deploy blocks until replicas are healthy.
  6. 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351