-
Notifications
You must be signed in to change notification settings - Fork 7
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 offline ER us total batch size in first update #381
Conversation
Coverage reportThe coverage rate went from
Diff Coverage details (click to unfold)src/renate/updaters/experimental/offline_er.py
|
@@ -83,6 +84,21 @@ def train_dataloader(self) -> DataLoader: | |||
pin_memory=True, | |||
collate_fn=self._train_collate_fn, | |||
) | |||
else: | |||
# Manually create a dataloader for the current task with total batch size. |
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.
Can we reuse the code instead of overriding it?
self._batch_size += self._memory_batch_size
loaders["current_task"] = super().train_dataloader()
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 can do something like that if you prefer it. We would have to undo the change after creating the data loader though.
Offline ER currently uses only
batch_size
in the first model update. This PR makes it usebatch_size + memory_batch_size
to be comparable to joint training, et cetera.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.