Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How code runs

How Zerve runs your code, block by block, on the compute you choose.

In Zerve, each block in a notebook runs on its own, on compute that Zerve provides for it. You don't manage servers or clusters: you choose what kind of compute a block needs, and Zerve takes care of the rest.

Block runs

Every time a block runs, Zerve starts a block run: it packages the block's code, sends it to the compute you've chosen, runs it, and saves the results. This happens whether you run the block yourself or an agent runs it for you.

Because each block runs separately, one notebook can mix different kinds of compute. For example, a notebook might pull data on fast serverless compute, clean it on a larger machine, and train a model on a GPU.

Compute type
Typical use

Lambda (AWS Lambda)

Most blocks: quick, lightweight work

Fargate (AWS Fargate)

Longer runs, or more memory and CPU, up to 120 GB

GPU (AWS SageMaker)

Model training and other GPU work

See Compute types for the full list and their limits.

Results are saved as you go

When a block finishes, its outputs and variables are saved to storage. That's how blocks share data: a later block reads the saved results of the blocks before it, rather than recomputing them.

It also means:

  • You can rerun one block without rerunning everything before it.

  • Agents can inspect intermediate results as they work, so they can check each step.

  • You can check any step afterwards, since every block's results are kept.

Running many copies at once

To run the same block many times in parallel, for example once for each of 200 tickers, use Fleet.

Limits

Each compute type has its own limits on memory and run time, and every block run is limited to 12 hours. Runs over your organization's concurrency limit wait in a queue rather than failing. See Limits and concurrency.

Stopping a run

You can stop a block run that's running or waiting in the queue. Lambda runs stop immediately; other compute types stop shortly after. If a run hasn't actually started yet on some compute types, it can't be stopped until it does, and Zerve tells you so.

Your data stays separate

When a block runs, it gets access only to its own notebook's stored data, not to any other notebook's. See Security overview.

What compute costs

Compute uses credits, charged by the second based on the compute type. See How credits are used.

Where compute runs

On Zerve's cloud, compute runs in Zerve's AWS account. If your organization runs Zerve in its own cloud, compute runs there instead, and can also include Kubernetes and Google Cloud. See Deployment options.

Last updated

Was this helpful?