-
Notifications
You must be signed in to change notification settings - Fork 56
[AQUA][Evaluate] Added the EvaluationServiceConfig class to manage evaluation service configurations. #940
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
[AQUA][Evaluate] Added the EvaluationServiceConfig class to manage evaluation service configurations. #940
Conversation
…res to manage evaluation service configurations.
|
|
…com/oracle/accelerated-data-science into ODSC-61883/evaluation_supported_metrics
and evaluation_target not in shape.filter.evaluation_target | ||
): | ||
continue | ||
results.append(shape) |
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.
Can this be -
key = evaluation_container or evaluation_target
if key in shape.filter.evaluation_container:
results.append(shape)
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.
Done. Having one key would not work, however i simplified a logic a bit.
class InferenceParams(Serializable): | ||
"""Contains inference-related parameters with defaults.""" | ||
|
||
inference_rps: Optional[int] = INFERENCE_RPS |
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.
Can we move these defaults to the config json? Maybe they are already part of the config json and these initial values get overwritten. Not clear from the code, hence checking.
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.
Yeah, let me do this. These defaults are placed in the config as well.
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.
Done.
|
|
…com/oracle/accelerated-data-science into ODSC-61986/evaluation_supported_shapes
|
"scikit-learn>=1.0", | ||
"tabulate>=0.8.9", | ||
"tqdm>=4.59.0", | ||
"pydantic>=2.6.3", |
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.
License needs to be added to THIRD_PARTY_LICENSES.txt?
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.
Good point, will add.
def to_json( | ||
self, | ||
uri: str = None, | ||
encoder: callable = json.JSONEncoder, |
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.
NIT: Seems to me Pydantic suggests using qmodel_dump_json()` with custom serializers.
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.
Wasn't aware of this, will take a look. Will play with this.
Description
Added the
EvaluationServiceConfig
class along with supporting structures to manage evaluation service configurations. This includes methods to merge evaluation inference parameters, retrieve model parameters based on framework and version, and filter shapes based on provided criteria. The implementation ensures flexibility and scalability for various frameworks and tasks.Dependency
This PR has a dependency on the Introduce Global Configuration for LLM Evaluation
Tests