Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tensorrt_llm/bench/dataclasses/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ def get_llm_args(self) -> Dict:
self.world_config.cluster_size,
"trust_remote_code":
True,
"kv_cache_config":
self.settings_config.get_kvcache_config(),
"enable_chunked_prefill":
self.settings_config.chunking,
"extended_runtime_perf_knob_config":
Expand All @@ -82,6 +80,10 @@ def get_llm_args(self) -> Dict:
if self.backend in backend_config_map:
llm_args.update(backend_config_map[self.backend]())

kv_cache_config = self.settings_config.get_kvcache_config().__dict__
backend_cache_config = llm_args.pop("kv_cache_config", {})
llm_args["kv_cache_config"] = backend_cache_config | kv_cache_config

return update_llm_args_with_extra_options(llm_args,
self.extra_llm_api_options)

Expand Down