Real-time inference for robots at Physical Intelligence
Physical Intelligence runs closed-loop inference for its Visual-Language-Action robot models on Modal GPUs instead of on-board GPUs, adding only about 10-15 ms of network overhead. Because TCP head-of-line blocking and jitter can disrupt a continuous control loop, Pi and Modal built a QUIC-over-UDP portal in Rust. It uses STUN discovery and UDP hole punching, coordinated through Modal Dict, so robots behind NAT keep a persistent bidirectional stream to GPU containers without relay infrastructure. Checkpoints live in Modal Volumes and load in under 30 seconds, and region-pinned deployments keep round trips short. Off-board inference also lets the team test models too large for robot hardware.
Related posts
- Augment Your LiveKit Agent with Modal GPUs
Modal mediumAdept
LiveKit agents can offload custom or open-weights models to Modal serverless GPUs, demonstrated with a BitHuman Expression video avatar voiced by Qwen3-TTS. The BitHuman container's /launch endpoint returns as soon as the avatar joins the room, which conflicts with Modal Servers scaling on in-flight requests. Modal's Sticky Sessions solve this by letting the agent open a session before calling /launch and close it when the call ends, holding the container slot for the session's duration. GPU snapshots hide cold starts that would otherwise require reloading gigabytes of model weights.
- How we achieved truly serverless GPUs
Modal mediumAdept
Modal cuts GPU inference replica cold starts from roughly 2,000 seconds to about 50 seconds, a 40x speedup, by attacking each stage of spin-up. A solver-managed buffer of idle, health-checked GPUs, allocated with Google's GLOP linear program, takes instance provisioning out of the hot path. ImageFS, a libfuse filesystem, serves container images lazily from a tiered content-addressed cache, and CPU and CUDA checkpoint/restore skip host- and device-side initialization. The motivation is GPU Allocation Utilization: spiky inference demand leaves fixed allocations at 10-20% use, and fast autoscaling raises utilization and quality of service together.
- Learn how Cursor partnered with Together AI to deliver real-time, low-latency inference at scale
Together AI easyNoviceCursor and Together AI built real-time, low-latency inference for in-editor coding agents on NVIDIA Blackwell GB200 NVL72 and HGX B200, where suggestions must land before the developer's local code context changes. The work involved porting the inference stack to ARM-based Grace hosts, writing custom kernels for Blackwell's low-precision Tensor Core instructions, and designing parallelism meshes that keep communication costs bounded across the 72-GPU all-to-all domain. A quantization pipeline using TensorRT LLM and NVFP4 turns new Cursor model weights into validated test endpoints within days, followed by internal evals and A/B tests on live traffic before cutover. The next focus is throughput and per-GPU economics.
- Inside Modal Notebooks: How we built a cloud GPU notebook that boots in seconds
Modal mediumAdept
Modal Notebooks runs Jupyter kernels inside Modal Sandboxes, using a `modal-kernelshim` daemon that translates ZeroMQ kernel protocol messages into HTTP tunneled through the control plane. Fast GPU boots come from a Rust FUSE lazy-loading container filesystem with a content-addressed tiered cache (page cache, SSD, zonal cache, regional CDN, blob storage). Supporting pieces include shared scheduling with idle-kernel pausing and VolumeFS (file trees in Spanner, eventually consistent ops) for persistent storage. Collaboration uses operational transformation via Rushlight over Redis Streams, with large outputs offloaded to S3 Express One Zone, and the editor adds LSP via Pyright, Ruff formatting compiled to WebAssembly, and AI next-edit suggestions.
- Asynchronous Robot Inference: Decoupling Action Prediction and Execution
Hugging Face hardMasterRobot policies that emit action chunks leave the robot idle during inference when run sequentially, causing lag and open-loop behaviour. LeRobot's async inference splits the system into an on-board RobotClient that keeps executing a local action queue and a PolicyServer on accelerated hardware. The two communicate over gRPC streams, and the client sends a fresh observation whenever its queue drops below a threshold g. Overlapping chunks are merged with a pluggable aggregate function, and the server skips near-duplicate observations unless they are flagged must_go. With SmolVLA this gives roughly 2x faster task completion at comparable success rates, and g≈0.5–0.7 is recommended as the compute/responsiveness tradeoff.