Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

ENH Add FastTensorDataLoader for large tabular datasets - #28

Open
Chirag-agg wants to merge 1 commit into
usarfoss:mainfrom
Chirag-agg:feature/fasttensor-dataloader
Open

ENH Add FastTensorDataLoader for large tabular datasets#28
Chirag-agg wants to merge 1 commit into
usarfoss:mainfrom
Chirag-agg:feature/fasttensor-dataloader

Conversation

@Chirag-agg

@Chirag-agg Chirag-agg commented Oct 15, 2025

Copy link
Copy Markdown

#9
This pull request introduces a high-performance data loader for large tabular datasets in FastAI, inspired by hand-rolled PyTorch implementations. The FastTensorDataLoader bypasses the overhead of standard DataLoaders by directly using PyTorch tensors, enabling significantly faster data loading for very large datasets.

Key Features:

Efficient batching directly from tensors

Minimal overhead compared to standard DataLoader

Compatible with FastAI’s DataLoaders wrapper

Implementation Details:

Module: fastai/data/fast_tensor_dataloader.py

Classes:

FastTensorDataset: wraps multiple tensors as a Dataset

FastTensorDataLoader: lightweight DataLoader for tensor datasets

Unit Tests: tests/unit/data/test_fast_tensor_dataloader.py

Documentation: added usage instructions in docs/user_guide/mitigation.rst

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant