Skip to content

Commit

Permalink
add truss trtllm config (basetenlabs#1366)
Browse files Browse the repository at this point in the history
* add truss trtllm config

* ruff fmt
  • Loading branch information
michaelfeil authored Feb 4, 2025
1 parent 14f0f55 commit b8df346
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions truss/base/trt_llm_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,13 @@ def migrate_runtime_fields(cls, data: Any) -> Any:
@model_validator(mode="after")
def after(self: "TRTLLMConfiguration") -> "TRTLLMConfiguration":
# check if there is an error wrt. runtime.enable_chunked_context
if self.runtime.enable_chunked_context and not (
self.build.plugin_configuration.use_paged_context_fmha
and self.build.plugin_configuration.paged_kv_cache
if (
self.runtime.enable_chunked_context
and (self.build.base_model != TrussTRTLLMModel.ENCODER)
and not (
self.build.plugin_configuration.use_paged_context_fmha
and self.build.plugin_configuration.paged_kv_cache
)
):
if ENGINE_BUILDER_TRUSS_RUNTIME_MIGRATION:
logger.warning(
Expand Down

0 comments on commit b8df346

Please sign in to comment.