meta-pytorch / meta-pytorch/data

Improve AsyncIODataPipe

Open
#1,155 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.3k
Forks
179
Avg merge
6d 1h
Merged PRs (30d)
2

Description

🚀 The feature

A few improvements can be achieved for AsyncIODataPipe:

  • Make it working properly with nested_async
  • Constantly fetching rather than fetching batch per batch
    with closing(nested_async.prefetch_sequence(datapipe, self.max_prefetch)) as seq:
  • Align the API with threadpool_map without the need to specify batch.
Motivation, pitch

Improve performance, reliability, functionality.

Alternatives

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating AsyncIODataPipe and reviewing how nested_async.prefetch_sequence(datapipe, self.max_prefetch) is used. Compare its API and fetching behavior with threadpool_map, then verify that nested_async works, fetching remains continuous rather than batch-based, and batch is no longer required.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.