Realm
A city of illuminated compute pathways representing the OA Data module

Data into models.
Contracts intact.

From sample to model. Every boundary explicit.

Index, partition, collate, and iterate through one deterministic contract. Batches stay OA matrices when they enter training.

A dense city of illuminated data pathways viewed from above

Indexed samples

Datasets expose stable size and indexed retrieval; each sample carries an input Matrix and an optional target Matrix.

An interconnected city seen from above the Earth

Seeded partitions

Explicit seeds produce reproducible shuffle order and train, validation, and test splits.

A symmetrical compute room with server racks and a central illuminated structure

Checked batches

Collation stacks samples only when their shapes, dtypes, storage, and target presence agree.

A tree surrounded by fine data visualizations in a dark gallery

Model ready values

DataLoader yields deterministic batches as ordinary OA matrices ready for the Ml path.

Small enough to understand. Complete enough to train.

OA Data owns deterministic dataset composition and batch iteration. Domain transforms stay with Vision, Audio, and Ml; device execution remains with the shared runtime.

Dataset and Sample

Datasets expose indexed retrieval and stable size. Each sample carries an input Matrix and an optional target Matrix without creating another tensor type.

Seeded split and shuffle

oa::data::shuffle and random_split produce reproducible index orders and dataset partitions from explicit seeds.

Zero copy subsets

Subset owns only an index list and borrows the parent dataset’s sample storage.

Checked collation

Samples stack along a leading batch dimension only when shape, dtype, storage, and target presence agree.

Deterministic iteration

DataLoader owns batch order, batch size, seeded shuffling, drop last behavior, epoch reset, and current batch state.

Native training values

Batches remain OA matrices and enter the Ml path directly, preserving the same device and execution contract as the model.

Prepare batches ahead of device work.

Use DataLoader for synchronous matrix batches or PrefetchDataLoader to overlap host preparation with training. The consuming thread owns the upload and its runtime.

Indexed host samples

HostDataset lets a worker retrieve host samples by index without sharing the Vulkan runtime across threads.

Bounded prefetch

PrefetchDataLoader uses one worker and a bounded queue to prepare host batches in the seeded epoch order.

Explicit device upload

next_batch returns a host batch. next_batch_on also uploads the batch through the runtime on the consuming thread.

Dataset packs

The separate Oa Datasets project provides content addressed dataset packs and loaders for OA.

One library. Across the stack.

Follow the same runtime and semantic values into another module.