Modal

Serverless containers for Python functions, model servers and sandboxes on CPUs or GPUs.

Provider
default
Category
Compute
Also known as
Modal Sandboxes
Properties · 3 set by this component
propertytypevaluesrequiredkind defaultthis component
acceleratorenumnone | gpu | asicnononeinherited
acceleratorModel · advancedenumnvidia-h100 | nvidia-h200 | nvidia-b200 | nvidia-l4 | nvidia-a100 | amd-mi300x | aws-trainium | aws-inferentia | google-tpu | intel-gaudi | groq-lpu | cerebras-wseno—inherited
embeddingSyncMinutes · advancedinteger—no—inherited
inputsenumlive | historical | bothnolive▸ live
instancesinteger—no—inherited
managedboolean—nofalse▸ true
minContainers · component propertyinteger—no0inherited
sandbox · component propertyboolean—nofalseinherited
scaledownWindowSeconds · component propertyinteger—no60inherited
snapshotToObjectStore · advancedboolean—nofalseinherited
timeoutSeconds · component propertyinteger—no300inherited
trainingenumbatch | onlinenobatch▸ batch
Rules that apply · 1

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

stateful-node-without-zone-redundancy

A stateful compute node pinned to exactly one availability zone disappears with that zone, and its state goes with it. Nodes inside a cell are exempt, because there the cell is deliberately single-zone and redundancy comes from the other cells.

  • — all of these hold:
  • — the node's `stateless` is false
  • — the node sits inside exactly 1 availability-zone group
  • — this does not hold:
  • — the node sits inside at least one cell group
Use it in a design
nodes:
  - { id: "modal", component: "modal" }
Other ML inference products · 37
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# Modal: serverless platform that runs Python functions and model servers in containers on CPUs or GPUs, billed per
# second. Per "Cold start performance", containers scale to zero (min_containers 0) and shut down after a 60-second
# scaledown_window; per the App.function reference a call times out after 300 seconds. Modal Sandboxes (secure
# containers for untrusted or agent-written code, 5-minute default lifetime) are this component with sandbox: true.
schemaVersion: "1"
type: "component"
id: "modal"
kind: "ml-inference"
provider: "default"
docs: "https://modal.com/docs/guide/cold-start"
aliases: ["Modal Sandboxes"]
defaults:
  training: "batch"
  inputs: "live"
  managed: true
properties:
  minContainers:
    type: "integer"
    default: 0
  scaledownWindowSeconds:
    type: "integer"
    default: 60
  timeoutSeconds:
    type: "integer"
    default: 300
  sandbox:
    type: "boolean"
    default: false

The same page as markdown, for an agent: /catalogue/components/modal.md