Quickstart

In this quickstart guide, we'll first get you set up with Lepton AI's platform and SDK.

After this quickstart, you will have Lepton fully running on your local dev environment, and you can start to train a new job, deploy LLM models, build custom models or run a development pod depending on your needs.

Installation and setup

Local SDK

Lepton's local SDK is a Python package that you can install with pip. It contains Python abstractions for you to build models, and also commandline utils to interact with the cloud platform. To install, do:

pip install -U leptonai

After the installation, you can verify that the lep command is available:

lep --help
lep command

Lepton AI workspace

Now you can create a workspace by going to the Lepton AI dashboard and follow the instructions there. Once you have a workspace, you can interact with it using the web dashboard, or via the local commandline interface via the CLI we just installed. In this section, we'll go through the steps with the CLI:

  1. Find your workspace credential

First of all, you need to find your workspace credential. You can find the workspace credential in the Settings-Tokens page. There are two types of tokens: workspace and user. You can use either of them to log in, but we recommend using the user token for better identification of who operated what in the workspace.

Workspace credential
  1. Log in to your workspace

Just copy the CLI login command and run it in your terminal:

lep login -c <your_workspace_credential>

After running the command, you'll see a message like this which indicates that you have successfully logged in:

lep login

What's next?

Now you can start to explore and unlock the full potential of Lepton AI.

If you have any questions, feel free to reach out to us at the email address info@lepton.ai, or our Twitter handle @leptonai. We're happy to help!

Lepton AI

© 2024