Beam Quickstart
Get started with Beam using the CLI and SDK. Configure your account, develop in a remote runtime, and deploy an API.
CLI
Install
Download Beam
curl https://raw.githubusercontent.com/slai-labs/get-beam/main/get-beam.sh -sSfL | shConfigure
Add API keys
beam configureDevelop
Connect a remote runtime
beam start myapp.pyDeploy
Instant REST API
beam deploy myapp.py
SDK
Start
Remote Cloud Runtime
pythonapp = beam.App( name="myapp", cpu=4, mem="32Gi", gpu="A10G", python_version="python3.8", python_packages=[ "sklearn","numpy","xgboost","pandas" ], )Deploy
Instant REST API
pythonapp.Trigger.RestAPI( inputs={"text": beam.Types.String()}, outputs={"prediction": beam.Types.String()}, handler="inference.py:predict_sentiment", )Connect
Access data sources
pythonapp.Mount.PersistentVolume( name="myvolume", app_path="./models" )