Installation

Defining a runtime

Your Beam runtime is defined in Python. Running the code below will create an environment with the compute defined above, build the image, and hot reload as you work.

beam.App(
	name="testapp",
	cpu=8,
	memory="4Gi",
	gpu=0,
	python_version="python3.8",
	python_packages=["numpy"],
)

app() reference

FieldTypeDescription
namestringThe name for your app
cpuint, 0-16The number of CPU cores to provide to your runtime
memorystringThe amount of memory to provide to your runtime
gpuintThe number of GPU cores to provide to your runtime
python_versionstringThe Python version to install in your runtime
python_packagesarrayThe Python libraries to install in your runtime. These can have versioned specified, e.g. tensorflow==0.2.10