File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
distributed/kv_transfer/kv_connector Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,10 @@ def get_kv_connector_cache_layout():
9797 # used for faster transfer.
9898 vllm_config = get_current_vllm_config ()
9999 kv_config = vllm_config .kv_transfer_config
100- if vllm_config . model_config is None or kv_config is None :
100+ if kv_config is not None and vllm_config . model_config is None :
101101 logger .warning_once ("Unable to detect current VLLM config. " \
102102 "Defaulting to NHD kv cache layout." )
103- else :
103+ elif kv_config is not None :
104104 use_mla = vllm_config .model_config .use_mla
105105 if not use_mla and kv_config .kv_connector == "NixlConnector" :
106106 logger .info_once ("NixlConnector detected. Setting KV cache " \
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def get_kv_cache_layout():
138138 if cache_layout is None :
139139 cache_layout = get_kv_connector_cache_layout ()
140140 else :
141- logger .info_once ("`FLASHINFER_KV_CACHE_LAYOUT ` environment variable " \
141+ logger .info_once ("`VLLM_KV_CACHE_LAYOUT ` environment variable " \
142142 "detected. Setting KV cache layout to %s." , cache_layout )
143143
144144 return cache_layout
You can’t perform that action at this time.
0 commit comments