DeepSeek 3FS Explained: The Fire-Flyer File System for AI Training and Inference

On this page
3FS (Fire-Flyer File System) is DeepSeek's open-source, high-performance distributed file system for AI training and inference. It pools the throughput of many NVMe SSDs over RDMA networks (InfiniBand or RoCE) into one shared storage layer, with strong consistency (chain replication) and a normal file interface. DeepSeek released it under the MIT licence on GitHub in late February 2025 during its "Open Source Week". In DeepSeek's published test, a 180-node cluster reached about 6.6 TiB/s of aggregate read throughput.
3FS at a glance
| Details | |
|---|---|
| Full name | Fire-Flyer File System (3FS) |
| Developer | DeepSeek (deepseek-ai on GitHub) |
| Licence | MIT |
| Purpose | Shared storage for AI data prep, training dataloaders, checkpointing and inference KVCache |
| Hardware | NVMe SSD storage nodes + RDMA network (InfiniBand/RoCE) |
| Consistency | Strong, via CRAQ (Chain Replication with Apportioned Queries) |
| Metadata | Stateless metadata services on a transactional key-value store (FoundationDB) |
| Client access | FUSE mount plus a high-performance native API (USRBIO) |
Published performance
| Test | Result | Setup |
|---|---|---|
| Peak read throughput | About 6.6 TiB/s aggregate | 180 storage nodes (2 × 200Gbps InfiniBand, 16 × 14TiB NVMe each), 500+ clients, with training traffic in the background |
| GraySort | 110.5 TiB sorted in 30 min 14 s (about 3.66 TiB/min) | 25 storage + 50 compute nodes, using DeepSeek's smallpond framework |
| KVCache reads | Peak up to about 40 GiB/s | Inference clients with 400Gbps NICs |
Source: the 3FS GitHub repository (deepseek-ai/3FS). These are vendor-reported numbers on DeepSeek's own hardware.
How 3FS works
- Disaggregated storage: thousands of SSDs across many nodes act as one pool; clients read and write without caring where data lives.
- Chain replication (CRAQ): each chunk is replicated across a chain of storage targets; writes go down the chain, reads can be served by any replica, keeping data strongly consistent.
- Stateless metadata: file and directory metadata live in FoundationDB, so metadata servers can scale out and restart easily.
- Clients: a FUSE client for compatibility and a zero-copy native API for maximum speed in training jobs.
What it's used for
- Data preparation: organising and processing huge datasets with hierarchical directories.
- Dataloaders: random access to training samples across nodes, without pre-fetching or shuffling tricks.
- Checkpointing: fast parallel saves and loads of large model checkpoints.
- KVCache for inference: a cheaper, larger alternative to keeping attention caches in DRAM.
3FS vs other storage systems
| System | Type | Strengths | Trade-offs |
|---|---|---|---|
| 3FS | Open source, AI-focused | Very high throughput on SSD + RDMA, strong consistency | Young project; needs RDMA hardware and FoundationDB; Linux only |
| Lustre | Open source HPC file system | Proven at supercomputer scale | Complex to run; metadata can bottleneck |
| Ceph (CephFS) | Open source unified storage | Flexible, block/object/file | Lower peak throughput for AI training without tuning |
| WEKA, VAST, DDN | Commercial | Turnkey AI storage, support | Licence cost |
| Cloud object storage (S3, GCS) | Managed | Cheap, unlimited | Higher latency; needs caching layers for training |
Requirements to try 3FS
- Linux servers (Ubuntu and several Chinese enterprise distributions documented), NVMe SSDs and an RDMA-capable network.
- Build tools: CMake, clang-14 or GCC 10/12, Rust 1.75+ (1.85+ recommended).
- libfuse 3.16.1+ and FoundationDB 7.1+.
- Expect a learning curve: it's designed for data-centre AI clusters, not home labs.
Other DeepSeek open-source infrastructure
During the same Open Source Week DeepSeek also released tools such as FlashMLA (attention kernels), DeepEP (expert-parallel communication), DeepGEMM (FP8 matrix multiplication) and the smallpond data framework built on 3FS. Learn more about the models they serve in DeepSeek V3 to V4 and DeepSeek R1 hardware requirements.
FAQ
Is 3FS free?
Yes, it's open source under the MIT licence.
Can I use 3FS without InfiniBand?
It's built for RDMA; RoCE (RDMA over Ethernet) is the main alternative. Without RDMA you lose most of the performance benefit.
Is 3FS a database?
No, it's a distributed file system; it uses FoundationDB only for metadata.
Does DeepSeek use 3FS in production?
DeepSeek says 3FS supports its training and inference workloads, including KVCache for serving models.
Related guides
- DeepSeek V3: Features, Performance & Applications
- DeepSeek R1 Hardware Requirements: What You Need to Run It Locally (2026)
- DeepSeek R1 vs V3: Key Differences & Performance Comparison
- DeepSeek vs. ChatGPT: Comparison of Features, Pricing, and APIs
- Computer Storage Devices: Types, Examples and How They Compare