What is SkyPilot?
SkyPilot is an open-source framework that simplifies running AI workloads on any cloud. It automatically finds the best price and availability across multiple cloud providers, provisions resources, and manages your jobs - all from a single unified interface.Using Shadeform with SkyPilot
SkyPilot integrates with Shadeform to give you access to the best GPU prices across Shadeform’s marketplace of cloud providers. When you specifyinfra: shadeform in your SkyPilot task, SkyPilot will automatically search across all available providers in Shadeform to find the optimal GPU for your workload.
Setup
-
Install SkyPilot
For more information on installing SkyPilot, see the SkyPilot documentation.
- Get your Shadeform API Key Sign up at shadeform.ai and obtain an API key from your account settings page.
-
Configure your credentials
In order to use Shadeform with SkyPilot you need to place your API key in a file called
api_keyin the~/.shadeformdirectory on your machine. First, create the directory and then create the file with your API key. -
Verify the setup
Running Jobs
SkyPilot provides excellent documentation on how to get started with running jobs. See their quickstart guide and examples page. SkyPilot works by writing a YAML file that describes your job and then launching it with thesky launch command. A simple job that just prints “Hello, World!” would look like this:
job.yaml you can launch it with:
Defining a Shadeform Resource
You can use Shadeform GPUs in three different ways in a SkyPilot YAML file by defining theinfra, accelerators, or instance_type fields.
To know what Shadeform GPUs are available, you can use the SkyPilot Catalog for Shadeform here.
In the vms.csv file, you can see the available GPU types.
InstanceType maps to the instance_type field in the SkyPilot YAML file.
Accelerators maps to the accelerators field.
AcceleratorCount shows how many GPUs that type has.
Find the cheapest available across all Shadeform providers
Find the cheapest available for a specific GPU type
Note:infrais optional if you defineaccelerators. But, when you have other SkyPilot integrations installed and you leave outinfra, SkyPilot may pick your other integration to use if it has a cheaper accelerator of the same type available.