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.0.tar.gz (297.9 kB view details)

Uploaded Source

Built Distribution

skypilot-0.2.0-py3-none-any.whl (351.3 kB view details)

Uploaded Python 3

File details

Details for the file skypilot-0.2.0.tar.gz.

File metadata

  • Download URL: skypilot-0.2.0.tar.gz
  • Upload date:
  • Size: 297.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.11

File hashes

Hashes for skypilot-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e2a0589636ee6b44c953b3061521e678d20d024d9e6c1c5ed1da0242b8777f15
MD5 1dfc14451962ac9675c2014d54e9352e
BLAKE2b-256 7e4a8f6a63c20772aba4605287cff381c6d24c2c0c1887d6616a65beb30cf3e1

See more details on using hashes here.

File details

Details for the file skypilot-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: skypilot-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 351.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.11

File hashes

Hashes for skypilot-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d88a4cab0e2f4737b98c0910b97b64775300fa79b2be83877b062ee2e5e9169
MD5 598c72bc9a2a3c0cc30e6b8f0b21754e
BLAKE2b-256 6dc257eb11e5130715924dd86030ee728a2db128d55bc8be76f4ff9be9ce3e81

See more details on using hashes here.

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