[NIXL] Use config to enable telemetry + NIXL version bump (#29305)

Signed-off-by: NickLucche <nlucches@redhat.com>
This commit is contained in:
Nicolò Lucchesi 2025-11-24 18:18:04 +01:00 committed by GitHub
parent e924bbb4f4
commit 26a465584a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 7 deletions

View File

@ -1,2 +1,2 @@
lmcache lmcache
nixl >= 0.6.0 # Required for disaggregated prefill nixl >= 0.7.1 # Required for disaggregated prefill

View File

@ -4,7 +4,6 @@ import contextlib
import copy import copy
import logging import logging
import math import math
import os
import queue import queue
import threading import threading
import time import time
@ -810,9 +809,6 @@ class NixlConnectorWorker:
self.nixl_backends = vllm_config.kv_transfer_config.get_from_extra_config( self.nixl_backends = vllm_config.kv_transfer_config.get_from_extra_config(
"backends", ["UCX"] "backends", ["UCX"]
) )
# TODO temporary, once nixl allows for telemetry flag in config
# (next release), we can remove this env var.
os.environ["NIXL_TELEMETRY_ENABLE"] = "1"
# Agent. # Agent.
non_ucx_backends = [b for b in self.nixl_backends if b != "UCX"] non_ucx_backends = [b for b in self.nixl_backends if b != "UCX"]
@ -828,10 +824,11 @@ class NixlConnectorWorker:
if nixl_agent_config is None: if nixl_agent_config is None:
config = None config = None
else: else:
# Enable telemetry by default for NIXL 0.7.1 and above.
config = ( config = (
nixl_agent_config(backends=self.nixl_backends) nixl_agent_config(backends=self.nixl_backends, capture_telemetry=True)
if len(non_ucx_backends) > 0 if len(non_ucx_backends) > 0
else nixl_agent_config(num_threads=num_threads) else nixl_agent_config(num_threads=num_threads, capture_telemetry=True)
) )
self.nixl_wrapper = NixlWrapper(str(uuid.uuid4()), config) self.nixl_wrapper = NixlWrapper(str(uuid.uuid4()), config)