DeepSeek DSec: Revolutionizing Large-Scale Agent Training
DeepSeek's DSec, a sandbox infrastructure for efficient agentic training, addresses challenges in large-scale agent training with innovative solutions.
Introduction to DeepSeek DSec
DeepSeek has released a technical article on Zhihu, explaining its DeepSeek Elastic Compute (DSec), a sandbox infrastructure for all training, evaluation, and data preprocessing processes of DeepSeek-V4. The article is based on a technical report published on arXiv by DeepSeek and Tsinghua University with a team of over 130 authors.
Challenges in Agent Training
Training reliable agent large models requires repeated trial and error in a real-world environment. This involves reading code, modifying files, installing dependencies, executing tests, and running services. These operations continuously change the environment, and the sandbox must maintain state across multiple interactions.
DSec's Design and Execution Backends
DSec supports four execution backends: FnCall, Container, MicroVM, and Full VM. FnCall reuses pre-created containers for short tasks like online evaluations. Container offers fast startup and high deployment density for general software engineering and tool calls. MicroVM provides stronger isolation for secure tasks, while Full VM supports complete operating system environments for graphics, rende
Efficient Environment Management
DSec breaks down the sandbox environment into three parts: base image, workspace, and toolkit. This allows for independent version management and reduces the need for rebuilding large numbers of images.
Optimized Data Storage and Retrieval
DSec uses EROFS to store images, workspaces, and toolkits, separating metadata from data and enabling cross-image deduplication. This reduces I/O overhead by loading only the required metadata and data on demand.
“DSec addresses the challenges in large-scale agent training with innovative solutions.”
— DeepSeek