-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor regressions #1671
Refactor regressions #1671
Conversation
lintool
commented
Oct 6, 2023
•
edited
Loading
edited
- "threads" and "batch-size" parameters:
- consistent formatting
- settable externally in code (rather than hard-coded in yaml)
- better logging information for running times
- run_jobs_with_load.py won't spawn too many concurrent jobs, configurable parameter.
…i into regression-refactoring
@jasper-xian @ronakice this PR is ready for review now. Just a quick sanity check is sufficient, I've run the following and they pass; I'll run again from scratch after merge.
|
import yaml | ||
|
||
from ._base import run_eval_and_return_metric, ok_str, fail_str | ||
|
||
dense_threads = 16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might make more sense to move these constants into pyserini/2cr/base
since they're reused a bunch. Your call though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, this looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking that I might want the ability to control on a per-regression basis, so I'll keep separate?
Please +1 the review so I can merge? Thanks!