Open-source libraries
DeepSeek OpenSource Infrastructure
During DeepSeek's OpenSource Week, the engineering team open-sourced the entire distributed high-performance systems stack powering their frontier clusters. These repositories provide the extreme compute, communication, and memory efficiency required for modern MoE architectures.
An ultra-fast decoding kernel tailored specifically for Multi-Head Latent Attention (MLA) on NVIDIA Hopper architectures. Employs Tensor Memory Accelerator (TMA) asynchronous memory copies to maximize memory bandwidth utilization during variable-length generation.
git clone https://github.com/deepseek-ai/FlashMLA.gitThe first open-source communication library purpose-built for Mixture-of-Experts (MoE) dispatch and combine operations. Implements custom NVLink kernels within nodes and RDMA InfiniBand across nodes, overlapping MoE communication directly with GPU matrix computation.
git clone https://github.com/deepseek-ai/DeepEP.gitA clean, performant FP8 GEMM library built specifically for Hopper Tensor Cores. Supports both standard continuous GEMM and fine-grained grouped MoE GEMMs with fine-grained per-tile scaling, achieving over 95% of theoretical peak FP8 tensor core throughput.
git clone https://github.com/deepseek-ai/DeepGEMM.gitAn innovative bidirectional pipeline parallel scheduling algorithm designed for large-scale distributed training of giant MoE architectures. By running forward and backward micro-batches from both ends of the pipeline simultaneously, it reduces idle bubble time to less than 10%.
git clone https://github.com/deepseek-ai/DualPipe.git3FS (Fire-Flyer File System) is a distributed parallel file system designed for AI training clusters, combining raw NVMe-oF throughput with RDMA networking to deliver terabytes/sec of aggregate I/O bandwidth. Paired with Smallpond, a distributed DuckDB-based data processing framework for massive pretraining corpora.
git clone https://github.com/deepseek-ai/3FS.gitThe breakthrough memory architecture integrated into DeepSeek-V4.1-Flash. Engram stores massive factual world knowledge and long-range repository symbols in a 196B parameter hashed associative memory table, retrieved in constant O(1) time without triggering heavy transformer attention layers.
git clone https://github.com/deepseek-ai/Engram.git