Skip to content

Parallelize LLM as Judge #3958

Closed
Closed

Description

@allenli873

Is your feature request related to a problem? Please describe.
Right now, LLM as judge is run in series. This is N * M LLM calls in series, where N is # samples and M is # eval cases. This part can take a long time.

Describe the solution you'd like
I would like it to be possible for these to run in parallel, either by default or via a flag that can be passed into the agent evaluator.

Additional context
I've done a monkey patch of this in my own project. Before it took close to 5 minutes for me to eval one test case with 5 samples & 2 different rubric numbers with gemini 3 pro. After the patch it was down to 1 minute.

Activity

  1. added
    eval[Component] This issue is related to evaluation
    on Dec 18, 2025
  2. added theissue type on Dec 18, 2025
  3. maheshwaritanay commented on Dec 18, 2025

    @maheshwaritanay

    Could you share the monkey patch please

  4. llalitkumarrr commented on Mar 24, 2026

    @llalitkumarrr
    Collaborator

    Hello @allenli873 ,

    Thank you for reporting this issue. Would you be willing to submit a PR for it? We always appreciate contributions from the community.

  5. added
    needs review[Status] The PR/issue is awaiting review from the maintainer
    on Mar 24, 2026
  6. yugborana commented on Mar 27, 2026

    @yugborana

    @llalitkumarrr i would like to work on this issue

  7. llalitkumarrr commented on Mar 30, 2026

    @llalitkumarrr
    Collaborator

    Hello @yugborana ,

    Thank you for your interest. We always welcome community contributions so please feel free to open a PR.

  8. yugborana commented on Mar 30, 2026

    @yugborana

    @llalitkumarrr for time being please check this pr #5040

  9. GWeale commented on Aug 28, 2026

    @GWeale
    Collaborator

    fixed in v2.8.0, llm_as_judge gathers the samples under asyncio.gather bounded by judge_model_options.parallelism_limit. heads up it still defaults to 1, so you get no speedup until you set it. v2 only, not on 1.x. reopen if you want the default itself changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

eval[Component] This issue is related to evaluationneeds review[Status] The PR/issue is awaiting review from the maintainer

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions