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

Parallelize embedding generation #85

Merged
merged 2 commits into from
Oct 22, 2023
Merged

Parallelize embedding generation #85

merged 2 commits into from
Oct 22, 2023

Conversation

vivi
Copy link
Contributor

@vivi vivi commented Oct 22, 2023

No description provided.


async def process_concurrently(archival_database, model, concurrency=10):
# Create a semaphore to limit the number of concurrent tasks
semaphore = asyncio.Semaphore(concurrency)
Copy link
Collaborator

Choose a reason for hiding this comment

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

someone cooked here

@vivi vivi requested a review from cpacker October 22, 2023 00:09
Copy link
Collaborator

@cpacker cpacker left a comment

Choose a reason for hiding this comment

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

LGTM 🍳

@cpacker cpacker merged commit 31c8d48 into main Oct 22, 2023
1 check passed
@cpacker cpacker deleted the fast-embeddings branch October 22, 2023 00:10
mattzh72 pushed a commit that referenced this pull request Oct 9, 2024
Parallelize embedding generation
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