Fluiddocs

Lambda

Connect a Lambda Cloud account so Fluid can run jobs on Lambda's GPU instances.

Warnings and limits

  • Lambda has no spot instances and gives no notice: a job there is suspended only when you suspend it, or before a limit you set.
  • Lambda capacity changes by the minute. After a launch finds no capacity for a type in a region, Fluid waits before it tries that type there again: 60 s, doubling up to 30 minutes.
  • Fluid launches at most one Lambda instance every 12 s per account, and makes at most one API call a second.
  • Quotes leave out storage and data transfer.

Connect

Create an API key in Lambda's console, then add it on Fluid's console Connect page, or from the CLI:

export LAMBDA_API_KEY=...   # in your own terminal, not in a shared log
fluid connect lambda --from-cli

--from-cli reads the key from LAMBDA_API_KEY without printing it. You can also put LAMBDA_API_KEY=... in a file and run fluid connect lambda --file lambda.env. The key is sealed on Fluid's side and never shown again.

Instances

Fluid offers the instance types Lambda lists for your account, with their GPUs, prices and the regions that have capacity at that moment. Prices are refreshed every 5 minutes.

An exact spec names one of those types (--on lambda:gpu_1x_a10). A type the listing does not have, or GPUs no listed type has, is refused with what the listing has. An instance has the disk of its type, so a spec that names disk_gb= is refused too.

SSH keys

Lambda instances start with an SSH key. Fluid adds a key of its own to your Lambda account the first time it launches, and launches only with keys whose private half it holds. If your account already has a key under Fluid's name that Fluid did not make (for example one an earlier Fluid host registered), Fluid leaves that key as it is, never uses or replaces it, and registers a key of its own under a name only that key holds. A warning in the job's events names both keys. You can delete the old key in Lambda's console.

Stopping

When a job ends or you stop it, Fluid terminates the instance and waits up to 90 s for Lambda to confirm it.

On this page