Skip to content

Commit ee3a2c0

Browse files
authored
Merge pull request #627 from basetenlabs/bola/fix-borked-tgi
Fix TGI model_id swap
2 parents d42dfae + da3950e commit ee3a2c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "truss"
3-
version = "0.6.5rc5"
3+
version = "0.6.5rc6"
44
description = "A seamless bridge from model development to model delivery"
55
license = "MIT"
66
readme = "README.md"

truss/contexts/image_builder/serving_image_builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def copy_into_build_dir(from_path: Path, path_in_build_dir: str):
145145
model_key = "model"
146146

147147
if server_name != "TrussServer":
148-
model_name = config.build.arguments.pop(model_key)
148+
model_name = config.build.arguments[model_key]
149149
if "gs://" in model_name:
150150
# if we are pulling from a gs bucket, we want to alias it as a part of the cache
151151
model_to_cache = {"repo_id": model_name}

0 commit comments

Comments
 (0)