-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Support all iterator modes for fit/validate/test/predict #16830
Comments
I am migrating my code to PL 2 and it seems that for the val dataloader getting a batch to be of the form {"key_a": batch_dataloader_a, "key_b": batch_dataloader_b} is not implemented in PL 2 yet. Here my old code as a reference:
|
I really wish there was |
Unfortunately, I dont have bandwidth to work on this now. If somebody wants to try, I can help getting the PR merged. |
Me too! Is there any release timeline / nightly version with this supported? I can't use lightning without this and really would like to leverage its other features! |
Ditto! FYI for others pulling nightly will get the feature: #17163 |
Thanks! I also need this great feature. |
+1, please release this feature asap! |
Is this feature currently worked on? |
As far as I know, nobody is currently working on it, Lukas |
I would also really like this feature. I use CombinedDataloader to encapsulate modality-specific Dataloaders to recycle modalities with fewer data than our largest modality. For this reason, I use CombinedDatloader with "max_size_cycle"/"min_cycle" for train/validation and would like to be able for predict as well. Thanks for considering it! |
Description & Motivation
trainer.fit
only works withCombinedLoader(..., mode="max_size_cycle"|"min_size")
trainer.{validate,test,predict}
only works withCombinedLoader(..., mode="sequential")
This constraint is checked in the top-level loops:
https://github.com/Lightning-AI/lightning/blob/0009cde1db1a9ab4e2f1e0a9f69a4affb59d5134/src/lightning/pytorch/loops/fit_loop.py#L351-L354
https://github.com/Lightning-AI/lightning/blob/0009cde1db1a9ab4e2f1e0a9f69a4affb59d5134/src/lightning/pytorch/loops/evaluation_loop.py#L182-L183
Pitch
Have all trainer functions support all modes
TODO:
CombinedLoader
modes during evaluation #17163)Alternatives
Not do it
Additional context
This builds on top of #16726
cc @Borda @justusschock @awaelchli
The text was updated successfully, but these errors were encountered: