Skip to content

Conversation

@steven10a
Copy link
Collaborator

Small change to the eval tool.

  • When benchmarking with multiple models, they now all run in parallel instead of sequentially
  • Added new tests

Copilot AI review requested due to automatic review settings November 18, 2025 15:03
Copilot finished reviewing on behalf of steven10a November 18, 2025 15:13
Copy link

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 enhances the guardrail evaluation tool to run model benchmarks in parallel rather than sequentially, significantly improving performance when testing multiple models. The changes introduce concurrency controls and chunking capabilities for better resource management during benchmarking.

Key Changes:

  • Models now run concurrently during benchmarking, controlled by a semaphore with configurable parallelism limits
  • Added optional sample chunking to break up large benchmark runs into smaller pieces
  • Enhanced structured logging throughout the benchmark process with timing information
  • Added comprehensive unit tests for the new parallel execution and chunking functionality

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/guardrails/evals/guardrail_evals.py Implemented parallel model execution with asyncio.Semaphore, added chunk_samples method, enhanced logging with structured events and timing, added CLI arguments for controlling parallelism
tests/unit/evals/test_guardrail_evals.py New test file with unit tests covering parallel model limit determination and sample chunking functionality

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

@steven10a steven10a requested a review from Copilot November 18, 2025 16:16
Copilot finished reviewing on behalf of steven10a November 18, 2025 16:17
Copy link

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


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

@steven10a steven10a requested a review from Copilot November 18, 2025 16:35
Copilot finished reviewing on behalf of steven10a November 18, 2025 16:38
Copy link

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


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

@steven10a
Copy link
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Copy link
Collaborator

@gabor-openai gabor-openai left a comment

Choose a reason for hiding this comment

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

TY

@gabor-openai gabor-openai merged commit 967337c into main Nov 19, 2025
9 checks passed
@gabor-openai gabor-openai deleted the dev/steven/parallel_eval branch November 19, 2025 18:07
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.

3 participants