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.1.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.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: loaderx-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 682fab28fe3fb3704892779ba84137a1df329129442232a81e968b265185c8bb
MD5 5a03820b8a9db595a5269ada3a8d9062
BLAKE2b-256 9ba15ca53418be31983cbf6daeb541aac2a9ecdc4830779b3e9f1de2ce04ebfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: loaderx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 122efbfe09a6ab270e9d640dd3bd58b0917d4c55911b02b399b2cccbb128ed91
MD5 c086a5c822b3300662fdbe0f8fa76104
BLAKE2b-256 2004c6f196e9c7deca160d01cbc8ca0fa304e054bc2f675468612da3ec933802

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