Reading a trillion-token dataset without loading it into RAM

Reading a trillion-token dataset without loading it into RAM An architecture diagram generated by Archify. Tokenized corpus · trillions of tokens · Architecture component Tokenized corpus trillions of tokens Binary shards · shard_00000 … shard_99999 · Architecture component Binary shards shard_00000 … shard_99999 Index mapping · sample → document, offset · Architecture component Index mapping sample → document, offset Memory-mapped read · touches only needed regions · Architecture component Memory-mapped read touches only needed regions Multi-level shuffle · shard · document · sample · Architecture component Multi-level shuffle shard · document · sample Distributed loader · a distinct slice per rank · Architecture component Distributed loader a distinct slice per rank Deterministic resume · how many tokens consumed · Architecture component Deterministic resume how many tokens consumed GPU ranks · rank 0 … rank N · Architecture component GPU ranks rank 0 … rank N split up build lookup tables where sample i lives read just what's needed as one big array sample order a batch per rank resume at the right spot Legend Frontend Backend Database Cloud Security Message bus