Skip to content

Support setting custom eval result output dir#238

Merged
mayinghan merged 5 commits intomainfrom
persisten-dataset
Sep 30, 2025
Merged

Support setting custom eval result output dir#238
mayinghan merged 5 commits intomainfrom
persisten-dataset

Conversation

@mayinghan
Copy link
Copy Markdown
Collaborator

@mayinghan mayinghan commented Sep 30, 2025

add --ep-output-dir to support persist the eval result in jsonl format (by experiment) in a custom dir. previously they are saved in .eval_protocol folder under site-package/eval_protocol

if config.getoption("--ep-no-persist-results-jsonl"):
# flag to turn off persisting results as jsonl files
os.environ["EP_NO_PERSIST_RESULTS_JSONL"] = "1"

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.

can you ask chatgpt to come up with a better name? --ep-no-persist-results-jsonl just sounds so weird.

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.

sure sure lol

Comment on lines +84 to +88
should_upload = os.getenv("EP_NO_UPLOAD") != "1"

if should_upload:

def get_auth_value(key: str) -> str | None:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: this is a huge diff and added indentation

can you reverse condition and return early instead (e.g. if not should_upload: return)

@mayinghan mayinghan changed the title support only persisting jsonl to local but no upload Support setting custom eval result output dir Sep 30, 2025
Copy link
Copy Markdown
Collaborator

@dphuang2 dphuang2 left a comment

Choose a reason for hiding this comment

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

LGTM

@mayinghan mayinghan merged commit c09755b into main Sep 30, 2025
7 checks passed
@mayinghan mayinghan deleted the persisten-dataset branch September 30, 2025 22:39
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