-
Notifications
You must be signed in to change notification settings - Fork 172
Dont require unused dataloaders #179
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
Dont require unused dataloaders #179
Conversation
Remove eval dataloaders from configs
Remove train dataloaders (except for unsupervised experiments).
Remove unneeded import
Remove unneeded import
Remove train dataloader and unneeded import
Remove train dataloaders
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.
I'm not a reviewer, but I was curious, and this looks great, thank you.
suggestion: I suggest this should be a feat:
commit (which introduces a new feature to the codebase, the feature of not having to specify extraneous things; you can make it a feat:
commit by prefixing the commit message with feat:
; more on this suggested commit prefix here).
Thanks @tristanls! I wasn't aware of this convention. If I'm understanding it correctly, only the commit that introduced the change (in |
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.
Beautiful, thanks for making this change!
@scottcanoe, the convention is a suggestion. We don't enforce it here. But, if we were to follow it, then every commit would get a prefix. For a commit like this, out of |
I know it's already been merged but just wanted to say this is a really nice change! Thanks for adding :) |
This PR removes the need to specify unused data loader classes and args in experiment configs.
Motivation
Monty experiment configs currently require specifying both training and eval data loaders, regardless of whether both are needed. This means we end up with loads of lines like
or
This adds clutter and may also be misleading, especially to newcomers. This is a small PR that improves quality of life and allows us to write cleaner, less confusing experiment configs.
Changes
MontyExperiment.load_dataset_and_dataloaders
was modified such that an eval or train dataloaders will only be initialized if the experiment config requires it.