Building an RL theorem-proving workflow on Modal | Modal Blog
Apr 29, 2026

Summary
This post details the implementation of an RL theorem-proving workflow on Modal using Evolution Strategies (ES). It highlights the use of separate container images for GPU inference (vLLM) and CPU-based Lean verification, parallel GPU fan-out with `.map()` for ES iterations, and sandboxed Lean verification for isolation. It also describes stateless checkpointing using seed histories and volumes for base model storage, reducing download times. The implementation achieved a 60% reduction in project completion time compared to alternative platforms.
More from the AI Research Infrastructure trail
- How Botika runs full-stack generative AI on Modal | Modal Blog
- Anthropic integration with Modal brings scalable compute to Claude Science | Modal Blog
- Reinforcement learning is an infrastructure problem | Modal Blog
- Scaling reinforcement learning at Applied Compute | Modal Blog
- Autoscaling Autoresearch: Give your agents elastic GPUs on Modal | Modal Blog