Skip to content

[BugFix] Enable RH2D for yuanrong client - #250

Closed
NingLee wants to merge 1 commit into
Ascend:mainfrom
NingLee:patch-1
Closed

NingLee wants to merge 1 commit into
Ascend:mainfrom
NingLee:patch-1

Conversation

@NingLee

@NingLee NingLee commented Dec 1, 2026

Copy link
Copy Markdown

Fixes #125.

Summary

NPUTensorKVClientAdapter creates its DsTensorClient without enable_remote_h2d, so cross-node NPU tensor transfers fall back to TCP even when the yuanrong server is started with --remote_h2d_device_ids. The yuanrong backend benchmark then measures TCP, not RDMA. This change passes enable_remote_h2d=True, matching the fix proposed in the issue.

Change

transfer_queue/storage/clients/yuanrong_client.py:101, one line: datasystem.DsTensorClient(host, port, self.device_id) → datasystem.DsTensorClient(host, port, self.device_id, enable_remote_h2d=True). This is the only DsTensorClient call site in the repo. The server side already supports RH2D (it parses --remote_h2d_device_ids in transfer_queue/storage/bootstrap/yuanrong_bootstrap.py and documents it in docs/storage_backends/openyuanrong_datasystem.md).

Test plan

  • tests/test_yuanrong_storage_client_e2e.py on real NPU hardware with an RH2D-enabled yuanrong server.
  • Note: the enable_remote_h2d kwarg could not be verified in this environment (datasystem package not installed, no NPU); CI / real hardware must run the e2e test.

Notes

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-01T17:18:46.482010Z
We couldn’t complete this review. Comment @codex review to try again.
5084c55 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@dpj135

dpj135 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Hello, I am the author of the yuanrong storage module. We conducted performance tests six months ago and concluded that whether RH2D is enabled depends on the yr cli configuration (now encapsulated within tq.init()) rather than the enable_remote_h2d parameter directly. Have you performed any actual tests using TransferQueue + YuanrongDatasystem to verify this? If possible, it would be best to compare the transfer performance before and after the change and capture the relevant logs. @NingLee

@NingLee NingLee closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Enable RH2D for yuanrong client

2 participants