Skip to content

Add tests for Unbatchify util #8076

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

Merged
merged 1 commit into from
Apr 26, 2025

Conversation

assadyousuf
Copy link
Contributor

@assadyousuf assadyousuf commented Apr 17, 2025

Adding tests for Unbatchify util. Seemed to be the only Util missing a test



def submit(self, input_item: any) -> Future:
"""Submits an item for processing and returns a Future."""
Copy link
Contributor Author

@assadyousuf assadyousuf Apr 17, 2025

Choose a reason for hiding this comment

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

Needed to monkey patch Unbatchify.__ call __ because its a blocking call. Needed a workaround that provides a non blocking way to add items to the queue

@assadyousuf
Copy link
Contributor Author

@okhat Would love to get some eyes on this when you get a chance

@okhat okhat merged commit 44ffb3e into stanfordnlp:main Apr 26, 2025
4 checks passed
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