Skip to main content

SkyPilot: An intercloud broker for the clouds

Project description

SkyPilot

pytest Documentation Status

SkyPilot is a framework for easily running machine learning workloads[1] on any cloud.

Use the clouds easily and cost effectively, without needing cloud infra expertise.

Ease of use

  • Run existing projects on the cloud with zero code changes
  • Use a unified interface to run on any cloud, without vendor lock-in (currently AWS, Azure, GCP)
  • Queue jobs on one or multiple clusters
  • Automatic failover to find scarce resources (GPUs) across regions and clouds
  • Use datasets on the cloud like you would on a local file system

Cost saving

  • Run jobs on spot instances with automatic recovery from preemptions
  • Hands-free cluster management: automatically stopping idle clusters
  • One-click use of TPUs, for high-performance, cost-effective training
  • Automatically benchmark and find the cheapest hardware for your job

Getting Started

You can find our documentation here.

Example SkyPilot Task

A SkyPilot task specifies: resource requirements, data to be synced, setup commands, and the task commands.

Once written in this unified interface (YAML or Python API), the task can be launched on any available cloud.

Example:

# my_task.yaml
resources:
  # 1x NVIDIA V100 GPU
  accelerators: V100:1

# Number of VMs to launch in the cluster
num_nodes: 1

# Working directory (optional) containing the project codebase.
# Its contents are synced to ~/sky_workdir/ on the cluster.
workdir: ~/torch_examples

# Commands to be run before executing the job
# Typical use: pip install -r requirements.txt, git clone, etc.
setup: |
  pip install torch torchvision

# Commands to run as a job
# Typical use: make use of resources, such as running training.
run: |
  cd mnist
  python main.py --epochs 1

Prepare the workdir by cloning locally:

git clone https://github.com/pytorch/examples.git ~/torch_examples

Launch with sky launch:

sky launch my_task.yaml

SkyPilot will perform multiple actions for you:

  1. Find the lowest priced VM instance type across different clouds
  2. Provision the VM
  3. Copy the local contents of workdir to the VM
  4. Run the task's setup commands to prepare the VM for running the task
  5. Run the task's run commands

SkyPilot Demo

See examples for more YAMLs that run popular ML frameworks on the cloud with one command (PyTorch/Distributed PyTorch, TensorFlow/Distributed TensorFlow, HuggingFace, JAX, Flax, Docker).

Besides YAML, SkyPilot offers a corresponding Python API for programmatic use.

Refer to Quickstart for more on how to get started with SkyPilot.

Issues, feature requests and questions

We are excited to hear your feedback! SkyPilot has two channels for engaging with the community - GitHub Issues and GitHub Discussions.

Contributing

We welcome and value all contributions to the project! Please refer to the contribution guide for more on how to get involved.

[1]: While SkyPilot is currently targeted at machine learning workloads, it supports and has been used for other general workloads. We're excited to hear about your use case and how we can better support your requirements - please join us in this discussion!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skypilot-0.2.1rc1.tar.gz (303.1 kB view hashes)

Uploaded Source

Built Distribution

skypilot-0.2.1rc1-py3-none-any.whl (351.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page