Skip to content

Commit

Permalink
use constant
Browse files Browse the repository at this point in the history
  • Loading branch information
joostinyi committed Nov 12, 2024
1 parent 50138e9 commit ac9e99f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion truss/base/truss_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from truss.base.constants import (
HTTP_PUBLIC_BLOB_BACKEND,
TRTLLM_SPEC_DEC_TARGET_MODEL_NAME,
)
from truss.base.custom_types import ModelFrameworkType
from truss.base.errors import ValidationError
Expand Down Expand Up @@ -633,7 +634,7 @@ def from_dict(d):
trt_llm=transform_optional(
d.get("trt_llm"),
lambda x: (TRTLLMConfiguration(**x))
if "target" not in d.get("trt_llm")
if TRTLLM_SPEC_DEC_TARGET_MODEL_NAME not in d.get("trt_llm")
else (TRTLLMSpeculativeDecodingConfiguration(**x)),
),
build_commands=d.get("build_commands", []),
Expand Down

0 comments on commit ac9e99f

Please sign in to comment.