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
5 changes: 3 additions & 2 deletions flexkv/integration/tensorrt_llm/trtllm_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

class FlexKVSchedulerConnector(KvCacheConnectorScheduler):
def __init__(self, config: ExecutorConfig):
# Set environment variable for FlexKV with TensorRT-LLM,this must before KVManager initialization
os.environ['FLEXKV_WITH_TRTLLM'] = '1'
tp_size, dp_size, dp_rank = get_dp_tp_info(config)
flexkv_config = FlexKVConfig.from_env()
flexkv_config.post_init_from_trt_config(config, tp_size, dp_size, dp_rank)
Expand Down Expand Up @@ -59,8 +61,7 @@ def __init__(self, config: ExecutorConfig):

flexkv_logger.info("Finish init FlexKVSchedulerConnector")

# Set environment variable for FlexKV with TensorRT-LLM
os.environ['FLEXKV_WITH_TRTLLM'] = '1'


def is_ready(
self,
Expand Down