Skip to content

Conversation

hendrikmuhs
Copy link

@hendrikmuhs hendrikmuhs commented Apr 17, 2023

This PR enables downloading packaged models from ml-models.elastic.co, an endpoint provided by Elastic. Elastic provided models begin with a ., which is a private namespace that does not interfere with user models(the . prefix is disallowed for them). If a user puts a packaged model, the model gets automatically downloaded. For air-gapped environments it is possible to load models from a file.

earlier changes: #95175, #95207

@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Apr 17, 2023
@elasticsearchmachine
Copy link
Collaborator

Hi @hendrikmuhs, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

private void triggerModelFetchIfNecessary(
String modelId,
ModelPackageConfig modelPackageConfig,
boolean waitForCompletion,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waitForCompletion still misses some parts in the package loader code. I will do them in a separate PR.

@hendrikmuhs
Copy link
Author

@elasticmachine update branch

Copy link

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if you could change the release note.

Also one non-essential suggestion about the tests.

Hendrik Muhs and others added 2 commits April 17, 2023 17:18
Co-authored-by: David Roberts <dave.roberts@elastic.co>
@hendrikmuhs hendrikmuhs added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Apr 17, 2023
Co-authored-by: David Kyle <david.kyle@elastic.co>
@hendrikmuhs
Copy link
Author

@elasticmachine update branch

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >enhancement :ml Machine learning Team:ML Meta label for the ML team v8.8.0

5 participants