DeepSeek Unveils DSec for Agent Training
DeepSeek's DSec, a sandbox infrastructure for large-scale agent training, is detailed in a new report and open-source release.
Introduction to DeepSeek DSec
DeepSeek has published a technical article on Zhihu, detailing their DeepSeek Elastic Compute (DSec) infrastructure. DSec is a sandbox infrastructure designed to support the training, evaluation, and data preprocessing of DeepSeek-V4 agents. The technology report, co-authored by DeepSeek and Tsinghua University, is available on arXiv and involves a team of over 130 authors.
DSec's Role in Agent Training
DSec is crucial for training reliable agent models, allowing them to repeatedly try and learn in real-world environments. The infrastructure must handle frequent changes in the environment and support operations like code reading, file modification, dependency installation, testing, and service execution.
DSec's Execution Backends
DSec supports four execution backends: FnCall, Container, MicroVM, and Full VM. These backends are accessed through a unified Python SDK and are chosen based on the type of task, with FnCall for short tasks like online evaluations, Containers for general software engineering, MicroVM for secure tasks, and Full VM for complete OS environments.
Environment Management and Efficiency
DSec breaks down the environment into base images, workspaces, and toolkits, managing updates and versions separately. It uses EROFS for storage, which supports metadata and data separation and deduplication across images. This approach reduces the need for rebuilding images and optimizes I/O by storing only metadata locally.
Resource Management and Optimization
DSec optimizes resource usage with virtio-pmem and DAX for cache sharing among MicroVMs and memory recycling mechanisms like DAMON and balloon. These techniques help in high-density resource deployment and ensure that tasks with high response time requirements are prioritized.
“DSec is crucial for training reliable agent models, allowing them to repeatedly try and learn in real-world environments.”
— DeepSeek