skypilot
Use SkyPilot to run, manage, and scale AI workloads across clouds, Kubernetes, Slurm, SSH node pools, managed jobs, SkyServe services, storage mounts, and the Python SDK.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- skypilot
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use SkyPilot to run, manage, and scale AI workloads across clouds, Kubernetes, Slurm, SSH node pools, managed jobs, SkyServe services, storage mounts, and the Python SDK.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/evidence-map.md4.1 KB
- 参考文档references/repo-provenance.md2.4 KB
- 参考文档references/repo-routing-metadata.json501 B
- 参考文档references/troubleshooting.md5.0 KB
- 脚本scripts/check_skypilot_env.py3.8 KB
- 脚本scripts/inspect_cli_groups.py3.4 KB
03 SKILL.md 正文
SkyPilot
SkyPilot is a unified interface for launching, managing, and scaling AI workloads across cloud VMs, Kubernetes, Slurm, SSH node pools, and managed service deployments. Use this repo skill when a user asks for SkyPilot task YAMLs, sky CLI commands, Python SDK flows, managed jobs, SkyServe, storage mounts, cloud/resource selection, or SkyPilot source-code changes.
Bootstrap
-
Confirm SkyPilot is installed and the CLI is reachable:
python scripts/check_skypilot_env.py --check-cli -
For live SkyPilot use, check API server connectivity:
sky api info -
For cloud/provider readiness, check credentials only when the user intends to launch or query resources:
sky check -o json -
Read
references/troubleshooting.mdif install, import, API server, credentials, optional extras, or command-output issues appear.
Route By Task
| User goal | Read |
|---|---|
Write, review, convert, or validate SkyPilot task YAMLs, service YAML task fields, resources, mounts, envs, secrets, storage, or sky.Task/sky.Resources config. |
sub-skills/task-yaml/SKILL.md |
Launch/reuse interactive clusters, run sky exec, inspect status/logs/queues, manage autostop, stop/start/down, or plan safe cluster CLI commands. |
sub-skills/cluster-operations/SKILL.md |
Submit long-running training or batch workloads with sky jobs, managed spot recovery, job logs/queue/cancel, job groups, or job pools. |
sub-skills/managed-jobs/SKILL.md |
| Deploy or debug SkyServe services, service YAMLs, readiness probes, replicas, autoscaling, load balancing, updates, logs, or LLM serving recipes. | sub-skills/serving/SKILL.md |
Configure clouds, Kubernetes, Slurm, SSH node pools, GPU/resource selection, sky check, sky gpus, workspaces, object storage, file mounts, or volumes. |
sub-skills/infrastructure-storage/SKILL.md |
Use the Python SDK, async SDK, request IDs, sky.get(), API server lifecycle, remote server login, dashboard/API deployment, or compatibility checks. |
sub-skills/sdk-api-server/SKILL.md |
Modify the SkyPilot repository, choose focused tests, run formatting/linting, regenerate protobufs, rebuild dashboard assets, or prepare PR Tested: notes. |
sub-skills/repo-development/SKILL.md |
Core Decision Rules
- Prefer SkyPilot's optimizer: specify resources and constraints, then let SkyPilot choose cloud/region/zone unless the user explicitly pins infrastructure.
- Use
sky launch --dryrunbefore expensive interactive launches; use parser-only validators for YAML checks when cloud access is unnecessary. - Use
sky jobs launchfor unattended long-running work that should survive spot preemptions and capacity failures. - Use SkyServe for service endpoints and replica management; test the underlying HTTP server with a simpler task or cluster workflow when startup is uncertain.
- Use structured output (
-o json) for automation-friendlystatus,queue,jobs queue,check, and related inspection commands when supported. - Keep secrets in
secrets,--secret, or secret files; do not embed credentials in shared YAML, prompts, logs, or scripts. - Treat smoke tests, live launches, serving deployments, pool creation, and provider checks as resource/credential-bound unless the user explicitly authorizes them.
Bundled Helpers
scripts/check_skypilot_env.pyverifies package importability, version, optional CLI help, and common missing-install symptoms without launching resources.scripts/inspect_cli_groups.pyprints safe help summaries for selectedskycommand groups without running launches, jobs, or services.- Sub-skill scripts provide parser-only validators, command builders, SDK inspectors, resource checklists, and repo-maintenance sanity checks.
Evidence And Staleness
- Read
references/repo-provenance.mdbefore deciding whether this skill matches a current SkyPilot checkout. - Read
references/evidence-map.mdto understand the source areas distilled into this self-contained skill. - If the current checkout commit, major public APIs, CLI flags, YAML schema, docs, examples, or dependencies changed, refresh this skill before relying on detailed guidance.
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).