Repository navigation
[rl] Bind prefetch staging buffers to local NUMA node - #5103
Merged
Merged
Conversation
tushar00jain
force-pushed
the
fs-head/tushar00jain/2
branch
from
October 6, 2026 23:19
105368d to
0d5a83b
Compare
tushar00jain
marked this pull request as ready for review
October 6, 2026 23:29
tushar00jain
requested review from
felipemello1,
pzhan9,
tianyu-l and
wwwjn
as code owners
October 6, 2026 23:29
pzhan9
reviewed
Oct 6, 2026
| self._engine_event_loop.call_soon_threadsafe(call) | ||
| return result.result() | ||
|
|
||
| def _setup_prefetch_staging_state_dict(self) -> dict[str, Any]: |
Contributor
There was a problem hiding this comment.
Can this be upstreamed as a torchstore method? I image the current pattern could be difficult to use correctly by other torchstore users.
Contributor
Author
There was a problem hiding this comment.
This buffer is not owned by ts. Titan currently is the owner of this staging buffer - Titan or other users pass a state dict either on their CPU or GPU to get_state_dict and torchstore transfers into that.
tianyu-l
reviewed
Oct 7, 2026
tushar00jain
force-pushed
the
fs-head/tushar00jain/2
branch
from
October 7, 2026 03:33
0d5a83b to
7689a23
Compare
tushar00jain
requested review from
IvanKobzarev,
SherlockNoMad,
aditvenk,
fegin,
sanketpurandare and
wconstab
as code owners
October 7, 2026 03:33
tianyu-l
approved these changes
Oct 7, 2026
fs-branch: tushar00jain/2
tushar00jain
force-pushed
the
fs-head/tushar00jain/2
branch
from
October 7, 2026 03:50
7689a23 to
550ac72
Compare
This was referenced Oct 7, 2026
This was referenced Oct 7, 2026
Closed
Closed
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.
Stack (top to bottom):
Summary
Pinned CPU prefetch buffers were allocated without NUMA affinity. UCX could therefore use NICs across both NUMA domains, adding cross-socket traffic and increasing GET latency.
A server can contain multiple CPU/memory regions called NUMA nodes. Accessing memory attached to the local NUMA node is faster than reaching memory attached to another node through the CPU interconnect.
Before
This change binds each generator rank to its GPU-local NUMA node before allocating its pinned staging state dict.
After
UCX validation showed every rank using only its local two-port pair. On Qwen-27B, mean steady-state GET improved from 2.77s to 2.68s, while worst GET improved from 3.89s to 2.87s.