Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Base Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Workers
Base Worker
Commits
d4c7a8c5
Commit
d4c7a8c5
authored
2 years ago
by
Yoann Schneider
Committed by
Bastien Abadie
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Expose model configuration on publish_model
parent
242b03cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!268
Expose model configuration on publish_model
Pipeline
#79903
passed
2 years ago
Stage: release
Stage: deploy
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex_worker/worker/training.py
+6
-4
6 additions, 4 deletions
arkindex_worker/worker/training.py
with
6 additions
and
4 deletions
arkindex_worker/worker/training.py
+
6
−
4
View file @
d4c7a8c5
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment