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 generator progress bar #337

Merged
merged 15 commits into from
Sep 8, 2023
Merged

Fix generator progress bar #337

merged 15 commits into from
Sep 8, 2023

Conversation

neubig
Copy link
Collaborator

@neubig neubig commented Sep 8, 2023

Description

The generator progress bar was broken, making it look like progress was faster than it actually was.

References

Blocked by

@zhaochenyang20
Copy link
Collaborator

I have once encountered this. Just use p.update(len - p.t) fix it 🤔

@neubig
Copy link
Collaborator Author

neubig commented Sep 8, 2023

Yeah, that's basically what this PR does. You can see the diff here: https://github.com/neulab/prompt2model/compare/refactor_dataset_generator..fix_generator_progress_bar

@viswavi
Copy link
Collaborator

viswavi commented Sep 8, 2023

@neubig do you need to re-merge main into this branch? It says there are 1k lines added which seems wrong from the description of this PR.

@neubig
Copy link
Collaborator Author

neubig commented Sep 8, 2023

This builds of 335 and 336 so they should be reviewed first, but you can also look at the diff that I posted above too

@zhaochenyang20 zhaochenyang20 changed the base branch from main to use_cached_dataset_retriever September 8, 2023 03:07
Copy link
Collaborator

@zhaochenyang20 zhaochenyang20 left a comment

Choose a reason for hiding this comment

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

Cool!

Copy link
Collaborator

@viswavi viswavi left a comment

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from use_cached_dataset_retriever to main September 8, 2023 14:38
@neubig neubig enabled auto-merge (squash) September 8, 2023 14:40
@neubig neubig merged commit 282cc87 into main Sep 8, 2023
8 checks passed
@neubig neubig deleted the fix_generator_progress_bar branch September 8, 2023 14:47
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.

DatasetGenerator doesn't stop generating?
3 participants