Modal + Datalab: Deploy high-throughput document intelligence in <5 minutes
Oct 29, 2025

Summary
This post details how to deploy Datalab's Marker and Surya document intelligence models on Modal. It showcases caching model weights in Modal Volumes for faster cold starts, specifying environment and hardware requirements in function decorators, and leveraging Modal's autoscaling for high throughput on batch jobs. It highlights a 10x throughput gain for Marker on Modal compared to local CPU processing, achieved through GPU utilization, Flash Attention optimizations, and environment tuning. The post also mentions Datalab's managed API platform, which uses Modal for inference.
More from the ETL Platform trail
- Seamless computational bio at Chai Discovery | Modal Blog
- Product updates: memory snapshotting, OIDC, async job queues & more
- How a top tier European soccer team sped up their data processing and reduced costs by 50%
- Building a cost-effective analytics stack with Modal, dlt, and dbt
- Why you should move your ETL stack to Modal