Skip to main content

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:

  1. Installing large frameworks like PyTorch or TensorFlow just for data loading is often undesirable.
  2. Grain provides a clean API, but its real-world performance can be suboptimal.
  3. 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:

  1. A pragmatic approach that prioritizes minimal memory overhead and minimal dependencies.
  2. A strong focus on single-machine training workflows.
  3. A NumPy-based implementation for excellent compatibility with JAX.
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loaderx-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loaderx-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file loaderx-0.1.0.tar.gz.

File metadata

  • Download URL: loaderx-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for loaderx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7242cab974083487773a5537fe35f877184ceee06ea7294c780357dae87ade0e
MD5 c0574cf139cd7d1b1ba6ca57036536f1
BLAKE2b-256 38f9248d5ce3244aaa7d8f4710a933a92fbfcda66585aaffd18ebc1c92d3c015

See more details on using hashes here.

File details

Details for the file loaderx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: loaderx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for loaderx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a229878af40d6eba19567b0d7c94a5ef455e7875d5fc608dcb171776a18bf6e6
MD5 e2fefa2c1915620b2c9e8a7ca519afe6
BLAKE2b-256 b876c88a74d148971ab9008d9a780c3d709f964c1f43e870a9e82d0da0097b4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page