Loading…

Modal
Serverless platform for running compute jobs — AI inference, batch processing, cron, and web endpoints. Pay only for what you use, with custom containers and GPU support.
- 52 posts summarised
- latest
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
From their blog
Latest articles
How Abundant designed efficient rollout architecture with Modal Sandboxes
Abundant builds reinforcement learning environments used by frontier labs to train and evaluate agent models. Each task runs as an RL rollout in a Modal Sandbox, requiring compute, Dockerfiles, and isolation, with over 75,000 rollouts created. By working with Modal’s team, Abundant designed an architecture that keeps idle compute costs low by placing a monitor inside the Sandbox that sends heartbeats every 30 seconds, using short-lived Modal Functions to start Sandboxes. Modal’s CPU and memory bursting feature allows Sandboxes to automatically scale up resources when needed, so teams can request average usage while accommodating peaks, reducing idle compute and simplifying allocation decisions. The rollout architecture took two weeks to implement and allowed Abundant to focus on creating verifiers that resist reward hacking, culminating in the Frontier RSI benchmark, which used over 1,300 hours of agent research time.
Building new research tools for Maya epigraphy on Modal
Artist and Stanford lecturer Miguel Novelo created (Φ ᆺ Φ) asya, an interactive installation for Modal’s Scaling Intelligence exhibition with Gray Area, where visitors draw in sand and their marks become glyphs in a growing collective codex. Novelo uses AI and cloud compute to build tools for reading Maya script, a writing system that lacks a Rosetta Stone and was nearly erased by Spanish colonizers. He works across several models, giving them context from scholarly books, his family’s knowledge, and undocumented local information, then checks each step against his sources. Using Modal, he built a pipeline that converts 2D glyph images into 3D models in a fraction of the time manual modeling required, enabling epigraphers to examine carvings more closely. The long-term goal is a specialized tool for researchers that analyzes the depth and style of carvings to reveal syntax that flat images miss.
Scaling Intelligence: A landmark commission and exhibition
Modal and Gray Area, a San Francisco nonprofit, opened Scaling Intelligence, an exhibition of 11 new artworks made with machine intelligence and cloud-scale compute. The artists were selected through a global open call and received engineering help and compute credits from Modal. Works include a robot arm that flips off passersby, a multilingual AI choir that learns from singing and has finite compute budgets, and a digital ecosystem where creatures are born, compete, and die around the clock. Other pieces feature a satellite searching for a nonexistent island, yeast fermentation translated into cat sounds, agents forming societies, a model turning drawings into Maya-style glyphs, and an AI that learns from visitors overnight. The exhibition challenges the narrative that AI exists only for automation and slop, showing it as a creative toolkit that artists use with intention and imagination.
Sandbox resourcing: burst, don't reserve
Modal Sandboxes are bursty workloads that spend most of their time using far less than peak CPU, making reservation-based pricing wasteful. The post argues that reserving capacity for each Sandbox’s peak would require machine capacity equal to the sum of all peaks, while bursting allows multiple Sandboxes to share capacity efficiently. Modal uses active-resource pricing where Sandboxes are billed for a default request when idle and pay for additional resources only when they burst. CPU can burst up to 16 cores above the request, and memory has no limit by default, though limits can be set for consistency or cost capping. Evictions are rare, with an SLO of under 0.0001% OOM rate per minute for Sandboxes under 8 GiB, and tools like exit snapshots and volumes help mitigate their impact.
Modal becomes a gVisor maintainer
Google is donating gVisor, including its name and trademarks, to the CNCF, moving the project to a maintainer-led governance model. Modal, alongside Ant Group and Tines, has committed to join gVisor’s maintainers, with OpenAI, Tencent, and NVIDIA continuing their contributions. Modal launches over 40 million gVisor containers daily for AI workloads, including GPU inference, multi-node training, and coding agents. gVisor adds a separate application kernel called the Sentry between the container and the host, implementing the Linux system call interface itself for stronger isolation without hardware virtualization. Modal has upstreamed patches for GPU support via nvproxy, RDMA via rdmaproxy, filesystem performance improvements, and checkpoint/restore capabilities.
How Snorkel runs realistic agent simulations with Modal
Snorkel, an AI data lab that creates datasets and benchmarks, evaluates agents across coding, infrastructure, and ML engineering tasks by running millions of simulations per month. To create realistic environments for valid comparisons, it uses Modal’s GPU and CPU sandboxes that reproduce complex, production-like systems such as multi-service workloads and GPU-enabled deep learning tasks, reflecting that an ML agent requires GPU access while an infrastructure agent needs a full Linux kernel. Previously, the team had to estimate CPU and memory needs, which often caused agent failures or wasted spending. By adopting Modal’s memory bursting, where sandboxes elastically expand resources at runtime based on actual usage, Snorkel decreased failed runs and saved approximately 20% on its total sandbox bill. For inference on open-weight models, Snorkel uses Modal’s shared and dedicated endpoints to quickly stand up, benchmark, and tear down models, peaking at tens of thousands of sandboxes running concurrently.
Launching a trillion-parameter model at Sakana AI
Sakana AI launched Sakana Namazu, a ~1 trillion parameter Mixture-of-Experts model optimized for Japanese business context, live web search, and code execution. Modal’s forward deployed engineering team tuned NVFP4 quantization for Japanese language retention by quantizing only routed experts and using domain-representative calibration data. A custom DFlash speculative draft model was trained on over 30 billion raw token IDs from production, increasing token acceptance by 25% and reducing per-token decode latency by ~35%. Kernel-level optimizations removed a CPU–GPU synchronization stall, routed NVFP4 expert math to faster kernels, and cached prefill dispatch setup. A KV-aware router eliminated time-to-first-token spikes by sending each request to the replica most likely to have its prompt prefix cached.
Introducing our Training API
Thinking Machines’ Tinker changed post-training by letting users write training loops in Python and run on GPUs, but scaling teams face high per-token costs and limited model support. To address this, Modal releases Spindle, an open-source, Tinker-compatible training server that runs in users’ Modal workspaces, allowing customization and pay-for-GPU instead of tokens. Spindle supports full-parameter training and multi-LoRA on a wide range of open models, and its backend uses disaggregated trainer engines and inference pools for efficient distributed training. By sharing GPUs across multiple clients, Spindle reduces idle time and significantly lowers cost per run; for example, a DAPO-math job with eight clients achieved an 80% price reduction compared to Tinker. Spindle is in beta, and users can deploy it with a single command, write training loops with their own losses and rewards, and benefit from ongoing performance optimizations.
Get started with LLM training on Modal
Modal Dojo is a new library for production-grade LLM training on Modal’s infrastructure, providing building blocks, tuned defaults, and observability for post-training including reinforcement learning. It supports models from half a billion to multi-trillion parameters and integrates with Hugging Face, Harbor environments, or custom data from production traces. Auto-optimized recipes handle hardware, parallelism, and rollout size, while an observability dashboard tracks loss, reward curves, agent trajectories, and granular substep profiling. The library is designed for full stack control, allowing users to patch underlying frameworks and customize recipes. A metric collector and CLI enable agents to monitor runs, debug bottlenecks, and one-shot baselines. Customers like Axiom Bio have used it for long-context RL on 64k-context DeepSeek V4.1 Flash runs, and Afterquery for autoresearch on frontier models at 256k context length.
Serverless routing made sticky
Modal launched Sticky Sessions, a serverless routing feature that guarantees all requests in a session reach the same container, solving the problem of stateful workloads that require continuity between requests. Use cases include speech-to-text models with decoder state, voice agents holding conversations, and multiplayer games where players must reconnect to the same container. Sticky Sessions build on Modal’s in-house stateless proxy (fprs) and use a signed session token returned by sessions.start() to encode routing metadata, avoiding the need for proxy state and enabling fixed routing without persistent mapping. Load balancing probes containers for concurrency snapshots and combines them with recent routing decisions to distribute sessions evenly, while autoscaling monitors active session counts and queued demand to size the compute fleet appropriately. The feature enables low-latency voice agents via WebRTC signaling, shared chat rooms where clients share a session token, and gaming applications that preserve in-memory state across player reconnections.
NVIDIA Vera CPUs double throughput for Modal Sandboxes
Modal received NVIDIA’s first Vera CPU server and is evaluating its potential for Modal Sandboxes. The company’s sandbox product uses bursting to allow users to reserve P50 capacity while absorbing spikes through host padding, which exposes workloads to noisy neighbor contention. To measure performance, Modal developed Agentless Agent Bench, a stress test simulating agent and RL tasks without network calls. Under heavy concurrent load, Vera did not slow down and maintained original per-task latency, achieving up to double the throughput of equivalent x86 machines. This enables Modal to offer greater packing density and higher absolute scale for users without sacrificing latency.
How Legora runs 2,000 parallel agent evals on Modal Sandboxes
Legora, an agentic system supporting lawyers, replaced its AI assistant with a full-fledged agent for longer autonomous tasks across thousands of documents. To test this agent, Legora runs every eval in an isolated Modal Sandbox, booting the full application including a DOCX editor, Turbopuffer, PDF conversion, Postgres, blobs, and code sandboxes. A typical experiment uses 100 cases, 4 harness variants, and 5 trials, totaling 2,000 parallel runs that must happen concurrently in the cloud. Legora uses Modal Volumes for shared document storage, snapshotting world state, and deduplicating setup, and an hourly pipeline builds the container image and pre-warms Sandboxes so only the delta needs to be applied. Switching from gVisor to Modal VM Sandboxes eliminated Docker workarounds, and the platform enables a self-improving agent loop that cut agent cost by 30% through smarter compaction and custom tool search.
Building fast filesystems for VMs
Modal’s VM Sandboxes originally used virtio-fs on top of ImageFS, a lazy-loading FUSE filesystem. This stack caused severe performance degradation: recursive chown took over a minute instead of seconds, and tools like bun install and ripgrep ran three times slower. Analysis revealed that every metadata operation like chown required three round trips from the guest VM to the host, each incurring approximately 99 µs overhead. Modal replaced virtio-fs with ImageFS-blk, a block-level solution that presents a virtual block device to the guest, letting the kernel manage its own filesystem. The new approach delivers dramatic speedups: chown dropped from 9.87 to 0.21 seconds, and bun install fell from 12.5 to 1.07 seconds, often exceeding even direct ImageFS performance.
Augment Your LiveKit Agent with Modal GPUs
LiveKit and its Agents SDK provide WebRTC-based audio-video applications, and open-weights models on Modal GPUs can augment these agents with custom or open-weights components, using BitHuman’s Expression Video Avatar voiced by Qwen3-TTS as an example to clone Charles Frye. The BitHuman avatar container, prepackaged as a self-hosted GPU container exposed via a Modal Server, provides a /launch endpoint that a LiveKit agent calls using a session token upon participant entry. A challenge arises because the endpoint returns immediately after the avatar joins, conflicting with how Modal Servers scale by in-flight requests. Modal’s recently released Sticky Sessions solve this by guaranteeing strong container affinity, allowing a client to start and end sessions and hold a slot on the container as if a request were running. GPU snapshots hide cold starts, avoiding gigabytes of model weight reloads, and the complete code is provided for implementation alongside documentation.
Modal crosses $1B in Annualized Run Rate and raises $750M Series D
Modal crossed $1B in annualized run rate and raised $750M in Series D funding at a $15.75B post-money valuation, led by Accel. Usage has tripled since the Series C five months ago, with year-over-year growth exceeding 15x, and the company now powers applications from companies including DoorDash, Cognition, and Runway. To avoid the friction of the old stack, Modal built its own file system, container runtime, scheduler, and networking from scratch on a capacity pool spanning over 20 clouds. Sandboxes, launched in 2023 for running LLM-generated code, now represent a $300M run rate product with nearly 3 billion sandboxes spun up and scaling to a million concurrent. New products include multi-node training with a single decorator giving a fully RDMA-connected cluster, Modal servers for HTTP serving, Endpoint Candidates for LLM serving, and generally available virtual machines.
Endpoint Candidates: evaluate and promote inference endpoints
Modal introduced Endpoint Candidates to stage alternative inference deployments for Dedicated Endpoints, allowing evaluation of quality, latency, throughput, and cost without affecting production traffic. Users create a Candidate by selecting a model from Modal’s catalog or importing custom weights, then set a percentage of production traffic to mirror. The Pingora-based proxy forks each request stream into separate bounded buffers per Candidate and shares body chunks across mirrors with a per-process memory budget; if a buffer fills or the budget is exceeded, the proxy cancels that mirrored request while production continues. Each Candidate receives its own URL for running existing evaluations on output quality and performance benchmarks under load, and all mirrored compute uses standard Modal compute pricing. When ready, users promote from the dashboard to roll out to the production endpoint, leaving other Candidates available for continued independent testing and enabling Auto Endpoints to validate automated inference optimizations.
TypeSafe AI scales Jev to trillions of tokens in three days on Modal
TypeSafe AI’s Jev is a System One Model that outputs structured decisions with probabilities rather than generating text, taking state and questions as input and returning typed values. It uses a custom architecture, a parallel sampler for maximum efficiency, and a training method called Reinforcement Learning for Calibrated Decisions (RLCD). Unlike autoregressive LLMs, Jev produces outputs in parallel, enabling low-latency responses suitable for workloads like large-scale automation, fast browser use, and generative user interfaces. Launched on a Thursday, Jev topped OpenRouter’s leaderboard for contexts between 1K and 10K tokens one week later, handling 15.1% of requests on that platform. To meet demand exceeding one trillion tokens in three days, TypeSafe used Modal’s serverless platform for bursty, high-concurrency inference without managing their own infrastructure, gaining control over networking, routing, and autoscaling needed for ultra-low-latency serving.
Modal Clusters are generally available
Modal announced general availability of Modal Clusters, a serverless multi-node compute primitive for AI workloads that provides up to 6.4 Tbps InfiniBand RDMA per node with PyTorch and NCCL support. A new gang scheduler places N nodes simultaneously by observing the fleet, assigning all pending clusters, and provisioning capacity when needed. RDMA support is fully automated behind a single rdma=True flag, with Modal contributing RDMA support to the gVisor container runtime and upstreaming the changes. Customers like Decagon, 1x, and Runway use Clusters for trillion-parameter fine-tuning, pre-training home robot world models, and multi-node video inference respectively. Clusters are available to all workspaces today through the @modal.clustered decorator, with per-second billing and no reservation required.
VM Sandboxes: Full computers for agents
Modal has launched VM Sandboxes in general availability, providing agents with full Linux VMs accessible via a single flag. The VMs support Docker stacks, local databases, dev servers, and other real-machine features that agents increasingly require, as demonstrated by Ramp’s internal agent driving the entire software development lifecycle. Modal built a custom runtime on the Rust-based Cloud Hypervisor, layering innovations in host filesystems, lazy image loading, memory bursting, and snapshotting to preserve the same APIs and sub-second cold starts as their existing gVisor Sandboxes. Early customers like Linear, Legora, and Snorkel have launched over 20 million VMs, using them for coding sessions, legal agent evaluations, and agent simulations that require multiple containers and real-world environments. Modal recommends using VM Sandboxes when workloads need Docker, FUSE filesystems, or niche kernel features, while gVisor remains the default for compatible workloads.
Runtime Roundup: VM Sandboxes, Multi-node clusters, and more
Modal announced several new features at its inaugural Runtime conference. VM Sandboxes provide agents with full Linux computer access, supporting Docker stacks, databases, graphical environments, and kernel experimentation, already used at Linear, Legora, and Snorkel for coding agents and evals. Sandbox Sidecars run alongside main sandboxes with isolation but share a host, allowing agent code in the main sandbox while trusted operations run in a sidecar the agent cannot access, avoiding network round trips in execution-heavy loops. Modal Clusters, now generally available via @modal.clustered, enable multi-node jobs for training or serving trillion-parameter models, powering post-training at Decagon and real-time inference at Runway. Sticky Sessions maintain client state by routing to the same container using a session token, critical for voice model serving, while Endpoint Candidates allow mirroring production traffic to compare quality, latency, throughput, and cost before promoting.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.