SkyPilot: An intercloud broker for the clouds
Project description
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:
- Find the lowest priced VM instance type across different clouds
- Provision the VM
- Copy the local contents of
workdir
to the VM - Run the task's
setup
commands to prepare the VM for running the task - Run the task's
run
commands
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.
- For bug reports and issues, please open an issue.
- For feature requests or general questions, please join us on 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file skypilot-0.2.1rc1.tar.gz
.
File metadata
- Download URL: skypilot-0.2.1rc1.tar.gz
- Upload date:
- Size: 303.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e9fdfd8a82fe47d24cf35f25ba8d794f09a81951a7413df403ec1ec15e82ccc |
|
MD5 | dc255877d71fee821cee85f95c3386bb |
|
BLAKE2b-256 | c706278adb2f2f9a39d077e8bb144aace7dd8b7283cd2695157f9a31ce786aaf |
File details
Details for the file skypilot-0.2.1rc1-py3-none-any.whl
.
File metadata
- Download URL: skypilot-0.2.1rc1-py3-none-any.whl
- Upload date:
- Size: 351.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc200050369a16850de02d13b1aead4ef0fc12eeeba598235d0511c42c3396d0 |
|
MD5 | 6b075a79b971df981dc3c88820673075 |
|
BLAKE2b-256 | fbca07d4c9b3ff00caee25015636cd39328b92373034a12072173a9c3dfcf768 |