Oa Datasets
Content-addressed dataset packs for OA. Manifests in code, payloads in cache, samples on the GPU.

The pack contract
Every loader carries its pack manifest compiled into the binary: name, version, upstream mirrors, exact byte size, and a SHAKE256-256 digest per member, the way tfds keeps checksums in code. Payloads are fetched into the oads cache on first load, verified, and uploaded to oa::Matrix; they are never committed to git.
Fetch
Verify
Decode
Load
Install and load
The Cargo package is oadsrust, the library namespace is oads, and the Python distribution is oadspython. Both carry the same loader contract: fetch, verify, decode, and upload run in Rust.
Cargo.toml
1[dependencies]2oadsrust = "0.5"3
python -m pip install oadspython
Engineless load resolves the calling thread's default engine;*_on variants such as Mnist::load_on(&engine, &config) pin an explicit one.
1use oa::data::collate;2use oads::{Mnist, MnistConfig};34// Uploads on this thread's default engine (oa::Runtime::current()).5let dataset = Mnist::load(&MnistConfig::default())?;6assert_eq!(dataset.images().shape(), &[60_000, 1, 28, 28]);78let batch = collate(&[dataset.get_sample(0)?, dataset.get_sample(1)?])?;9assert_eq!(batch.x.shape(), &[2, 1, 28, 28]);10
Detection packs
Voc2007, Voc2012, Kitti, Coco, andWiderFace trade the resident label matrix for a resident [T, 5] box matrix: one [x1, y1, x2, y2, class] F32 row per object plus an [N + 1] offsets vector. Images stay on disk and decode lazily; get_sample(i) returns the[3, H, W] image and a [K, 5] device slice of the shared box storage. Unlabeled splits index with [0, 5] box ranges.
Streaming decode
The corpora are larger than workstation memory by design, so decoders stream archive members rather than materializing them. count-bounded decodes stop the archive walk early.
| Pack | Workload | Buffered decode | Streaming decode |
|---|---|---|---|
cfq | 4.8 GiB member | OOM-killed at ≥9.5 GiB RSS | 1.0 GiB peak · 262 s |
math_dataset | ~10M rows | three archive passes | 8,192 rows in 0.43 s |
lm1b | 1.8 GiB → ~17 GiB F32 | full materialization OOM | 100,000 sentences in 0.94 s |
xsum | 226k members | every member buffered | 4,096 documents in 1.21 s |
trivia_qa | 438k members | every member buffered | zero-allocation skips · 137.65 s |