DeepSeek DSec: The Sandbox Infrastructure for Agent Training
DeepSeek's DSec, a sandbox infrastructure for effective agent training, is unveiled, offering a scalable and efficient solution for large-scale AI agent development.
Introduction to DeepSeek DSec
DeepSeek has released a technical article on Zhihu, detailing its DeepSeek Elastic Compute (DSec), a sandbox infrastructure designed to support the training, evaluation, and data preprocessing of DeepSeek-V4 agents. The article is based on a technical report co-published with Tsinghua University and involves a team of over 130 authors.
DSec's Role in Agent Training
DSec is crucial for reliable agent training as it allows agents to repeatedly interact in a real-world environment, making adjustments and learning from trial and error. This involves reading code, modifying files, installing dependencies, executing tests, and running services, all of which change the environment and require the sandbox to maintain its state across multiple rounds of interaction.
DSec's Design and Architecture
DSec supports four execution backends: FnCall, Container, MicroVM, and Full VM, each tailored to different task requirements. It also utilizes a unified Python SDK (libdsec) for access, allowing for efficient task management. The architecture of DSec is designed to manage sandbox creation and operation uniformly, adapting to various execution backends for different tasks.
Efficient Environment Management
DSec addresses the challenge of building and updating large numbers of environments by splitting the sandbox environment into three parts: base images, workspaces, and toolkits. This allows for independent version management and reduces the need for rebuilding images when updates are made.
Optimized Storage and Performance
DSec uses EROFS for storing images, workspaces, and toolkits, supporting metadata and data separation and image deduplication. It also employs OverlayFS to combine layers on-demand, reducing redundant content and improving performance.
“DSec is crucial for reliable agent training as it allows agents to repeatedly interact in a real-world environment, making adjustments and learning from trial and error.”
— DeepSeek Team