google/grain
Library for reading and processing ML training data.
What it solves
Grain provides a fast, flexible, and deterministic way to read and process data for training and evaluating machine learning models, specifically optimized for JAX models but compatible with other frameworks.
How it works
It uses a declarative Python API to define data processing pipelines. Users can chain operations such as shuffling, mapping, and batching to prepare their datasets for training steps.
Who it’s for
Developers and researchers working with JAX models who need a reliable and high-performance data loading pipeline, though it can be used with any ML framework.
Highlights
- Deterministic processing: Ensures reproducibility in data loading.
- Declarative API: Simplifies the definition of data processing steps.
- JAX-optimized: Designed specifically for JAX but remains framework-agnostic.
- CPU-based transformations: Processing is handled on the CPU by default.
Related
- Project
jax-ml/jaxJAX is a Python library for high‑performance, accelerator‑aware numerical computing. It adds composable transformations—automatic differentiation (`grad`), just‑in‑time compilation (`jit`), and auto‑vectorisation (`vmap`)—to NumPy code, and provides parallel‑execution APIs for scaling across many GPUs/TPUs. Install via pip (CPU, CUDA, TPU, ROCm, etc.) and cite the project if used in research.
- Project
dfm/tinygpA lightweight Gaussian Process library built on JAX that supports GPU acceleration and automatic differentiation.
- Project
patrick-kidger/lineaxA JAX library for linear solves and linear least squares, providing numerically stable routines for solving linear systems, including support for linear operators and GPU/TPU acceleration.
- Project
StanfordASL/fraxfrax is a high-performance Python library built on JAX that provides fast robot kinematics and dynamics, enabling developers to easily design complex controllers using automatic differentiation.
- Project
google/seqioA library for processing sequential data that provides a unified framework for task-based datasets, preprocessing, and evaluation for sequence models.