Skip to content

fix(dsv41): make RDMA GID index configurable - #13

Closed
wufeng3689-star wants to merge 1 commit into
bertholomus:deepseek-v41-zigfrom
wufeng3689-star:fix/rdma-gid-index-configurable
Closed

wufeng3689-star wants to merge 1 commit into
bertholomus:deepseek-v41-zigfrom
wufeng3689-star:fix/rdma-gid-index-configurable

Conversation

@wufeng3689-star

Copy link
Copy Markdown

Summary

  • make the DeepSeek-V4.1 RDMA ring GID index configurable via TF_RDMA_GID_INDEX
  • preserve the upstream default of 5 for existing topologies
  • pass the selected index through TP2 and 2D ring setup paths

Motivation

On a two-node DGX Spark RoCE fabric, the valid IPv4 RoCEv2 GID is index 3; the previous hard-coded index 5 caused VerbsFailed during startup.

Validation

  • built the full native install with Zig 0.17.0, CUDA 13 / sm_121, and TF_RDMA_GID_INDEX support
  • deployed the corresponding local build on both nodes with TF_RDMA_GID_INDEX=3
  • verified both ranks running, restart count 0, /health OK, and /v1/models serving DeepSeek-V4.1-Flash-TF
  • source diff checked with git diff --check

The local hardware-specific value remains in the deployment environment; the upstream default stays unchanged.

@bertholomus

Copy link
Copy Markdown
Owner

Thank you @wufeng3689-star — this is exactly the right fix, and I appreciate that you reached for the same env name: TF_RDMA_GID_INDEX (default 5, GX10's index 3). It shipped a few hours ago in #12, which also negotiates the endpoint MTU instead of the fixed 4096 (that one bites MTU-1024 fabrics), so both ranks need the same build either way. Your diff would now conflict with it, so I'm closing this as superseded rather than leaving it to rot — thank you for the clean patch and for independently confirming the knob's name was the right one.

@wufeng3689-star
wufeng3689-star deleted the fix/rdma-gid-index-configurable branch October 13, 2026 06:42
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.

2 participants