Fire-Flyer Software Stack for AI Training
DeepSeek's Fire-Flyer computing cluster relies on a set of purpose-built software components that let thousands of graphics processors work together on training large language models. The collection covers storage systems for feeding data to processors, communication libraries for sharing results between them, neural network building blocks, tools for splitting workloads across many machines, and management applications for scheduling and recovering from failures. Together, these tools show how the company tackled the engineering challenge of training AI models efficiently on its own hardware infrastructure.
| Training framework |
|---|
| 3FS (Fire-Flyer File System): A distributed parallel file system designed for asynchronous random reads. It uses Direct I/O and RDMA Read. In contrast to standard Buffered I/O, Direct I/O does not cache data. Caching is useless in this case, since each piece of data read is random and is not reused. |
| hfreduce: Library for asynchronous communication, originally designed to replace Nvidia Collective Communication Library (NCCL). It is mainly used for allreduce, especially of gradients during backpropagation. It runs asynchronously on the CPU to avoid blocking kernels on the GPU. It uses two-tree broadcast like NCCL. |
| hfai.nn: Software library of commonly used operators for neural network training, similar to torch.nn in PyTorch. |
| HaiScale Distributed Data Parallel (DDP): Parallel training library that implements various forms of parallelism such as data parallelism (DP), pipeline parallelism (PP), tensor parallelism (TP), experts parallelism (EP), fully sharded data parallel (FSDP) and zero redundancy optimizer (ZeRO). It is similar to PyTorch DDP, which uses NCCL on the backend. |
| HAI Platform: Various applications such as task scheduling, fault handling, and disaster recovery. |
Source: en.wikipedia.org/wiki/DeepSeek, shared under CC BY-SA 4.0.
Updates: Latest edits
Related: Nvidia
More: All tables from DeepSeek · Tables like this · Random tables