DEMAND · WHY NOW
scGPT trained on 33M cells; Tahoe-x1 on 266M. scBaseCount holds 502M cells, and Arc Institute plans over a billion cell experiments for virtual-cell modelling.
STORAGE + LOADING FOR SINGLE-CELL TRAINING
A storage format for billion-cell corpora that is easy to use, integrate and share — and a loading pipeline that keeps training fed, epoch after epoch.
Training demand
Single-cell models are moving to billion-cell corpora. Past the size of host memory, every cell must be streamed from storage — and the loader decides how fast training can go.
DEMAND · WHY NOW
scGPT trained on 33M cells; Tahoe-x1 on 266M. scBaseCount holds 502M cells, and Arc Institute plans over a billion cell experiments for virtual-cell modelling.
Corpus sizes as cited in the technical report (§1). CSR size at 2,000 nonzeros per cell with 32-bit values and indices.
DEMAND · THE SUPPLY GAP
Measured training demand of eleven single-cell models on one H200 GPU. Each packet is a batch of cells on its way to the GPU.
Model demand: synthetic GPU-resident inputs, one H200. Loaders: best variant each, one NVMe SSD, 16 workers, 20 GB cache, random order (report Figs. 1, 5). GPU idle = 1 − supply / demand. Models · Loaders · CellPack
Storage trade-offs
A billion cells must be small enough to store and fast enough to read one at a time, in any order. Existing formats give up one to get the other.
STORAGE · HOW BIG IS IT
A cell-by-gene matrix stores one expression value per gene. As dense float32, one cell is 160 KB.
Illustration: 10⁹ cells × 40,000 genes × 4 bytes; 2,000 nonzeros per cell; Zarr (PCodec-8) at its pooled 4.79× ratio from the report's compression table. Chunk sizes are schematic.
STORAGE · EXISTING LOADERS
Top: bytes each loader stores per cell. Bottom: bytes it reads from storage to deliver one random cell. One square is a 4 KiB page.
Device reads per delivered cell at each loader's smallest runnable cache budget, mean of three seeds; stored bytes = corpus size / 10M cells (report Fig. 2a). Data
STORAGE · THE TRADE-OFF
A codec finds redundancy across the bytes it sees together. Put more cells in one compressed unit and the ratio rises; at one cell per unit, general-purpose codecs barely compress.
Pooled mean ratio of raw and normalized CELLxGENE matrices by cells per independently compressed unit (report Fig. 2b); read cost = k / R(k), before page and metadata overhead (report §2.2). Data
Format
Start from native CSR and change one thing at a time, each step fitted to how single-cell data looks. Measured end to end: 22.5 KB per cell becomes 2.33 KB — 9.65× smaller — and every cell still decodes on its own.
FORMAT · STEP 1
indptr locates a cell's slice in two separate arrays. With 64-bit offsets, 32-bit gene ids and 32-bit values, a cell in our sample takes 22.5 KB.
Measured on 9 CELLxGENE datasets · 147,456 cells (raw counts and normalized, 4,096-cell chunks) by re-encoding with the current writer. Data
FORMAT · STEP 2 · GENE IDS
Within a record, ids are sorted; store the difference to the previous one. A shared rANS model codes the gaps in 4.6 bits instead of 16.
Measured on 9 CELLxGENE datasets · 147,456 cells (raw counts and normalized, 4,096-cell chunks) by re-encoding with the current writer. Data
FORMAT · STEP 3 · VALUES
Expression comes from small integer counts, so even normalized values take only a handful of distinct bit patterns per cell.
Measured on 9 CELLxGENE datasets · 147,456 cells (raw counts and normalized, 4,096-cell chunks) by re-encoding with the current writer. Data
FORMAT · STEP 5 · PAGES
Laid end to end, a small record can still cross a 4 KiB page boundary — and cost two reads.
Measured on 9 CELLxGENE datasets · 147,456 cells (raw counts and normalized, 4,096-cell chunks) by re-encoding with the current writer. Data. Record sizes in the animation are illustrative.
FORMAT · THE FILE
One matrix as one stream: a 4 KiB superblock, page-aligned chunks of 4,096 cells, and a directory at the end.
Layout from the format specification. pycellpack writes H5CP (write_h5cp) and reads it lazily (read_h5).
Loader
A format is half the answer. The loader turns an access sequence into model-ready batches: it plans the cache ahead, reads asynchronously, decodes in parallel and delivers in order.
LOADER · THE LOADER
Training already knows its order: shuffled permutations, epoch after epoch. The loader receives that sequence up front. Watch one cell travel through it.
Conceptual diagram of the loader's modules; not to scale.
LOADER · CACHE POLICY
A shared LRU cache takes a lock on every access: look the page up, move it to the front, evict the tail. While one worker holds the lock, every other worker waits in line.
Simulated schedule of four workers and one frame (D = 2). LRU and no-cache figures: report Fig. 6 at a 10% budget, 32 workers, one NVMe SSD, three-run means. Measurements
LOADER · COMPILING A PLAN
Two consecutive uses of a page, at positions u and v, form a reuse interval. Keeping the page in a frame from u to v saves the read at v.
Toy sequence: 16 accesses, 2 frames, window D = 2, decided with the compiler's page rule; the worker timing is illustrative. Results: report Fig. 6, three-run means; Belady from the report's same-protocol simulation. Measurements · Simulation
LOADER · WHY ONLINE
An offline plan needs the whole access sequence in hand. For one billion cells and five epochs that is five billion cell ids: 20 GB before compiling anything.
Sequence sizes at 4 bytes per cell id. Corpus size, horizon, planner cores and first-batch time: report, billion-cell run. Host memory: DGX H200, as in chapter I.
LOADER · ONLINE PLANNING
The online compiler decides reuse only within H accesses of its frontier. A longer horizon keeps more reuse, but holds more of the sequence in memory and delays the first batch until H accesses are compiled. The billion-cell run used one epoch, so pages read in one epoch can be kept for the next.
Synthetic stream, 3 frames, D = 3, H = 12, decided with the compiler's page rule. Online and offline figures: report Fig. 6, 10% budget. Measurements
LOADER · ONE WORKER
A worker runs many lightweight coroutines, one per claimed position. It never blocks on the disk.
Illustrative schedule with typical latencies (≈180 µs per read, ≈15 µs per decode, 65% cache hits); not a measured trace.
In practice
Measured on real single-cell data — then on a billion cells, for five full epochs.
BENCHMARKS · THROUGHPUT
Cells per second delivered from CELLxGENE data in random order, on a linear scale.
Baselines: best variant per loader, one NVMe SSD, 16 workers, 20 GB cache, random order, mean over seeds (report Fig. 5). Loader data · CellPack values
BENCHMARKS · ONE BILLION CELLS
Two NVMe SSDs in RAID-0, a 1 TB cache and a plan computed online across the full billion-cell horizon. Replayed from the run's per-second log.
Per-second curves smoothed over 5 s; throughput normalized to its 5 s peak (4.0M cells/s), reads to the array's page-read ceiling, memory to the 1.89 TB limit (report Fig. 7). Data
START HERE
Benchmark values on this page are frozen results from the CellPack technical report, not new measurements of the current codebase. Format step sizes were measured on a sample of CELLxGENE chunks; loader diagrams are explanatory. Data provenance ↗