-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add interface for no postprocessing function case #3553
Conversation
Signed-off-by: Sicheng Song <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Take updates from main to pass the tests. |
common/src/main/java/org/opensearch/ml/common/utils/ModelInterfaceUtils.java
Show resolved
Hide resolved
Signed-off-by: Sicheng Song <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
"Creating preset model interface for Amazon Bedrock model with post-process function: {}", | ||
connector.getParameters().get("model") | ||
); | ||
return BEDROCK_TITAN_EMBED_TEXT_V1_MODEL_INTERFACE; |
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 am thinking this default interface is matching the processing function from the blueprint. if users register the model with their custom processing functions, then the interface is not matching, and they should write their own model interface, right?
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.
Right
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3553 +/- ##
============================================
+ Coverage 80.25% 80.32% +0.07%
- Complexity 6906 6936 +30
============================================
Files 610 610
Lines 30077 30245 +168
Branches 3368 3380 +12
============================================
+ Hits 24137 24295 +158
- Misses 4487 4489 +2
- Partials 1453 1461 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Sicheng Song <[email protected]>
Thanks @b4sjoo for addressing the model interface logic, so for the left out Jurassic model, we should also track this, when there is a predefine PostProcessingFunction for Jurassic model, similar to BedrockEmbeddingPostProcessFunction, we should add the check for the name of post processing function, then create the default interface. I will create an issue to track this. cc @ylwu-amzn |
* Add interface for no postprocessing function case Signed-off-by: Sicheng Song <[email protected]> * Correction after test Signed-off-by: Sicheng Song <[email protected]> * Make exception message clearer Signed-off-by: Sicheng Song <[email protected]> * Fix typo Signed-off-by: Sicheng Song <[email protected]> * Strictly the interface with correct post processing function Signed-off-by: Sicheng Song <[email protected]> --------- Signed-off-by: Sicheng Song <[email protected]> (cherry picked from commit f9aef70)
* Add interface for no postprocessing function case Signed-off-by: Sicheng Song <[email protected]> * Correction after test Signed-off-by: Sicheng Song <[email protected]> * Make exception message clearer Signed-off-by: Sicheng Song <[email protected]> * Fix typo Signed-off-by: Sicheng Song <[email protected]> * Strictly the interface with correct post processing function Signed-off-by: Sicheng Song <[email protected]> --------- Signed-off-by: Sicheng Song <[email protected]> (cherry picked from commit f9aef70)
Description
Add interface for no postprocessing function case
Related Issues
Resolves #3529
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.