Skip to content

chore: upgrade nixl to 0.6.0 - #3550

Merged
alec-flowers merged 2 commits into
mainfrom
rihuo/update_nixl
Oct 10, 2025
Merged

alec-flowers merged 2 commits into
mainfrom
rihuo/update_nixl

Conversation

@richardhuo-nv

@richardhuo-nv richardhuo-nv commented Oct 10, 2025 •

Copy link
Copy Markdown
Contributor

Overview:

upgrade nixl to 0.6.0 in dynamo image

Details:

upgrade nixl to 0.6.0 in dynamo image, and fix some nixl rust bindings api change

Where should the reviewer start?

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • closes GitHub issue: #xxx

Summary by CodeRabbit

  • Chores
    • Upgraded NIXL to version 0.6.0 across build and runtime components.
  • Documentation
    • Updated support matrix to reflect NIXL 0.6.0 in build and GPU runtime dependencies.
  • Refactor
    • Adjusted transfer status handling to align with NIXL 0.6.0, improving reliability and status reporting during data transfers.

Signed-off-by: richardhuo-nv <[email protected]>
@richardhuo-nv
richardhuo-nv requested review from a team October 10, 2025 16:42
@richardhuo-nv
richardhuo-nv requested review from a team as code owners October 10, 2025 16:42
@github-actions github-actions Bot added the chore label Oct 10, 2025
@coderabbitai

coderabbitai Bot commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

Versions of NIXL/NIXL-Sys were bumped from 0.4.1 to 0.6.0 across build scripts, docs, and Cargo. Transfer polling in nixl-backed block transfers was updated to use the new XferStatus enum and revised constructor signature for XferDescList; a debug overlap assertion was removed.

Changes

Cohort / File(s) Summary
Container build refs
container/Dockerfile, container/build.sh
Updated build arg/variable NIXL_REF from 0.4.1 to 0.6.0; no other logic changes.
Documentation matrix
docs/support_matrix.md
Updated NIXL version references in GPU Runtime Dependency and Build Dependency tables to 0.6.0.
Rust dependency version
lib/llm/Cargo.toml
Bumped nixl-sys from "0.4.1" to "=0.6.0"; no other dependency/interface changes.
NIXL transfer logic update
lib/llm/src/block_manager/block/transfer/nixl.rs
Adjusted for NIXL API: import XferStatus, change XferDescList::new(mem_type, false) to new(mem_type), remove overlap debug assertion, and poll get_xfer_status() using XferStatus::{InProgress, Success} instead of boolean.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant BM as BlockTransfer
  participant NDL as nixl_sys::XferDescList (src/dst)
  participant NX as NIXL Runtime

  rect rgba(230,240,255,0.6)
    note over BM: Setup phase (constructor signature change)
    BM->>NDL: XferDescList::new(mem_type)
    BM->>NDL: add descriptors (src/dst)
  end

  BM->>NX: submit transfer (src,dst)
  loop Poll until completion
    BM->>NX: get_xfer_status()
    alt Status = InProgress
      note right of BM: Sleep/yield and continue
    else Status = Success
      BM-->>BM: Exit loop
    else Error
      BM-->>BM: Propagate error
    end
  end

  note over BM,NX: Uses XferStatus enum (InProgress/Success) instead of boolean
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I thump my paws—new NIXL in the burrow’s light,
From 0.4.1 to 0.6.0, we hop just right.
Enums blink “InProgress… Success!”—what cheer!
Descriptors trimmed, the path is clear.
Carrot-logs compiled, my whiskers twitch—
Ship it swift, with a joyful glitchless hitch. 🥕✨

Pre-merge checks

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description Check ⚠️ Warning While the description includes the required template headings, the “Where should the reviewer start?” section is left blank and the details remain generic without calling out specific files or outlining the API changes. This omission makes it harder for reviewers to know where to focus their attention and what to expect from the fixes. Please populate the “Where should the reviewer start?” section with the key files (for example, the updated Dockerfile, build script, Cargo.toml, and nixl.rs changes) and expand the Details section to summarize the specific API binding changes and any implications for functionality.
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The title succinctly conveys the main change of upgrading the nixl dependency to version 0.6.0 and clearly reflects the content of the changeset without unnecessary detail or noise. It follows conventional commit style and directly summarizes the primary change. This makes it easy for reviewers and team members to understand the intent at a glance.

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7a7d397 and 1bc4ea2.

⛔ Files ignored due to path filters (2)
  • Cargo.lock is excluded by !**/*.lock
  • lib/bindings/python/Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (5)
  • container/Dockerfile (1 hunks)
  • container/build.sh (1 hunks)
  • docs/support_matrix.md (1 hunks)
  • lib/llm/Cargo.toml (1 hunks)
  • lib/llm/src/block_manager/block/transfer/nixl.rs (3 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-07-30T00:34:35.810Z
Learnt from: dmitry-tokarev-nv
PR: ai-dynamo/dynamo#2179
File: docs/support_matrix.md:61-63
Timestamp: 2025-07-30T00:34:35.810Z
Learning: In docs/support_matrix.md, the NIXL version difference between runtime dependencies (0.5.0) and build dependencies (0.4.0) is intentional and expected, not an error that needs to be corrected.

Applied to files:

  • docs/support_matrix.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: trtllm (amd64)
  • GitHub Check: sglang
  • GitHub Check: Build and Test - dynamo
  • GitHub Check: clippy (.)
  • GitHub Check: tests (launch/dynamo-run)
  • GitHub Check: tests (lib/bindings/python)
  • GitHub Check: tests (lib/runtime/examples)
  • GitHub Check: clippy (lib/runtime/examples)
  • GitHub Check: clippy (launch/dynamo-run)
  • GitHub Check: tests (.)
🔇 Additional comments (7)
container/Dockerfile (1)

42-42: LGTM!

The NIXL version bump to 0.6.0 is consistent with the PR objectives and aligns with changes in other files.

container/build.sh (1)

118-118: LGTM!

The NIXL version reference is correctly updated to 0.6.0, matching the Dockerfile and other configuration files.

docs/support_matrix.md (1)

61-61: LGTM!

The NIXL version is correctly updated to 0.6.0 in both the runtime and build dependency sections, ensuring documentation consistency with the actual upgrade.

Also applies to: 68-68

lib/llm/Cargo.toml (1)

96-96: LGTM!

The nixl-sys dependency version is correctly updated to 0.6.0, maintaining the exact version pinning strategy.

lib/llm/src/block_manager/block/transfer/nixl.rs (3)

7-7: LGTM!

The XferStatus import is correctly added to support the new NIXL 0.6.0 API.


112-113: LGTM!

The XferDescList constructor calls are correctly updated to match the new NIXL 0.6.0 API signature, which removed the second boolean parameter.


138-141: Verify exhaustive handling of XferStatus
Ensure every variant of nixl_sys::XferStatus (beyond just Success and InProgress) is matched—e.g. handle Error, Cancelled, etc., or add a catch-all arm.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@richardhuo-nv

Copy link
Copy Markdown
Contributor Author

/ok to test 1bc4ea2

@alec-flowers

Copy link
Copy Markdown
Contributor

Signed-off-by: richardhuo-nv <[email protected]>
@richardhuo-nv

Copy link
Copy Markdown
Contributor Author

/ok to test ac13789

@alec-flowers
alec-flowers merged commit 5c69c11 into main Oct 10, 2025
@alec-flowers
alec-flowers deleted the rihuo/update_nixl branch October 10, 2025 20:18
@alec-flowers alec-flowers mentioned this pull request Oct 10, 2025
ziqifan617 pushed a commit that referenced this pull request Oct 20, 2025
nv-tusharma pushed a commit that referenced this pull request Oct 20, 2025
yao531441 pushed a commit to yao531441/dynamo that referenced this pull request May 13, 2026

This branch was previously deployed

1 inactive deployment
GITLAB — ac137893 Deployed Oct 10, 2025 by copy-pr-bot[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants