Skip to content

support parameter override#227

Merged
mayinghan merged 7 commits intomainfrom
pytest-plugin-replacement
Sep 30, 2025
Merged

support parameter override#227
mayinghan merged 7 commits intomainfrom
pytest-plugin-replacement

Conversation

@mayinghan
Copy link
Copy Markdown
Collaborator

@mayinghan mayinghan commented Sep 26, 2025

Add runtime override option for several evaluator input params:

  1. --ep-jsonl-path : this will override the source input to a single jsonl data loader that convert each row into a EvaluationRow. One restriction here is no more process_fn will be loaded in the new DynamicDataloader, so people need to have their jsonl dataset ready to go.
  2. --ep-completion-params: accept json strings that will completely overwrite completion_params inside the code. I think we should deprecate --ep-input-param after this, the parameter merging is very confusing and hard to get right.
  3. Override RemoteRolloutProcessor's base url through env var EP_REMOTE_ROLLOUT_PROCESSOR_BASE_URL. this config is very specific to one type of rollout processor, so didnt make it as a flag in pytest plugin.

@mayinghan mayinghan changed the title support parameter overwrite support parameter override Sep 26, 2025
Comment on lines +198 to +203
# dataloader might be overridden here, to avoid conflict, manually unset other data input params
if data_loaders:
input_dataset = None
input_messages = None
input_rows = None

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

probably throwing an exception is better

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

data_loader could be set by "--ep-jsonl-path" extra flag here, i think we should just ignore user's original passed in stuff instead of throw an exception? if throw error here, user need to change their code to use the override flag then

@mayinghan mayinghan merged commit 495ff63 into main Sep 30, 2025
6 checks passed
@mayinghan mayinghan deleted the pytest-plugin-replacement branch September 30, 2025 06: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.

2 participants