-
Notifications
You must be signed in to change notification settings - Fork 530
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
Make FinetuningStreamingDataset parameters more flexible #1580
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deferring to @dakinggg , my intuition is there is some way of programmatically inspecting the streaming arguments and that this is preferable to hardcoding streams
, packing_ratio
, etc. as acceptable streaming arguments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Refactor build_text_dataloader and build_finetuning_dataloader to make them more flexible in terms of accepting extra keys used by StreamingDataset. The rest behavior should stay the same. For example, if the supplied extra keys to the dataloader are not defined in StreamingDataset, a normal TypeError is still expected to be thrown.