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

Automatically get the portion of the dataset config that is constructor args #1434

Merged
merged 14 commits into from
Aug 7, 2024

Conversation

dakinggg
Copy link
Collaborator

@dakinggg dakinggg commented Aug 7, 2024

Incremental improvement to remove the hardcoding of some of the dataset config keys in the validation function.
(1) Makes the streaming constructor class of the dataset constructor a property so that it can be accessed on the class and/or overridden
(2) Removes the dataset constructor args from the hardcoded validation list and uses inspect to get them dynamically instead
(3) Makes the allowed keys an arg to the validation function to give the caller more control

TODO:

  • Run the regression tests against this PR

Copy link
Contributor

@b-chu b-chu left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

llmfoundry/data/finetuning/tasks.py Show resolved Hide resolved
llmfoundry/data/finetuning/dataloader.py Show resolved Hide resolved
llmfoundry/data/finetuning/dataloader.py Outdated Show resolved Hide resolved
@dakinggg dakinggg marked this pull request as ready for review August 7, 2024 16:45
@dakinggg dakinggg requested a review from a team as a code owner August 7, 2024 16:45
@dakinggg dakinggg requested a review from b-chu August 7, 2024 17:17
Copy link
Contributor

@b-chu b-chu left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

llmfoundry/data/finetuning/tasks.py Show resolved Hide resolved
llmfoundry/data/finetuning/dataloader.py Outdated Show resolved Hide resolved
@dakinggg dakinggg merged commit 84cb2ed into mosaicml:main Aug 7, 2024
9 checks passed
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