Skip to content
Snippets Groups Projects
Commit d4c7a8c5 authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Bastien Abadie
Browse files

Expose model configuration on publish_model

parent 242b03cb
No related branches found
No related tags found
1 merge request!268Expose model configuration on publish_model
Pipeline #79903 passed
......@@ -98,6 +98,7 @@ class TrainingMixin(object):
model_id: str,
tag: Optional[str] = None,
description: Optional[str] = None,
configuration: Optional[dict] = {},
):
"""
This method creates a model archive and its associated hash,
......@@ -105,8 +106,9 @@ class TrainingMixin(object):
:param model_path: Path to the directory containing the model version's files.
:param model_id: ID of the model
:param tag:
:param description:
:param tag: Tag of the model version
:param description: Description of the model version
:param configuration: Configuration of the model version
"""
if self.is_read_only:
......@@ -140,7 +142,7 @@ class TrainingMixin(object):
# Update the model version with state, configuration parsed, tag, description (defaults to name of the worker)
self.update_model_version(
model_version_details=model_version_details,
model_version_details=model_version_details, configuration=configuration
)
def create_model_version(
......@@ -222,7 +224,7 @@ class TrainingMixin(object):
def update_model_version(
self,
model_version_details: dict,
configuration: dict = {},
configuration: dict,
) -> None:
"""
Update the specified model version to the state `Available` and use the given information"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment