Skip to content

CollectiveX: use NIXL's two-step prepped-list API for kv-transfer - #3540

Closed
iyastreb wants to merge 5 commits into
SemiAnalysisAI:collectivex-kv-transferfrom
iyastreb:iyastreb/nixl-2-steps-api
Closed

iyastreb wants to merge 5 commits into
SemiAnalysisAI:collectivex-kv-transferfrom
iyastreb:iyastreb/nixl-2-steps-api

Conversation

@iyastreb

Copy link
Copy Markdown

The NIXL kv adapter now preps both sides' pool descriptor lists once at connect (prep_xfer_dlist) and builds each request with make_prepped_xfer over block-table row indices, the shape vLLM's NixlConnector posts, instead of initialize_xfer per request.

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@iyastreb
iyastreb force-pushed the iyastreb/nixl-2-steps-api branch 2 times, most recently from 7b2ac0c to d53b66e Compare September 28, 2026 14:14
@Oseltamivir
Oseltamivir force-pushed the collectivex-kv-transfer branch from dc68d14 to 249ee19 Compare September 28, 2026 14:58
@Oseltamivir
Oseltamivir requested review from a team and functionstackx as code owners September 28, 2026 14:58
@Oseltamivir
Oseltamivir force-pushed the collectivex-kv-transfer branch from 249ee19 to 60dbf2b Compare September 28, 2026 15:20
…che handoff)

A leg is 2 nodes x 1 GPU moving bursts of concurrent requests' paged KV
(vLLM's packed block-major DSV4 descriptors over random block tables), pull
and push, against a single-descriptor bulk baseline, with every request
pattern-verified. It resolves in sweep_matrix.py (--suites kv-transfer) from
configs/kv_sweep.json and the registry's kv_backends map, runs on each pool's
own launcher, and reaches run_kv through the suite codec. Per-pool allocation
and hang-guard budgets live in kv_sweep.json and per-backend pool budgets in
the registry, not in launcher branches. No b300 rows: the current b300 pool
is the EFA cluster.
run_ep and run_kv build their identity, provenance and outcome through one
ep_harness.case_attempt (kv now validates COLLX_ATTEMPT_ID as EP does). The kv
codec and shard builder use the shared helpers, run_kv folds its row tail and
drops the never-set MoRI QP/chunking flags (library defaults were already the
only value), and the UCX selector and pool-budget tests are table-driven. EP
documents, emitted argv and resolved matrices are unchanged.
@Oseltamivir
Oseltamivir force-pushed the collectivex-kv-transfer branch 2 times, most recently from 60dbf2b to 3b42529 Compare September 28, 2026 16:03
Correctness:
- Wire the sweep seed into the block tables and record it.
- Salt each rank's pool pattern so a loopback transfer fails verification.
- Paint the fabric pool on-device instead of from a pool-sized host array.
- Fail closed on an empty grid and on a multi-page-family pool over budget.
- Release NIXL transfer handles after each row.
- Keep hostname rendezvous on MNNVL: the GB network block is kv-rdma only.
- Never set a kv job timeout below the fleet-wide 350 minutes.

Trims: shared library_version/spans/offset_lists helpers, the one-call
registry-spec helper inlined, the kv precision filter and dead
MC_FORCE_MNNVL export dropped, pip_install reused, one-pass summarize
split, table-driven and registry-independent kv tests (the launcher-grep
test removed, the argv codec moved onto the real case-args seam), and
condensed kv docs with the stale b300 and 576 B claims fixed.
…FABRIC

b300 is now the AWS p6-b300 EFA pool. EFA is not a verbs HCA and UCX has
no transport for it, so the NIXL adapter selects the wheel's LIBFABRIC
plugin when the network profile marks the pool rdma_fabric=efa, and rows
record the plugin in implementation.transport. A two-node hand probe on
the pool moved 94 GB/s READ and 97 GB/s WRITE per GPU at 1 GiB, verified.
No mooncake leg: the PyPI wheel's transport is verbs RC only.
@iyastreb
iyastreb force-pushed the iyastreb/nixl-2-steps-api branch from d53b66e to 025fbd2 Compare September 29, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants