Minimal data loader for Flax
Project description
loaderx
A Minimal Data Loader for Flax
Why Create loaderx?
While Flax supports multiple data-loading backends—including PyTorch, TensorFlow, Grain, and jax_dataloader—each comes with notable drawbacks:
- Installing large frameworks like PyTorch or TensorFlow just for data loading is often undesirable.
- Grain provides a clean API, but its real-world performance can be suboptimal.
- jax_dataloader defaults to using GPU memory, which may lead to inefficient memory utilization in some workflows.
Design Philosophy
loaderx is built around several core principles:
- A pragmatic approach that prioritizes minimal memory overhead and minimal dependencies.
- A strong focus on single-machine training workflows.
- A NumPy-based implementation for excellent compatibility with JAX.
- An immortal (endless) step-based data loader, rather than the traditional epoch-based design—better aligned with modern ML training practices.
Current Limitations
Currently, loaderx only supports single-host environments and does not yet support multi-host training.
Integrating with Flax
For practical integration examples, please refer to the Data2Latent repository: https://github.com/eoeair/Data2Latent
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loaderx-0.1.2.tar.gz.
File metadata
- Download URL: loaderx-0.1.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fa17c8ab272fac93cb72522b2588558c1e8ad49fab97c13a37bfc51601f967c
|
|
| MD5 |
a64ee1ff03cc849e9630f486d5b53575
|
|
| BLAKE2b-256 |
b2488d93f69a89c56410c6ff06559e637d760d17b99c43f0727f8bab0581f405
|
File details
Details for the file loaderx-0.1.2-py3-none-any.whl.
File metadata
- Download URL: loaderx-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9632dffe823387d39e32986e92d757c318d60df5f35d6cb6cda8469c2da512b2
|
|
| MD5 |
6272e847beeece8350876ff776a221bf
|
|
| BLAKE2b-256 |
aa1f10bcff68ad1a716f209f225806b229f65b40207d4700d60e2bf4536499ab
|