Getting started
To begin using Runpod with SkyPilot, follow these steps:- Obtain Your API Key: Visit the Runpod Settings page to get your API key. If you haven’t created an account yet, you’ll need to do so before obtaining the key.
-
Install Runpod: Use the following command to install the latest version of Runpod:
-
Configure Runpod: Enter
runpod config
in your CLI and paste your API key when prompted. -
Install SkyPilot Runpod Cloud: Execute the following command to install the SkyPilot Runpod cloud:
-
Verify Your Setup: Run
sky check
to ensure your credentials are correctly set up and you’re ready to proceed.
Running a Project
After setting up your environment, you can seamlessly spin up a cluster in minutes:-
Create a New Project Directory: Run
mkdir hello-sky
to create a new directory for your project. -
Navigate to Your Project Directory: Change into your project directory with
cd hello-sky
. -
Create a Configuration File: Enter
cat > hello_sky.yaml
and input the following configuration details: -
Launch Your Project: With your configuration file created, launch your project on the cluster by running
sky launch -c mycluster hello_sky.yaml
. - Confirm Your GPU Type: You should see the available GPU options on Secure Cloud appear in your command line. Once you confirm your GPU type, your cluster will start spinning up.