Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Modal 6 min read Announcement easyNovice

Modal Clusters are generally available

Modal Clusters, multi-node GPU groups requested via a single `@modal.clustered(size=N, rdma=True)` decorator, are now generally available with per-second billing and cluster acquisition in seconds. Supporting them required a new gang scheduler that uses an observe-plan-act loop to place all N nodes of a cluster at once, grouping by availability zone and network ID, instead of Modal's greedy per-node scheduler. The `rdma=True` flag hides cloud-specific InfiniBand setup and gives up to 6.4 Tbps between nodes, auto-configured for PyTorch and NCCL. Modal also added RDMA support to the gVisor runtime and upstreamed it. Customer examples include Decagon fine-tuning trillion-parameter models, 1x pre-training a robot world model and Runway running multi-node video inference.

Assumes: distributed GPU trainingRDMA basics

Related posts

  • Building Meta’s GenAI Infrastructure

    Meta Engineering easyNovice

    Meta built two 24,576-GPU NVIDIA H100 clusters for GenAI training, including Llama 3. One uses a RoCE fabric on Arista 7800 and OCP switches and the other uses InfiniBand, both with 400 Gbps endpoints, on Grand Teton servers. Storage combines a FUSE API over a flash-optimized Tectonic for synchronized checkpointing with a Hammerspace parallel NFS for interactive debugging. Large-cluster AllGather utilization initially ranged from 10% to 90%. Topology-aware job scheduling, routing changes and NCCL tuning brought it back above 90%, and PyTorch process-group startup dropped from hours to minutes.

  • Inside multi-node training: How to scale model training across GPU clusters

    Together AI mediumAdept

    Multi-node GPU training spreads foundation model training across many 8-GPU servers by combining data, tensor and pipeline parallelism over NVLink within nodes and InfiniBand/RoCE between them, with periodic checkpointing to survive the near-daily hardware failures of 100-node clusters. A Qwen2.5-72B example on 16 nodes of B300 GPUs (TP=8, PP=2) reached 45-50% MFU and about 2,500 tokens/s/GPU, with PCIe errors, NVLink drops and gradient-sync congestion as recurring problems. Before a full run, verify NVLink and inter-node bandwidth with tools like ib_write_bw, set up NCCL and test checkpoint resume, then scale from 2 nodes upward while targeting over 80% scaling efficiency.

  • Introducing preemptible compute: the same compute, half the price

    Together AI mediumAdept

    Together GPU Clusters now offer preemptible nodes on Kubernetes and Slurm at a flat 50% of on-demand price, billed sub-hourly, drawing from unused capacity and joining existing clusters with a `together.ai/compute-class=preemptible` label. On reclamation the node is cordoned, a `TogetherPreemptionNotified` event fires and pods get SIGTERM, with up to five minutes to checkpoint before removal; the cluster then refills toward its preemptible target automatically. Good fits are checkpointed or retryable work such as sweeps, evals, fine-tunes and batch inference bursts, while coordinators, login pods and user-facing serving should stay on standard nodes via nodeSelector.

  • Scaling to 1 million concurrent sandboxes in seconds

    Modal mediumAdept

    Modal rebuilt its sandbox control plane to run 1 million concurrent sandboxes, creating all of them in under a minute, by removing central coordination and durable stores from the creation path. A horizontally scaled fleet of scheduling servers picks workers using in-memory state that workers publish to a Redis stream, then calls the worker directly over RPC; workers act as their own source of truth and reject requests when full. Kubernetes and Modal's old Postgres-backed design hit limits from O(pods) and O(nodes) etcd and Postgres writes and serialized scheduling. The new path takes two network hops, scheduling takes tens of milliseconds, and median start time is under 0.5s, with tail latency driven by kernel rtnl lock contention during container networking setup.

  • RoCE networks for distributed AI training at scale

    Meta Engineering hardMaster

    Meta runs distributed AI training on a dedicated RoCEv2 backend network, separate from the frontend network used for data ingestion and checkpointing. The backend is a two-stage Clos "AI Zone" (RTSW leaf, deep-buffer CTSW spine), joined by an oversubscribed aggregation layer, with a topology-aware scheduler that minimizes cross-zone traffic. Because training traffic has low entropy, is bursty and consists of elephant flows, routing moved from plain ECMP to destination-slice path pinning, which needed 2x uplink capacity as a costly stopgap. It then moved to queue-pair scaling with E-ECMP hashing on the destination QP, which improved AllReduce by up to 40%. At 400G Meta dropped DCQCN and relies on PFC plus receiver-driven traffic admission built into NCCL's clear-to-send mechanism, with CTS packets given high priority at switches, and has seen no persistent congestion in four years.

The quest for software engineering knowledge.

Look:
Layout: