Skip to content

[fix] MD-TRT: rebind NCCL communicator after execution context invalidation - #4464

Merged
apbose merged 1 commit into
mainfrom
abose/md_nccl_rebind
Aug 28, 2026
Merged

apbose merged 1 commit into
mainfrom
abose/md_nccl_rebind

Conversation

@apbose

@apbose apbose commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

bind_nccl_comm() attaches the communicator to the IExecutionContext. disable_profiling() and set_resource_allocation_strategy() dropped that context without clearing nccl_initialized, so the lazy re-bind in execute_engine.cpp never fired and the replacement context ran collectives with no communicator (~98% output mismatch). Mirrors runtime_settings().

bind_nccl_comm() attaches the communicator to the IExecutionContext.
disable_profiling() and set_resource_allocation_strategy() dropped that
context without clearing nccl_initialized, so the lazy re-bind in
execute_engine.cpp never fired and the replacement context ran collectives
with no communicator (~98% output mismatch). Mirrors runtime_settings().

Verified on 2 GPUs: both new tests fail before the fix and pass after.
@meta-cla meta-cla Bot added the cla signed label Aug 6, 2026
@apbose apbose changed the title fix MD-TRT: rebind NCCL communicator after execution context invalidation [fix] MD-TRT: rebind NCCL communicator after execution context invalidation Aug 6, 2026
@apbose apbose added this to the v2.14.0 milestone Aug 18, 2026
@lanluo-nvidia lanluo-nvidia modified the milestones: v2.14.0, v2.15.0 Aug 20, 2026
@apbose apbose modified the milestones: v2.15.0, v2.14.0 Aug 20, 2026
@apbose

apbose commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

/nightly

@apbose

apbose commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

/test nightly

@apbose

apbose commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

/test full

@lanluo-nvidia lanluo-nvidia added ci: full ci: nightly Run the nightly lane (all tiers incl. llm / kernels / distributed) on every push labels Aug 27, 2026
@apbose

apbose commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator Author

The PR is passing the L2 distributed tests.

@apbose
apbose merged commit 8b38d31 into main Aug 28, 2026
331 of 400 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: full ci: nightly Run the nightly lane (all tiers incl. llm / kernels / distributed) on every push cla signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants