meta-pytorch / meta-pytorch/data
Improve AsyncIODataPipe
Open
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_mapwithout the need to specifybatch.
Motivation, pitch
Improve performance, reliability, functionality.
Alternatives
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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