Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable streaming of local finetuning dataset #873

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eldarkurtic
Copy link
Contributor

@eldarkurtic eldarkurtic commented Jan 15, 2024

Current path for streaming of finetuning datasets does not allow for streaming from local path (which works for text datasets out of the box and is also supported by StreamingFinetuningDataset class). Diff just updates the way local is considered when building finetuning dataloaders. It has been tested on MPT-7B finetuning from local streaming dolly_hhrlhf dataset.

@dakinggg
Copy link
Collaborator

Hey @eldarkurtic , thanks for the change! Could you please run pre-commit run --all-files locally to apply the auto formatting?

@@ -280,6 +280,11 @@ def _validate_config(dataset_cfg: DictConfig) -> None:
'Using a streaming dataset requires setting both `remote` and `local`, ' +\
'but dataset.local is None.'
)
else:
if dataset_cfg.get('split') not in os.listdir(dataset_cfg.local):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is exactly the right condition. If remote is not None, then local won't contain the split folder (yet).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Will address comments in a day or so. Thanks for the feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants