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

Addressing concurrency issues #105

Merged
merged 20 commits into from
Mar 15, 2025
Merged

Addressing concurrency issues #105

merged 20 commits into from
Mar 15, 2025

Conversation

safooray
Copy link
Collaborator

1- passes the max_workers argument to ThreadPoolExecutor to enable large number of threads
2- Removes asyncio usage, solely relies on ThreadPoolExecutor for simplicity.
3- Passes a separate instance of Model to each thread for data safety, even though through extensive testing I was not able to produce any data corruption issues.

Copy link
Collaborator

@michaelharrisonmai michaelharrisonmai left a comment

Choose a reason for hiding this comment

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

There is one more self.model_output and self.response_time which should be changed in the LLaVAHuggingFaceModel

@safooray safooray merged commit 9bfdcd3 into main Mar 15, 2025
6 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