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

Fix for ZeRO stage 3 prefetch queue #1849

Closed
wants to merge 4 commits into from

Conversation

mrwyattii
Copy link
Contributor

Fix to bug found while addressing #1795

@@ -350,7 +350,7 @@ def fetch_sub_module(self, current_submodule: Module) -> None:
params_to_fetch))
while self.__param_queue and len(discarded_from_prefetch_queue) < len(
params_not_already_fetched):
param_in_trace = self.__param_queue.popleft()
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you seeing some failure with this code? Please take a look at this description.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @tjruwase - yes I am seeing a bug introduced in #1453 that triggers this Runtime Error for some models

@mrwyattii mrwyattii changed the title Fix for ZeRO stage 3 queue prefetch queue Fix for ZeRO stage 3 prefetch queue Mar 23, 2022
@mrwyattii mrwyattii closed this Apr 20, 2022
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