---
title: "How Snorkel runs realistic agent simulations with Modal"
description: "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."
---

# How Snorkel runs realistic agent simulations with Modal

[Modal](https://yomu.fyi/company/modal) · Modal · Nov 6, 2026

**Type:** Problem & solution

## Summary

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.

## Context

Snorkel is an AI data lab that develops datasets and evaluates AI agents across varied tasks. Its Agentic Data Platform combines human experts and specialized agents to produce high-quality data. Snorkel runs large-scale simulations to verify model performance gains, requiring realistic environments and efficient resource allocation.

## Approach / What changed

Snorkel uses Modal’s GPU and CPU sandboxes to create realistic simulation environments including multi-service systems and GPU workloads. Modal’s memory bursting allows sandboxes to elastically expand CPU and memory at runtime, charging for actual usage or original request whichever is higher. Snorkel also uses Modal’s shared and dedicated inference endpoints to serve open-weight models. This enables millions of simulations per month with high concurrency and reduced costs.

## Takeaways

- Snorkel runs millions of agent simulations per month on Modal sandboxes, with peaks of tens of thousands per hour, to evaluate models across coding, infrastructure, and ML engineering tasks.
- Modal’s memory bursting lets sandboxes elastically expand resources at runtime, preventing failures from under-provisioning and reducing over-provisioning, leading to approximately 20% savings on sandbox costs.
- Snorkel uses Modal’s shared and dedicated inference endpoints for quick model serving and teardown, supporting both off-the-shelf and custom fine-tuned open-weight models.

## FAQ

### How does Snorkel create realistic simulation environments?

Snorkel uses Modal's GPU and CPU sandboxes to reproduce complex, production-like systems. For example, ML agent simulations require GPU access for deep learning tasks, while infrastructure agents need a full Linux kernel. This variety ensures agents have the tools needed for valid evaluation.

### How does Modal's memory bursting save costs?

Bursting allows sandboxes to elastically expand CPU and memory at runtime based on actual usage, avoiding over-provisioning. Modal charges for the resources used at a given time or the originally requested amount, whichever is higher. This reduced Snorkel's sandbox bill by approximately 20%.

### How does Snorkel handle inference for models?

Snorkel uses Modal's shared and dedicated endpoints to quickly serve open-weight models. They can stand up, run benchmarks, and tear down models without involving their infrastructure team. This supports both off-the-shelf endpoints and custom fine-tuned models.

**Tags:** [Agents](https://yomu.fyi/topic/agents), [Cost Optimization](https://yomu.fyi/topic/cost-optimization), [GPU](https://yomu.fyi/topic/gpu), [Modal](https://yomu.fyi/topic/modal), [Simulation](https://yomu.fyi/topic/simulation)

- Source: [Modal](https://modal.com/blog/how-snorkel-runs-realistic-agent-simulations-with-modal)
- Source URL: https://modal.com/blog/how-snorkel-runs-realistic-agent-simulations-with-modal
- Ingested by Yomu: 2026-11-06T18:00:14.553Z

[Read original post](https://modal.com/blog/how-snorkel-runs-realistic-agent-simulations-with-modal)
