Persistent VMs are now available.Learn more

Beam Quickstart

Get started with Beam using the CLI and SDK. Configure your account, develop in a remote runtime, and deploy an API.

CLI

  1. Install

    Download Beam

    curl https://raw.githubusercontent.com/slai-labs/get-beam/main/get-beam.sh -sSfL | sh
  2. Configure

    Add API keys

    beam configure
  3. Develop

    Connect a remote runtime

    beam start myapp.py
  4. Deploy

    Instant REST API

    beam deploy myapp.py

SDK

  1. Start

    Remote Cloud Runtime

    python
    app = beam.App(
      name="myapp",
      cpu=4,
      mem="32Gi",
      gpu="A10G",
      python_version="python3.8",
      python_packages=[
        "sklearn","numpy","xgboost","pandas"
      ],
    )
  2. Deploy

    Instant REST API

    python
    app.Trigger.RestAPI(
      inputs={"text": beam.Types.String()},
      outputs={"prediction": beam.Types.String()},
      handler="inference.py:predict_sentiment",
    )
  3. Connect

    Access data sources

    python
    app.Mount.PersistentVolume(
      name="myvolume", app_path="./models"
    )