Loading…
Topic
Modal
24 posts about Modal. Every summary links to the original.
- 24 posts
- 1 company
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.
Newest first
Posts
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.
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.
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.
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.
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.
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.
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.
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.
Sidecars: A low-latency trust boundary for Sandboxes
Modal introduces Sidecars, isolated containers that run alongside a main Sandbox on the same host, establishing a trust boundary between trusted and untrusted code. Sidecars enable communication across trust boundaries at least 3x faster than using separate Sandboxes, reducing latency for operation-heavy agent workloads. The feature addresses the security risk of running an agent’s harness and tool calls together, which creates the “lethal trifecta” of private data, untrusted content, and external communication. Existing solutions either move the harness to a remote service (adding network latency) or rely on egress controls that lack flexibility. Sidecars allow trusted services such as credential injection, proxy traffic, and harness logic to run locally alongside the Sandbox, with independent network policies and dynamic creation via the Modal SDK.
One compute platform for end-to-end training at Markov Robotics
Markov Robotics uses Modal as a unified compute platform for end-to-end training of world models targeting zero-shot general-purpose dexterity. The company processes hundreds of terabytes of video by writing each step as a Modal Function and fanning it out with .spawn_map, scaling to thousands of containers and up to 500 GPUs simultaneously. This parallelization reduces preprocessing from a full day to twenty to thirty minutes. The team runs between two and ten training runs concurrently, using Modal Volumes for fast data access and reproducible experiments that eliminate manual Docker image management, saving thirty to sixty minutes per experiment. For remote inference, Markov uses Modal Tunnels to open a direct path between the robot and a GPU, achieving a round-trip network overhead of approximately twenty milliseconds.
Modal is expanding in Europe with our new London office
Modal is expanding in Europe with a new London office, its second in the region, representing a larger investment in the area. The company already has nearly 20 engineers in Stockholm who built core parts of Modal, including its custom file system and Sandboxes product. Hugh Killingbeck-Jones joins as VP EMEA to lead go-to-market teams in London, which the company considers the AI capital of Europe. European AI-native companies like Black Forest Labs and Legora, as well as global platforms like DoorDash, run on Modal for tasks such as model evaluation and agent testing. The company is hiring across sales, engineering, and other roles in London and Stockholm, and plans meetups across EMEA.
How Botika runs full-stack generative AI on Modal
Botika builds agentic e-commerce teams that automate visual production for global fashion brands, using proprietary foundation models and a 100-terabyte image dataset. The company runs its entire full-stack AI operation on Modal, with the data pipeline processing 100 terabytes at less than 1% error rate across thousands of containers. Before Modal, the team struggled with Kubernetes fleet management and slow GCP Batch jobs; now a single researcher can launch 50 experiments daily using Claude, and they set up reinforcement learning infrastructure in less than a day. Modal handles autoscaling, cold starts, and multi-node training with RDMA, allowing Botika to double traffic in seconds, and they serve about 15 models on L4s, L40S, A100s, and H100s. The infrastructure is not Modal-specific, enabling the team to run open-source and custom frameworks without modification.
Kimi K3 by Moonshot now available on Modal
Moonshot released Kimi K3, a 2.8 trillion parameter multimodal mixture-of-experts transformer with a 1 million token context window and native vision, now on Modal. Modal runs the model at 460 tokens per second on release day through a partnership with Moonshot and vLLM, with token-based pricing on a Shared API or dedicated Auto Endpoint. K3 activates 16 of 896 experts per token and uses Kimi Delta Attention along with Attention Residuals to achieve roughly 2.5 times the scaling efficiency of its predecessor K2. Moonshot employed quantization-aware training from the SFT stage with MXFP4 weights and MXFP8 activations, and contributed a new prefix caching implementation to vLLM to address challenges from KDA. Modal deployed a custom DFlash speculative decoding drafter tuned to K3’s architecture, yielding 360 percent faster interactivity and 88 percent higher throughput on agentic workloads.
Devin Outposts on Modal
Devin, an AI software engineer by Cognition, plans, writes, tests, and ships code semi-autonomously. Cognition now extends Devin with Outposts, moving execution into user-controlled environments while reasoning stays in Cognition’s cloud. Modal is a launch partner with modal-devin, an open-source integration running Outpost sessions in Modal Sandboxes with pre-built custom images, fast cold-starts, snapshotting, and cost-efficient bursting. For example, a task that requires a GPU fails immediately in the default sandbox but succeeds on a Modal-backed Outpost that spins up a GPU on demand and scales to zero when done. One command, uvx modal-devin init, sets up secure infrastructure with a scheduler and worker functions, and each team can have its own outpost with separate credentials.
Inkling by Thinking Machines now available on Modal
Thinking Machines released Inkling, a general-purpose multimodal model that accepts text, image and audio inputs and generates text outputs. The 975B-parameter mixture-of-experts transformer activates 41B parameters per token, uses a 1M-token context window, and employs local attention: five sliding window layers for every global layer. Modal provided day-zero support with a custom DFlash block-diffusion speculator, achieving 250 tokens per second per user on 8x B200s with 67% faster interactivity than the model’s built-in multi-token prediction path. The DFlash drafter uses all local attention and causal layers, keeping cost flat as block size grows. Inkling is available today as an OpenAI-compatible shared endpoint through Modal Auto Endpoints with token-based pricing, allowing users to try the model interactively.
Modal is a computer
Modal is a platform that runs programs of arithmetic and logic operations on information, making it a computer. It operates on hardware from dozens of cloud providers, building a virtualization layer that aggregates, isolates, and multiplexes demand for increased resource efficiency. Programs run in containers that receive inputs from the container runtime, similar to how a typical computer’s ALU fetches inputs from memory. Information in Modal lives in a tiered storage hierarchy, from container memory to object storage, with caches like page cache and ephemeral disk. Input and output pass through the Modal Input/Output Plane for functions and sandboxes, or the Routing Plane for HTTP servers, with direct Tunnels for extreme performance needs.
Anthropic integration with Modal brings scalable compute to Claude Science
Anthropic launched Claude Science, an AI workbench where life sciences researchers run computational workloads from conversation with Claude. The workbench addresses the fragmented toolchain of local machines, HPC clusters, and cloud VMs by centralizing execution in one place. Modal integrates with Claude Science as the compute backend, routing GPU and CPU-heavy workloads to Modal sandboxes automatically and fanning out parallel tasks like virtual screening across hundreds of containers to reduce hours to minutes. Researchers can prompt for tasks such as predicting GFP structure, and Claude writes the folding code, runs it on a Modal GPU, and returns the structure with confidence scores inside the conversation, with Modal handling scheduling, shared storage, and reproducible environments. Modal is committing up to $100,000 in compute for the Claude Science Cohort, with 500– 2,000 allocations per project.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.