DeepSeek Elastic Compute (DSec)
TL;DR Highlight
DeepSeek's DSec runs about 3M sandboxes a day on 160 nodes for agentic training
Who Should Read
A platform developer who must spin up sandboxes at scale for agent training and evaluation and is designing the infrastructure
Core Mechanics
- One SDK covers four sandbox backends
- FnCall, container, microVM and full-VM backends are exposed through a unified SDK.
- DSec coordinates placement and lifecycle across the cluster.
- Environments are built from versioned layers
- Each environment is composed of independently versioned layers.
- Image data is loaded on demand from 3FS (Fire-Flyer File System), a distributed filesystem.
- Resources are managed for high density
- It combines memory sharing, reclamation and CPU scheduling.
- The paper says latency-sensitive performance is preserved under high-density overcommit.
- Co-designed with the RL framework
- Stateful rollout execution is decoupled from preemptible GPU training.
- Sandbox lifecycle is coordinated with training to keep rollout state and reclaim idle resources.
- It also mitigates agent misbehavior such as reward hacking.
- Production scale is large
- One scale unit spans about 160 nodes and serves about 3M sandboxes per day.
- It supports over 380,000 concurrent sandboxes and over 5,000 creations per second.
Community Reactions
- Commenters were amazed at 380K concurrent sandboxes on 160 nodes
- A comment noted these are Epyc-based server nodes.
- Opinion that agents are becoming top cloud consumers
- A commenter said AI agents are rapidly becoming the biggest consumers of cloud resources.
- Opinion that unpredictable workloads make this hard
- A comment contrasted a CPU-bound PDF conversion agent with a mostly network-waiting Q&A agent.
- The commenter wants tech that resizes CPU and memory without restarting a container.
- Opinion that it resembles Google's ax
- Several comments said it looks similar to Google's ax (github.com/google/ax).
How to Apply
- Classify your sandbox types by task
- List your agent tasks and map each to FnCall, container, microVM or full VM by the isolation it needs.
- Find tasks that use heavier isolation than necessary.
- Split environment images into versioned layers
- Separate base, dependencies and task files into layers and version each.
- Look at loading data on demand instead of pulling whole images each time.
- Add a reward hacking checklist for rollouts
- Check whether the agent can reach evaluation scripts or answer files inside the sandbox.
- If it can, make those paths read-only or hidden.
Try It
# Paste into Claude or ChatGPT (simplified version of the paper's ideas: sandbox design review)
Our agent training/evaluation environment is: {{environment description}}
Task types: {{task list}}
Review the design using these criteria.
1. For each task, pick an isolation level among FnCall / container / microVM / full-VM and explain why, in a table.
2. Propose a way to split the environment image into independently versioned layers.
3. List paths where the agent could tamper with rewards or answer files (reward hacking) and how to block them.
Next step: pick the riskiest path and test whether it can actually be reproduced.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques