{"slug": "nixl-nvidia-inference-xfer-library", "title": "NIXL: NVIDIA Inference Xfer Library", "summary": "NVIDIA has released the NVIDIA Inference Xfer Library (NIXL), an open-source library designed to accelerate point-to-point communications in AI inference frameworks such as NVIDIA Dynamo, with support for Linux environments including Ubuntu 22.04/24.04 and Fedora. The library, available via PyPI with `pip install nixl`, provides a modular plug-in architecture that abstracts over CPU/GPU memory and file, block, and object storage, and requires a C++20 compiler and UCX version 1.23.x for optimal performance.", "body_md": "NVIDIA Inference Xfer Library (NIXL) is targeted for accelerating point to point communications in AI inference frameworks such as NVIDIA Dynamo, while providing an abstraction over various types of memory (e.g., CPU and GPU) and storage (e.g., file, block and object store) through a modular plug-in architecture.\n\n- \n[NIXL overview](https://github.com/ai-dynamo/nixl/blob/main/docs/nixl.md) - Core concepts/architecture overview (`docs/nixl.md` )\n- \n[Python API](https://github.com/ai-dynamo/nixl/blob/main/docs/python_api.md) - Python API usage and examples (`docs/python_api.md` )\n- \n[Backend guide](https://github.com/ai-dynamo/nixl/blob/main/docs/BackendGuide.md) - Backend/plugin development guide (`docs/BackendGuide.md` )\n- \n[Telemetry](https://github.com/ai-dynamo/nixl/blob/main/docs/telemetry.md) - Observability and telemetry details (`docs/telemetry.md` )\n- \n[Doxygen guide](https://github.com/ai-dynamo/nixl/blob/main/docs/doxygen/nixl_doxygen.md) - API/class diagrams overview (`docs/doxygen/nixl_doxygen.md` )\n- \n[Doxygen images](https://github.com/ai-dynamo/nixl/tree/main/docs/doxygen) - Diagram assets (`docs/doxygen/` )\n- \n[NIXLBench docs](https://github.com/ai-dynamo/nixl/blob/main/benchmark/nixlbench/README.md) - Benchmark usage guide (`benchmark/nixlbench/README.md` )\n- \n[KVBench docs](https://github.com/ai-dynamo/nixl/tree/main/benchmark/kvbench/docs) - KVBench workflows and tutorials (`benchmark/kvbench/docs/` )\n\nNIXL is supported on a Linux environment only. It is tested on Ubuntu (22.04/24.04) and Fedora. macOS and Windows are not currently supported; use a Linux host or container/VM.\n\nThe nixl python API and libraries, including UCX, are available directly through PyPI. For example, if you have a GPU running on a Linux host, container, or VM, you can do the following install:\n\nInstall with:\n\n```\npip install nixl\n```\n\nThis installs both CUDA 12 and CUDA 13 backends. At runtime, the correct backend is selected automatically based on the CUDA version reported by PyTorch.\n\nNIXL requires a C++20 compatible compiler (GCC >= 11 or Clang >= 14).\n\n`$ sudo apt install build-essential cmake pkg-config`\n\n`$ sudo dnf install gcc-c++ cmake pkg-config`\n\n`$ pip3 install meson ninja pybind11 tomlkit`\n\nNIXL was tested with UCX version 1.23.x.\n\n[GDRCopy](https://github.com/NVIDIA/gdrcopy) is available on Github and is necessary for maximum performance, but UCX and NIXL will work without it.\n\n``` bash\n$ git clone https://github.com/openucx/ucx.git\n$ cd ucx\n$ git checkout v1.23.x\n$ ./autogen.sh\n$ ./contrib/configure-release-mt       \\\n    --enable-shared                    \\\n    --disable-static                   \\\n    --disable-doxygen-doc              \\\n    --enable-optimizations             \\\n    --without-avx                      \\\n    --enable-cma                       \\\n    --enable-devel-headers             \\\n    --with-cuda=<cuda install>         \\\n    --with-verbs                       \\\n    --with-dm                          \\\n    --with-gdrcopy=<gdrcopy install>\n$ make -j\n$ make -j install-strip\n$ ldconfig\n```\n\nNIXL can use ETCD for metadata distribution and coordination between nodes in distributed environments. To use ETCD with NIXL:\n\n``` bash\n$ sudo apt install etcd etcd-server etcd-client\n\n# Or use Docker\n$ docker run -d -p 2379:2379 quay.io/coreos/etcd:v3.5.1\n```\n\nInstalled from [https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3](https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3)\n\n``` bash\n$ sudo apt install libgrpc-dev libgrpc++-dev libprotobuf-dev protobuf-compiler-grpc\n$ sudo apt install libcpprest-dev\n$ git clone https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3.git\n$ cd etcd-cpp-apiv3\n$ mkdir build && cd build\n$ cmake ..\n$ make -j$(nproc) && make install\n```\n\nSome plugins may have additional build requirements, see them here:\n\n``` bash\n$ meson setup <name_of_build_dir>\n$ cd <name_of_build_dir>\n$ ninja\n$ ninja install\nbash\n$ meson setup <name_of_build_dir>\nbash\n$ meson setup <name_of_build_dir> --buildtype=debug\nbash\n# Example with custom options\n$ meson setup <name_of_build_dir> \\\n    -Dbuild_docs=true \\           # Build Doxygen documentation\n    -Ducx_path=/path/to/ucx \\     # Custom UCX installation path\n    -Dinstall_headers=true \\      # Install development headers\n    -Ddisable_gds_backend=false   # Enable GDS backend\n```\n\nCommon build options:\n\n- `build_docs` : Build Doxygen documentation (default: false)\n- `ucx_path` : Path to UCX installation (default: system path)\n- `install_headers` : Install development headers (default: true)\n- `disable_gds_backend` : Disable GDS backend (default: false)\n- `cudapath_inc` ,`cudapath_lib` : Custom CUDA paths\n- `static_plugins` : Comma-separated list of plugins to build statically\n- `enable_plugins` : Comma-separated list of plugins to build (e.g.`-Denable_plugins=UCX,POSIX` ). Cannot be used with`disable_plugins` .\n- `disable_plugins` : Comma-separated list of plugins to exclude (e.g.`-Ddisable_plugins=GDS` ). Cannot be used with`enable_plugins` .\n- `wheel_variant` : Override the Python wheel variant suffix (e.g.`-Dwheel_variant=rocm` yields`nixl_rocm` ). Empty (default) = autodetect from the CUDA major version.\n\nNIXL itself builds vendor-neutrally; CPU-side hardware detection (`hwInfo::numAmdGpus`) discovers AMD GPUs via PCI vendor `0x1002` whether or not a ROCm toolchain is present. GPU-side ROCm/HIP build support is available for nixlbench and UCX plugin unit tests. When packaging a ROCm wheel, pass `-Dwheel_variant=rocm` so the wheel is named `nixl_rocm`.\n\n**Building with ROCm support:**\n\n``` bash\n# For UCX unit tests with ROCm\n$ meson setup build -Drocm_path=/opt/rocm\n\n# Or specify a custom ROCm path\n$ meson setup build -Drocm_path=/custom/path/to/rocm\n```\n\n**Plugins on ROCm hosts (CUDA toolchain absent):**\n\n- `UCX` — primary transport for AMD GPU memory (requires UCX built with`--with-rocm` ).\n- `POSIX` ,`OBJ` ,`AZURE_BLOB` ,`HF3FS` ,`MOONCAKE` ,`GUSLI` ,`UCCL` — vendor-neutral; build unchanged.\n- `GDS` /`GDS_MT` ,`GPUNETIO` ,`LIBFABRIC` (with`-DHAVE_CUDA` ) — skip automatically because their CUDA / cuFile / DOCA dependencies are not found.\n\n**Known gaps (will be addressed in follow-up PRs):**\n\n- `LIBFABRIC` plugin disabled on ROCm pending header refactor.\n- No NVSHMEM-equivalent backend yet (rocSHMEM analog is a candidate for a future plugin).\n\nThere are a few environment variables that can be set to configure the build:\n\n- `NIXL_NO_STUBS_FALLBACK` : If not set or 0, build NIXL stub library if the library build fails\n\nIf you have Doxygen installed, you can build the documentation:\n\n``` bash\n# Configure with documentation enabled\n$ meson setup <name_of_build_dir> -Dbuild_docs=true\n$ cd <name_of_build_dir>\n$ ninja\n\n# Documentation will be generated in <name_of_build_dir>/html\n# After installation (ninja install), documentation will be available in <prefix>/share/doc/nixl/\n```\n\nNIXL provides Python bindings through pybind11. For detailed Python API documentation, see [docs/python_api.md](https://github.com/ai-dynamo/nixl/blob/main/docs/python_api.md).\n\nThe preferred way to install the Python bindings is through pip from PyPI:\n\n```\npip install nixl\n```\n\nThis installs both CUDA 12 and CUDA 13 backends. At runtime, the correct backend is selected automatically based on the CUDA version reported by PyTorch.\n\nPrerequisites:\n\n- `uv` :[https://docs.astral.sh/uv/getting-started/installation/](https://docs.astral.sh/uv/getting-started/installation/)\n- `tomlkit` :[https://pypi.org/project/tomlkit/](https://pypi.org/project/tomlkit/)\n- `PyTorch` :[https://pytorch.org/get-started/locally/](https://pytorch.org/get-started/locally/)\n\n`uv` is always required *even if* you have another kind of Python virtual environment manager or if you are using a system-wide Python installation without using a virtual environment.\n\nExample with `uv` Python virtual environment:\n\n```\ncurl -LsSf https://astral.sh/uv/install.sh | sh\nexport PATH=\"$HOME/.local/bin:${PATH}\"\n\nuv venv .venv --python 3.12\nsource .venv/bin/activate\nuv pip install tomlkit\n```\n\nExample with python-virtualenv:\n\n```\ncurl -LsSf https://astral.sh/uv/install.sh | sh\nexport PATH=\"$HOME/.local/bin:${PATH}\"\n\npython3 -m venv .venv\nsource .venv/bin/activate\npip install tomlkit\n```\n\nExample with system-wide Python installation without using a virtual environment:\n\n```\ncurl -LsSf https://astral.sh/uv/install.sh | sh\nexport PATH=\"$HOME/.local/bin:${PATH}\"\n\npip install tomlkit\n```\n\nThen install PyTorch following the instructions on the PyTorch website: [https://pytorch.org/get-started/locally/](https://pytorch.org/get-started/locally/)\n\nAfter installing the prerequisites, you can build and install the NIXL binaries and the Python bindings from source. You have to:\n\n1. Build NIXL binaries and install them\n2. Build and install the CUDA platform-specific package (`nixl-cu12` or`nixl-cu13` )\n3. Build and install the `nixl` meta-package\n\n**For CUDA 12:**\n\n```\npip install .\nmeson setup build\nninja -C build install\npip install build/src/bindings/python/nixl-meta/nixl-*-py3-none-any.whl\n```\n\n**For CUDA 13:**\n\n```\npip install .\n./contrib/tomlutil.py --wheel-name nixl-cu13 pyproject.toml\nmeson setup build\nninja -C build install\npip install build/src/bindings/python/nixl-meta/nixl-*-py3-none-any.whl\n```\n\nTo check if the installation is successful, you can run the following command:\n\n``` python\npython3 -c \"import nixl; agent = nixl.nixl_agent('agent1')\"\n```\n\nwhich should print:\n\n```\n2026-01-08 13:36:27 NIXL INFO    _api.py:363 Backend UCX was instantiated\n2026-01-08 13:36:27 NIXL INFO    _api.py:253 Initialized NIXL agent: agent1\n```\n\nYou can also run a complete Python example to test the installation:\n\n```\npython3 examples/python/expanded_two_peers.py --mode=target --use_cuda=true --ip=127.0.0.1 --port=4242 &\nsleep 5\npython3 examples/python/expanded_two_peers.py --mode=initiator --use_cuda=true --ip=127.0.0.1 --port=4242\n```\n\nFor more Python examples, see [examples/python/](https://github.com/ai-dynamo/nixl/blob/main/examples/python).\n\n- Use `-Drust=true` meson option to build rust bindings.\n- Use `--buildtype=debug` for a debug build (default is release).\n- Or build manually:\n\n``` bash\n$ cargo build --release\n```\n\nThe bindings will be installed under `nixl-sys` in the configured installation prefix.\nCan be done using ninja, from project build directory:\n\n``` bash\n$ ninja install\nbash\n# Rust bindings tests\n$ cargo test\n```\n\nUse in your project by adding to `Cargo.toml`:\n\n```\n[dependencies]\nnixl-sys = { path = \"path/to/nixl/bindings/rust\" }\n```\n\nSee [contrib/README.md](https://github.com/ai-dynamo/nixl/blob/main/contrib/README.md) for more build options.\n\nTo build the docker container, first clone the current repository. Also make sure you are able to pull docker images to your machine before attempting to build the container.\n\nRun the following from the root folder of the cloned NIXL repository:\n\n```\n$ ./contrib/build-container.sh\n```\n\nBy default, the container is built with Ubuntu 24.04. To build a container for Ubuntu 22.04 use the --os option as follows:\n\n```\n$ ./contrib/build-container.sh --os ubuntu22\n```\n\nTo see all the options supported by the container use:\n\n```\n$ ./contrib/build-container.sh -h\n```\n\nThe container has the NIXL python bindings preinstalled (built from source against the container's own PyTorch). For a redistributable python wheel, use the wheel build script below or install the published `nixl` package.\n\nThe contrib folder also includes a script to build the python wheel with the UCX dependencies. Note, that UCX and other NIXL dependencies are required to be installed.\n\n```\n$ ./contrib/build-wheel.sh\n```\n\nNIXL can use ETCD for metadata exchange between distributed nodes. This is especially useful in containerized or cloud-native environments.\n\nTo use ETCD with NIXL, set the following environment variables:\n\n```\n# Set ETCD endpoints (required) - replace localhost with the hostname of the etcd server\nexport NIXL_ETCD_ENDPOINTS=\"http://localhost:2379\"\n\n# Set ETCD namespace (optional, defaults to /nixl/agents)\nexport NIXL_ETCD_NAMESPACE=\"/nixl/agents\"\n```\n\nNIXL includes an example demonstrating metadata exchange and data transfer using ETCD:\n\n```\n# Start an ETCD server if not already running\n# For example:\n# docker run -d -p 2379:2379 quay.io/coreos/etcd:v3.5.1\n\n# Set the ETCD env variables as above\n\n# Run the example. The two agents in the example will exchange metadata through ETCD\n# and perform data transfers\n./<nixl_build_path>/examples/nixl_etcd_example\n```\n\nFor more comprehensive testing, the nixlbench benchmarking tool supports ETCD for worker coordination:\n\n```\n# Build nixlbench (see benchmark/nixlbench/README.md for details)\ncd benchmark/nixlbench\nmeson setup build && cd build && ninja\n\n# Run benchmark with ETCD\n./nixlbench --etcd-endpoints http://localhost:2379 --backend UCX --initiator_seg_type VRAM\n```\n\nFor contribution guidelines, see [CONTRIBUTING.md](https://github.com/ai-dynamo/nixl/blob/main/CONTRIBUTING.md) (`CONTRIBUTING.md`).\n\nThis project will download and install additional third-party open source software projects. Review the license terms of these open source projects before use.\n\nNIXL Python wheels bundle NVIDIA modules (`libuct_ib_mlx5_ext.so`, `libuct_ib_mlx5_gda.so`, `libuct_ib_mlx5_gdp.so`) licensed under the [NVIDIA Proprietary License](https://github.com/ai-dynamo/nixl/blob/main/licenses/NVIDIA-proprietary-LICENSE.txt) (`LicenseRef-NvidiaProprietary`).", "url": "https://wpnews.pro/news/nixl-nvidia-inference-xfer-library", "canonical_source": "https://github.com/ai-dynamo/nixl", "published_at": "2026-08-31 09:00:00+00:00", "updated_at": "2026-09-07 21:30:31.726399+00:00", "lang": "en", "topics": ["ai-infrastructure", "ai-tools", "developer-tools"], "entities": ["NVIDIA", "NIXL", "NVIDIA Dynamo", "UCX", "PyPI", "GDRCopy", "ETCD"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/nixl-nvidia-inference-xfer-library", "markdown": "https://wpnews.pro/news/nixl-nvidia-inference-xfer-library.md", "text": "https://wpnews.pro/news/nixl-nvidia-inference-xfer-library.txt", "jsonld": "https://wpnews.pro/news/nixl-nvidia-inference-xfer-library.jsonld"}}