Skip to content

Commit

Permalink
fix: set model revision correctly (#5158)
Browse files Browse the repository at this point in the history
* fix: set model revision correctly

Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming authored Dec 27, 2024
1 parent 11a16aa commit 4e5a653
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_bentoml_sdk/service/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,9 @@ def on_load_bento(self, bento: Bento) -> None:
model_id = info.metadata.get("model_id") # use the case in bento info
if not model_id:
model_id = info.tag.name.replace("--", "/")
revision = info.metadata.get("revision", info.tag.version)
model.model_id = model_id
model.revision = info.tag.version
model.revision = revision
self.bento = bento


Expand Down

0 comments on commit 4e5a653

Please sign in to comment.