Size a container
cpu and memory are reservations the container always keeps. A pair adds a
ceiling, so this function reserves 1 CPU and 2 GiB, is throttled at 4 CPUs, and
is killed above 8 GiB. Smaller reservations start faster. One CPU is one
physical core, two vCPUs on LazyCloud hosts. Volumes and cloud buckets add to
the memory reservation, as memory for mounts
explains.
disk is scratch space, 100 GiB by default, gone when the container stops.
Files that must last go in a volume.
Request a GPU
GpuType.T4, A10G, L4, L40S, A100_40, RTXPro6000 and
H100. A list is a preference order: gpu=[GpuType.L40S, GpuType.A10G, GpuType.Any] takes the first model with free capacity, and GpuType.Any at
the end takes whatever is left. Each model bills at its own rate, so a
fallback can cost more than the first choice.
gpu_count sets GPUs per container, and your plan sets
which models you can use.
The platform fleet runs T4, A10G, L4 and L40S; the
pricing page lists the others as coming soon.
They run now on your own machines or a connected AWS
account. On the fleet, a deployment that names only coming-soon models is
refused.
Preemptible capacity
Workloads run on cheaper preemptible capacity by default, which the provider can reclaim without notice. A preempted function call retries, and a preempted endpoint container is replaced, so functions that are safe to repeat lose little.preemptible=False keeps a workload on capacity that isn’t reclaimed,
at a CPU and memory premium.
Placement
A workload runs where its workspace lives. Two options narrow that:machine="gpu-1"pins the workload to a machine you joined. It runs there or fails.regionandavailability_zonepin placement within the workspace’s cloud. Regions are"us-east","us-west","eu-central","eu-north", and"ap-southeast". Pinning costs more, needs a plan that allows it, and can’t combine withmachine. Only"us-east"and"us-west"have managed capacity today, so a workload pinned elsewhere waits.
Defaults
Scheduled functions default to
keep_warm=0. Every workload defaults to
disk="100Gi".
A devbox takes the pod defaults except where
its page says otherwise.
