Skip to content

fix: add num workers arg to evalaute command#2

Merged
dogeggz merged 2 commits intomainfrom
fix/eval
Jan 23, 2026
Merged

fix: add num workers arg to evalaute command#2
dogeggz merged 2 commits intomainfrom
fix/eval

Conversation

@dogeggz
Copy link
Copy Markdown
Collaborator

@dogeggz dogeggz commented Jan 23, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds configurable concurrency control to the evaluation script to prevent issues like “Too many open files” by limiting concurrent evaluation requests.

Changes:

  • Updated evaluate_sample to accept an asyncio.Semaphore and run its body within an async with block to cap concurrent evaluation calls.
  • Extended the CLI in main() with a --num-workers argument and used it to construct a semaphore that limits the number of evaluate_sample tasks running at once.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/evaluate.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@dogeggz dogeggz merged commit c6a0f45 into main Jan 23, 2026
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