lep run

Runs a photon. If one has logged in to the Lepton AI cloud via lep login, the photon will be run on the cloud. Otherwise, or if --local is specified, the photon will be run locally.

Refer to the documentation for a more detailed description on the choices among --name, --model, --file and --id.

Usage

lep run [OPTIONS]

Options

  • -n, --name TEXT : Name of the photon to run.
  • -m, --model TEXT : Model spec of the photon. If model is specified, we will rebuild the photon before running.
  • -i, --id TEXT : ID of the photon (only required for remote).
  • -dn, --deployment-name TEXT : Optional name for the deployment. If not specified, we will attempt to use the name (if specified) or id as the base name, and find the first non-conflict name by appending a number.
  • --rerun : If specified, shutdown the deployment of the same deployment name and rerun it. Note that this may cause downtime of the photon if it is for production use, so use with caution. In a production environment, you should do photon create, push, and lep deployment update instead.
  • --help : Show this message and exit.
Lepton AI

© 2024