Closed chlee1016 closed 3 years ago
@chlee1016 Thank you for reporting, I will look into it. Can you try with the latest BentoML version, 0.12.1
and see?
@yubozhao Okay, I will give it a try and let you know that. Thank you.
Same test with BentoML version 0.12.1
Save my bento service with labels.
!bentoml list
BENTO_SERVICE AGE APIS ARTIFACTS LABELS
IrisClassifier:20210423092848_4A13BB 3.8 seconds predict<DataframeInput:DefaultOutput> model<SklearnModelArtifact> model_name:IrisClassifier
!bentoml push --yatai-url $yatai_service_endpoint $bento_bundle_name
After bentoml push, I got the same result.
!bentoml list --yatai-url $yatai_service_endpoint
BENTO_SERVICE AGE APIS ARTIFACTS LABELS
IrisClassifier:20210423092848_4A13BB 10.41 seconds predict<DataframeInput:DefaultOutput> model<SklearnModelArtifact>
Screenshot
@chlee1016 I see.
Right now, the python API expose label
option, for the use cases that you might have different labels you want to add. This option is not exposed to the CLI. We will match the behavior for them.
I will also add the current labels as default when no new labels are provided.
I will keep you updated, hopefully we can get this resolved before next release
@yubozhao Thank you for considering this issue.
As I understand, the labels
option in the CLI will be updated in the future and if there are no new labels in the CLI, current labels set via python API will be used as default. Therefore I will be able to see the labels
in remote YataiService repo. Am I right?
@chlee1016 I made a PR #1598 to address this issue
After some discussion, we think this would be a good solution going forward, love to hear your feedback.
Push now is default to retrain your labels to remote yatai server. You can turn off this behavior in CLI with flag --without-labels
, or in python API yatai_client.repository.push('bento:version', with_labels=False)
We are going to introduce a new API for set labels:
API syntax is not finalized
For python API: yatai_client.repository.set_labels('bento', labels={'foo':'abc'})
For CLI: $bentoml labels set bento:version foo=bar,abc=123
@chlee1016 It is merged to master now, and will be part of the 0.13.0
release. Feel free to reopen this issue.
Describe the bug
I found a bug that labels are not saved in YataiService after pushing my bento service.
To Reproduce
Expected behavior
I should be able to see the labels in the YataiService repository.
Screenshots/Logs
Environment:
Additional context