Repository navigation
feat: share Fabric host KV shards across local workers. - #2974
Draft
rhythm-agent-infra wants to merge 1 commit into
Draft
rhythm-agent-infra wants to merge 1 commit into
rhythm-agent-infra wants to merge 1 commit into
Conversation
rhythm-agent-infra
requested review from
DongheJin,
DragonFive,
JimHsiung,
Kang-Meng,
XuZhang99,
liutongxuan,
xiao-yu-chen,
yingxudeng and
zhang-minchao
as code owners
December 4, 2026 09:24
rhythm-agent-infra
marked this pull request as draft
December 4, 2026 09:26
✅ Netlify Deploy Preview readyBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
rhythm-agent-infra
marked this pull request as ready for review
December 4, 2026 09:41
rhythm-agent-infra
marked this pull request as draft
December 4, 2026 09:42
This branch has not been deployed
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.
Description
A prefix written back by one data-parallel (DP) group can now be restored by another DP group on the same host. This extends the Fabric H2D and D2H path from #2967. Sharing is enabled when Fabric Host KV is active, the global KV store is disabled and all workers belong to the same Linux IPC namespace on one host.
Validation
Four-rank Fabric transfer tests exercised replicated, partially replicated and fully sharded KV layouts. A scheduler test verified that a second DP group can restore a published Host block and that the slot can be reused after its last reader releases it.
The service runs used the same patch on the CANN 9.1-compatible revision of #2967 (
301856def), with torch_npu 2.10.0.post4 on Ascend 910C. The published commit applies that patch to current main. End-to-end measurements on main's CANN 9.3 toolchain are pending.Qwen3.8-27B Python BF16 ran with ACLGraph and asynchronous scheduling. Each run sent seven multimodal requests at concurrency one, with 2,314–2,323 input tokens and 300 output tokens each, then replayed them in order on the same service. The metrics below compare the first pass with prefix replay within each configuration.
In both configurations, every replay produced the same text and output token count as its first pass. Worker mappings showed two physical segments per target component at DP2 × TP2, with corresponding TP ranks in the two DP groups sharing a segment. DP1 × TP4 used four segments per target or draft component.
DP2 × TP2 with MTP3 stopped during image warmup before service readiness. The ACLGraph runner received one local input row while DP metadata specified four. Disabling Fabric and using ordinary Host KV reproduced the same mismatch with the same build and workload.
Change type and checks