meta-pytorch / meta-pytorch/data

Enable Append Mode in SaverIterDataPipe

Open
#1,270 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

🚀 The feature

Currently, Saver only allows write mode and only users to choose byte vs text mode. It might be useful to allow the flexibility to append to an existing file.

Motivation, pitch

Allowing the flexibility to append could be useful for building data pipes that can enable large scale transformations on original dataset like tokenizing, randomizing and/or splitting across training and evaluation.

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 the SaverIterDataPipe implementation and its existing tests in the repository. Read how write mode and byte-versus-text mode are selected, then define append mode for existing files while preserving those options. Done means append behavior is covered by tests for the supported modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.