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

[Backport 2.x] Fixes #2317 predict api not working with asymmetric models #2359

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 8425a65 from #2318

* Fixes #2317 predict api not working with asymmetric models

Signed-off-by: br3no <breno@veltefaria.de>

* Adding unit test code path for the parsing of the parameter.

Signed-off-by: br3no <breno@veltefaria.de>

* Removing involuntary import of guava

Signed-off-by: br3no <breno@veltefaria.de>

* Refactor package of AsymmetricTextEmbeddingParameters

The MLCommonsClassLoader expects all MLAlgoParameters to be in the
"org.opensearch.ml.common.input.parameter" package.

Signed-off-by: br3no <breno@veltefaria.de>

* fixing unit test after package refactoring

Signed-off-by: br3no <breno@veltefaria.de>

---------

Signed-off-by: br3no <breno@veltefaria.de>
(cherry picked from commit 8425a65)
@dhrubo-os
Copy link
Collaborator

@br3no for the next time, please make sure your email address is public, so that backport PRs doesn't fail with DCO like this time...

@ylwu-amzn
Copy link
Collaborator

Manually set DCO as passed

@ylwu-amzn ylwu-amzn merged commit db69cab into 2.x Apr 25, 2024
11 checks passed
@github-actions github-actions bot deleted the backport/backport-2318-to-2.x branch April 25, 2024 04:58
dhrubo-os pushed a commit to dhrubo-os/ml-commons that referenced this pull request May 17, 2024
… models (opensearch-project#2318) (opensearch-project#2359)

* Fixes opensearch-project#2317 predict api not working with asymmetric models

Signed-off-by: br3no <breno@veltefaria.de>

* Adding unit test code path for the parsing of the parameter.

Signed-off-by: br3no <breno@veltefaria.de>

* Removing involuntary import of guava

Signed-off-by: br3no <breno@veltefaria.de>

* Refactor package of AsymmetricTextEmbeddingParameters

The MLCommonsClassLoader expects all MLAlgoParameters to be in the
"org.opensearch.ml.common.input.parameter" package.

Signed-off-by: br3no <breno@veltefaria.de>

* fixing unit test after package refactoring

Signed-off-by: br3no <breno@veltefaria.de>

---------

Signed-off-by: br3no <breno@veltefaria.de>
(cherry picked from commit 8425a65)

Co-authored-by: Breno Faria <breno@veltefaria.de>
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