fix single_disagg_test (#6166)

Signed-off-by: Chuang Zhu <111838961+chuangz0@users.noreply.github.com>
This commit is contained in:
Chuang Zhu 2025-07-18 13:18:37 +08:00 committed by GitHub
parent 812243bdd6
commit c0e416535e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -360,18 +360,21 @@ def test_disaggregated_spec_dec_batch_slot_limit(model, spec_dec_model_path,
KvCacheConfig(max_tokens=128, enable_block_reuse=False)
for _ in range(2)
]
cache_transceiver_configs = [
CacheTransceiverConfig(backend="default") for _ in range(2)
]
model_names = [model_path(model) for _ in range(2)]
ranks = [0, 1]
worker_args = list(
zip(kv_cache_configs, worker_pytorch_configs, model_names, ranks))
zip(kv_cache_configs, cache_transceiver_configs, worker_pytorch_configs,
model_names, ranks))
port_name = MPI.Open_port()
MPI.Publish_name('my_port', port_name)
prompt = "What is the capital of Germany?"
with MPIPoolExecutor(max_workers=2, env={"TRTLLM_USE_MPI_KVCACHE":
"1"}) as executor:
with MPIPoolExecutor(max_workers=2, env={"UCX_TLS": "^ib"}) as executor:
futures = []
try:
for worker_arg in worker_args: