Skip to content

Commit 2290069

Browse files
committed
[None][feat] Add NIXL-LIBFABRIC
Allows users to use LIBFABRIC as NIXL backend for KV cache transmission. Usage: TRTLLM_NIXL_KVCACHE_BACKEND=LIBFABRIC # (or UCX) Currently supports only UCX and LIBFABRIC as NIXL KV cahce backends. Unsupported backend types will fallback to Default (UCX). Signed-off-by: Yoray Zack <[email protected]>
1 parent ed35e0a commit 2290069

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cpp/tensorrt_llm/executor/cache_transmission/nixl_utils/transferAgent.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,11 @@ NixlTransferAgent::NixlTransferAgent(BaseAgentConfig const& config)
348348

349349
std::string nixlBackend = common::getEnvNixlBackend();
350350
// List of supported backends - extend this list as new backends are added
351-
static const std::set<std::string> kSUPPORTED_BACKENDS = {"UCX"};
351+
static const std::set<std::string> kSUPPORTED_BACKENDS = {"UCX", "LIBFABRIC"};
352352

353353
if (kSUPPORTED_BACKENDS.find(nixlBackend) == kSUPPORTED_BACKENDS.end())
354354
{
355-
TLLM_LOG_ERROR("Unsupported NIXL backend: %s, fallback to UCX", nixlBackend.c_str());
355+
TLLM_LOG_WARNING("Unsupported NIXL backend: %s, fallback to UCX", nixlBackend.c_str());
356356
nixlBackend = "UCX";
357357
}
358358

docker/common/install_nixl.sh

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -ex
44
GITHUB_URL="https://github.com"
55
UCX_INSTALL_PATH="/usr/local/ucx/"
66
CUDA_PATH="/usr/local/cuda"
7-
NIXL_VERSION="0.5.0"
7+
LIBFABRIC_INSTALL_PATH="/opt/libfabric"
8+
NIXL_VERSION="0.7.1"
89
NIXL_REPO="https://github.com/ai-dynamo/nixl.git"
910
OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
1011

@@ -38,6 +39,7 @@ meson setup builddir \
3839
-Dcudapath_lib="$CUDA_PATH/lib64" \
3940
-Dcudapath_inc="$CUDA_PATH/include" \
4041
-Dgds_path="$GDS_PATH" \
42+
-Dlibfabric_path="$LIBFABRIC_INSTALL_PATH" \
4143
-Dinstall_headers=true
4244

4345
cd builddir && ninja install

0 commit comments

Comments
 (0)