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.2.tar.gz (4.7 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.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for loaderx-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2fa17c8ab272fac93cb72522b2588558c1e8ad49fab97c13a37bfc51601f967c
MD5 a64ee1ff03cc849e9630f486d5b53575
BLAKE2b-256 b2488d93f69a89c56410c6ff06559e637d760d17b99c43f0727f8bab0581f405

See more details on using hashes here.

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

Hashes for loaderx-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9632dffe823387d39e32986e92d757c318d60df5f35d6cb6cda8469c2da512b2
MD5 6272e847beeece8350876ff776a221bf
BLAKE2b-256 aa1f10bcff68ad1a716f209f225806b229f65b40207d4700d60e2bf4536499ab

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