Skip to content

Conversation

kaisopos
Copy link
Contributor

@kaisopos kaisopos commented Jun 19, 2025

Description

Judge API V2: Merge Judge and Inference configs

  • Before: 2 configs: JudgeConfig and InferenceConfig
  • After: 1 config: JudgeConfig consisting of:
      1. JudgeParams (the JudgeConfig from before)
      1. InferenceConfig

Related issues

Towards OPE-1327

Before submitting

  • This PR only changes documentation. (You can ignore the following checks in that case)
  • Did you read the contributor guideline Pull Request guidelines?
  • Did you link the issue(s) related to this PR in the section above?
  • Did you add / update tests where needed?

Reviewers

At least one review from a member of oumi-ai/oumi-staff is required.

@kaisopos kaisopos requested review from oelachqar, wizeng23 and taenin and removed request for oelachqar June 19, 2025 20:16
@@ -76,37 +77,37 @@ class SimpleJudge(BaseJudge):
def __init__(
self,
judge_config: Union[JudgeConfig, str],
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason why you use this Union type everywhere? This isn't a pattern we have for any other CLI verb. Could you not just instantiate a judge_config from the path in the very beginning of the code, and pass around a JudgeConfig within the code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMO, CLI should not be the only entry point to the judge code. For some cases, instantiating a SimpleJudge might be preferable and more flexible. Our 2 V1 notebooks as well showcase this: 1, 2.

So, when instantiating a SimpleJudge, I still want to be able to point to a default ("built-in") judge, rather than always having to construct a config object

@wizeng23
Copy link
Contributor

Overall LGTM for readability. Please wait for another approval from someone with context.

@kaisopos kaisopos merged commit 5ced77a into main Jun 21, 2025
5 checks passed
@kaisopos kaisopos deleted the kostas/judge_v2_config_merge branch June 21, 2025 09:55
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