[ML] Start and stop model deployments#70713
Merged
dimitris-athanasiou merged 7 commits intoelastic:feature/pytorch-inferencefrom Mar 29, 2021
Merged
Conversation
Collaborator
|
Pinging @elastic/ml-core (Team:ML) |
davidkyle
approved these changes
Mar 24, 2021
| } | ||
|
|
||
| public void setTimeout(TimeValue timeout) { | ||
| this.timeout = timeout; |
Member
There was a problem hiding this comment.
Suggested change
| this.timeout = timeout; | |
| this.timeout = ExceptionsHelper.requireNonNull(timeout, TIMEOUT); |
|
|
||
| public static class TaskParams implements PersistentTaskParams { | ||
|
|
||
| public static final Version VERSION_INTRODUCED = Version.V_7_13_0; |
Contributor
Author
There was a problem hiding this comment.
Will change to 8 and we see :-)
| listener.onResponse(new StopTrainedModelDeploymentAction.Response(true)); | ||
| return; | ||
| } | ||
| if (models.size() > 1) { |
Member
There was a problem hiding this comment.
In future we may have more than one model config using the deployment. I might be that we don't do the GetTrainedModelsAction here and just look for persistent tasks that match the model ID
Contributor
Author
There was a problem hiding this comment.
Agreed. That's how we typically implement stop actions where we handle stopping multiple tasks at once. Just thought this was simpler for now.
| } | ||
|
|
||
| private void doStartDeployment(TrainedModelDeploymentTask task) { | ||
| logger.info("[{}] Starting model deployment", task.getModelId()); |
Member
There was a problem hiding this comment.
Suggested change
| logger.info("[{}] Starting model deployment", task.getModelId()); | |
| logger.debug("[{}] Starting model deployment", task.getModelId()); |
davidkyle
added a commit
that referenced
this pull request
Jun 3, 2021
The feature branch contains changes to configure PyTorch models with a TrainedModelConfig and defines a format to store the binary models. The _start and _stop deployment actions control the model lifecycle and the model can be directly evaluated with the _infer endpoint. 2 Types of NLP tasks are supported: Named Entity Recognition and Fill Mask. The feature branch consists of these PRs: #73523, #72218, #71679 #71323, #71035, #71177, #70713
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.