Skip to content
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

Support for custom evaluators #1275

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Support for custom evaluators #1275

merged 1 commit into from
Aug 8, 2024

Conversation

shaahji
Copy link
Contributor

@shaahji shaahji commented Aug 2, 2024

Support for custom evaluators

  • Move evaluation registration out of OliveEvaluator into its own class
  • Evaluators are registered using both the Framework and the class name
  • Add "type", "type_args", "user_script" and "script_dir" to OliveEvaluationConfig to support user specific custom implementation
  • Remove some dead code

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.
  • Is this PR including examples changes? If yes, please remember to update example documentation in a follow-up PR.

(Optional) Issue link

olive/evaluator/olive_evaluator.py Fixed Show resolved Hide resolved
olive/workflows/run/run.py Fixed Show resolved Hide resolved
@xiaoyu-work
Copy link
Contributor

Overall this looks good to me. Can you please fix the tests and Github warnings? Can you also add a documentation about how to use custom evaluators for advanced users?

@shaahji shaahji force-pushed the shaahji/evalreg branch 4 times, most recently from 1bbaa9d to cc73974 Compare August 8, 2024 18:01
* Move evaluation registration out of OliveEvaluator into its own class
* Evaluators are registered using both the Framework and the class name
* Add "type", "type_args", "user_script" and "script_dir" to
  OliveEvaluationConfig to support user specific custom implementation
* Remove some dead code
@shaahji shaahji merged commit 7b4cefe into main Aug 8, 2024
31 checks passed
@shaahji shaahji deleted the shaahji/evalreg branch August 8, 2024 23:33
DavitGrigoryan132 pushed a commit to DavitGrigoryan132/Olive that referenced this pull request Aug 14, 2024
## Support for custom evaluators

* Move evaluation registration out of OliveEvaluator into its own class
* Evaluators are registered using both the Framework and the class name
* Add "type", "type_args", "user_script" and "script_dir" to
OliveEvaluationConfig to support user specific custom implementation
* Remove some dead code

## Checklist before requesting a review
- [x] Add unit tests for this change.
- [x] Make sure all tests can pass.
- [ ] Update documents if necessary.
- [x] Lint and apply fixes to your code by running `lintrunner -a`
- [ ] Is this a user-facing change? If yes, give a description of this
change to be included in the release notes.
- [ ] Is this PR including examples changes? If yes, please remember to
update [example
documentation](https://github.com/microsoft/Olive/blob/main/docs/source/examples.md)
in a follow-up PR.

## (Optional) Issue link
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