Repository navigation
fix(dsv41): configure RDMA GID and negotiate endpoint MTU - #12
Merged
bertholomus merged 1 commit intoOct 12, 2026
Merged
bertholomus merged 1 commit into
bertholomus merged 1 commit into
Conversation
Owner
|
Thank you @sayyidfareed — this addresses a real pain for single-rail and mixed-MTU fabrics (recipe issue #11 and the 4x thread both), and the strict GID parsing plus 25 MTU combinations of host tests are thorough. We're not merging it now: the peer metadata struct grows from 128 to 144 bytes, so it's a wire-format change — both ranks must move together and mixed-version pairs can't talk. That needs a coordinated engine release, and the repo is in maintenance mode. Leaving it open as the prepared fix for the next window; until then, the local env-override patches from the issue threads are the working route. Thanks again. |
This was referenced Oct 12, 2026
5 of 8 tasks
bertholomus
marked this pull request as ready for review
October 12, 2026 14:52
bertholomus
added a commit
to bertholomus/deepseek-v4.1-tensorfold-tp2-2xgb10
that referenced
this pull request
Oct 12, 2026
Docs only: documents the knob from bertholomus/TensorFold#12 (default 5 unchanged; ibv_devinfo -v / show_gids; both ranks must run the same engine build, peer description 128 -> 144 bytes).
7 tasks done
MiaAI-Lab
pushed a commit
to MiaAI-Lab/DeepSeek-V4.1-Flash-1017-4x-DGX-Sparks-TensorFold
that referenced
this pull request
Oct 26, 2026
Patch 0001 sets every RDMA queue pair's path MTU to a fixed 4096. On a switched fabric whose Ethernet MTU is 1500 the RoCE active MTU is 1024 and RDMA=1 fails every request. 0026 reads the port's active MTU with ibv_query_port (capped at 4096) and uses it as path_mtu; on a 4096 fabric the value is unchanged. The idea is bertholomus/TensorFold#12 (negotiated endpoint MTU), local endpoint only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Read TF_RDMA_GID_INDEX on both native ranks (default 5, strict 0–255 validation). Exchange each rail's active port MTU and program the smaller endpoint value after validating metadata. This addresses recipe #11's native GID mismatch and recipe #1's endpoint MTU issue. Both ranks must use this patch: the peer metadata struct grows from 128 to 144 bytes. Endpoint negotiation does not prove switched path MTU.
Receipt
4e80f05ecba89a4e90d16375ade2eddbdc0a10c4, Zig 0.17.0, Ubuntu 24.04.5 LTS, kernel 7.0.0-1019-nvidia, NVIDIA driver 580.178.04; Linux ARM64 CUDA environment; two NVIDIA GB10 nodes for historical live tests, SM121, Mia EXL3 2.9 bpw revision64ba41b6c916a587db06eae2e19b7845f7be6e6b, recipe v0.6.1 kit. Container ARM64 imagesha256:1ad8c1382c09861dee9c342b59f6e5e3e65fe7fde4a07b5e379bc985b66902dd.ad126072e921c0e3ba20418985662283a79fb46d; commandzig build test -j1 --summary allwith a shared Zig cache.zig fmt --checkpasses changed Zig files.test-goldenwas attempted on the pinned source but that step does not exist, despite CONTRIBUTING.md naming it.Checklist
Merge considerations
Two-way source revert. Preserve both ranks at the same source/runtime identity. This PR has not changed the default deployed upstream recipe.