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

deepseek 3fs
On this page
  1. 3FS at a glance
  2. Published performance
  3. How 3FS works
  4. What it's used for
  5. 3FS vs other storage systems
  6. Requirements to try 3FS
  7. Other DeepSeek open-source infrastructure
  8. FAQ

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 nameFire-Flyer File System (3FS)
DeveloperDeepSeek (deepseek-ai on GitHub)
LicenceMIT
PurposeShared storage for AI data prep, training dataloaders, checkpointing and inference KVCache
HardwareNVMe SSD storage nodes + RDMA network (InfiniBand/RoCE)
ConsistencyStrong, via CRAQ (Chain Replication with Apportioned Queries)
MetadataStateless metadata services on a transactional key-value store (FoundationDB)
Client accessFUSE mount plus a high-performance native API (USRBIO)

Published performance

TestResultSetup
Peak read throughputAbout 6.6 TiB/s aggregate180 storage nodes (2 × 200Gbps InfiniBand, 16 × 14TiB NVMe each), 500+ clients, with training traffic in the background
GraySort110.5 TiB sorted in 30 min 14 s (about 3.66 TiB/min)25 storage + 50 compute nodes, using DeepSeek's smallpond framework
KVCache readsPeak up to about 40 GiB/sInference 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

  1. Disaggregated storage: thousands of SSDs across many nodes act as one pool; clients read and write without caring where data lives.
  2. 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.
  3. Stateless metadata: file and directory metadata live in FoundationDB, so metadata servers can scale out and restart easily.
  4. 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

SystemTypeStrengthsTrade-offs
3FSOpen source, AI-focusedVery high throughput on SSD + RDMA, strong consistencyYoung project; needs RDMA hardware and FoundationDB; Linux only
LustreOpen source HPC file systemProven at supercomputer scaleComplex to run; metadata can bottleneck
Ceph (CephFS)Open source unified storageFlexible, block/object/fileLower peak throughput for AI training without tuning
WEKA, VAST, DDNCommercialTurnkey AI storage, supportLicence cost
Cloud object storage (S3, GCS)ManagedCheap, unlimitedHigher 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