Repository navigation
[None][fix] Isolate fallback hwloc and add EFA functional CI coverage - #21516
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe changes add a B300 EFA disaggregated integration test and CI configuration, update NIXL’s hwloc fallback behavior, add Apache License 2.0 notices to installer scripts, and update five Docker image tags. ChangesEFA disaggregated functional validation
NIXL hwloc isolation
Installer license notices
Docker image tags
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant IntegrationTest
participant CTX_0
participant GEN_0
participant GenerationServer
participant LogValidator
IntegrationTest->>CTX_0: Probe EFA provider and record hostname
IntegrationTest->>GEN_0: Probe EFA provider and record hostname
IntegrationTest->>GenerationServer: Request reference completions
IntegrationTest->>GenerationServer: Send routed completion requests
IntegrationTest->>LogValidator: Validate collected worker logs
Suggested reviewers: Merge Risk:
|
Signed-off-by: Yanchao Lu <[email protected]>
Signed-off-by: Yanchao Lu <[email protected]>
Signed-off-by: Yanchao Lu <[email protected]>
Signed-off-by: Yanchao Lu <[email protected]>
Signed-off-by: Yanchao Lu <[email protected]>
Signed-off-by: Yanchao Lu <[email protected]>
cd59d75 to
37f7b76
Compare
|
/bot run --stage-list "Build-Docker-Images" --disable-fail-fast |
|
PR_Github #82213 [ run ] triggered by Bot. Commit: |
Signed-off-by: Yanchao Lu <[email protected]>
|
PR_Github #82213 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #82305 [ run ] triggered by Bot. Commit: |
|
PR_Github #82305 [ run ] completed with state
|
Signed-off-by: Yanchao Lu <[email protected]>
|
/bot run --disable-fail-fast |
|
PR_Github #82414 [ run ] triggered by Bot. Commit: |
|
PR_Github #82414 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #82779 [ run ] triggered by Bot. Commit: |
|
PR_Github #82779 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #82810 [ run ] triggered by Bot. Commit: |
|
PR_Github #82810 [ run ] completed with state |
Description
This PR follows up on the AWS EFA container support added in #19783. It focuses on cleaning up hwloc dependency handling and adding functional test coverage for KV cache V2 over the NIXL LIBFABRIC backend on EFA.
Problem
Rocky Linux 8's hwloc 2.2.0 is too old for the NIXL LIBFABRIC build. Installing the fallback under
/usr/localand preferring it globally changes the hwloc selected by Open MPI and other consumers.A successful container build also does not establish that KV cache V2 transfers work through the NIXL LIBFABRIC backend on EFA hardware.
Solution
/opt/nvidia/nixl-deps/hwlocand select it for the NIXL build throughPKG_CONFIG_PATH. Preserve suitable existing HPC-X or system hwloc installations and leave global runtime library search configuration unchanged. Runtime use of NIXL LIBFABRIC still requires a compatible hwloc library.202611030656-21516tags. Promotion copies the completed staging images without rebuilding them.Test Coverage
Validation
Source checks and image builds used
37f7b76fbcb8dd8ec9fa1111751262b6bdecd72a, based on upstream main4889d70f66cfd865862b32bf6ed7ec612912a152. The subsequent image-tag commit changes only CI image references.Source checks at that revision: 14 new evidence-validator cases and 97 existing launcher cases passed, along with Groovy placement/dependency-trigger checks, stage mapping, shell syntax and applicable pre-commit checks.
Earlier isolated-hwloc validation: clean Rocky8 devel builds for Python 3.10 and 3.12, full SM90 wheel build/install/import, and MPI/NIXL UCX initialization checks passed. Process mappings retained the system hwloc. These builds were not rerun after this rebase.
Earlier B300 validation: the complete two-node case passed both without
--segmentand with--segment=2. Both runs completed eight matching inference results and eight nonzero EFA KV transfers; all harness roles and Slurm steps passed. Fourteen evidence-validator unit cases also passed inside the image. Both standalone GPU jobs completed in approximately 7–8 minutes with the image and runtime dependencies already prepared; queueing and cold container preparation are excluded.Those B300 runs used test source
c097a6f29ec28c9d516a27818599efe7b2b54796, CI wheel sourceb2ade286de557b8dec22d81d6f7bb1e244e2f255, and the formal NGC PyTorch 26.09 image at platform digestsha256:6435f9aaa7e0a6e0b37047d031b5300fb7e733759895541df99c93e09d18b6eb. They used NIXL 1.5.2 and AWS libfabric 2.7.0amzn2.0 withoutNIXL_DISABLE_CUDA_ADDR_WA, through the repository's Slurm launcher with task-local wheel/dependency setup.All five CI image build-and-push branches passed: NGC PyTorch x86_64/SBSA, Rocky8 Python 3.10/3.12, and SBSA Ubuntu 24.04 Python 3.12. Each promoted image has the same index, platform manifest, configuration and layer digests as its staging source. The tag timestamp
202611030656is the UTC creation minute of the last image in this batch, not the promotion time.Fresh two-node B300 validation passed with the promoted
202611030656-21516image (platform digestsha256:e663fbb74b4c62115ec81dfe4dc727c51071e6cb06168bcc6597774178a709b9). The byte-validating precheck passed; all eight inference results matched ordinary greedy inference, and eight nonzero KV transfers matched receiver completions. All four harness roles and 14 validator unit cases passed without skips. The run used test and runtime Python source from85e9038e782efd7ddb6dd96fee4b7c545f54dca9, with CI native binaries fromc67c0f4fbe97f959d6250d371fec30f53300e1ba, whose C++ source tree is identical. It used NIXL 1.5.2 and AWS libfabric 2.7.0amzn2.0 withoutNIXL_DISABLE_CUDA_ADDR_WA. This was a standalone Slurm run using the repository launcher and task-local runtime setup.Recipe cleanup at
fbdfb74cf1bf5652668862f7054515eeea8ccee6: removed the deprecated no-opagent_bounce_buffer_enablefield while retainingkv_cache_bounce_size_mb: 0. All 260 existing recipe checks and applicable pre-commit checks passed. The promoted images remain unchanged.The overall image pipeline was aborted after the five CI image branches succeeded; this does not establish completion of its remaining release images. Full Jenkins L0 validation remains pending. The prior L0 also reported H100 KV cache V2 teardown/context errors that were observed with the previous CI image; the rerun still needs to verify that stage.
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR follows TRT-LLM Coding Guidelines to the best of your knowledge.
Test cases are provided for new code paths (see test instructions).
If PR introduces API changes, an appropriate PR label is added:
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities.
CODEOWNERS updated if ownership changes.
Documentation updated as needed.
Update the architecture diagram if there is a significant design change.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.Dev Engineer Review
/opt/nvidia/nixl-deps/hwloc.install_nixl.shexposes it to the NIXL build throughPKG_CONFIG_PATHand no longer changes global loader configuration. NIXL LIBFABRIC runtime use still requires a compatible hwloc library.202611030656-21516tags. The other installer changes add license notices.QA Engineer Review
tests/integration/defs/perf/test_efa_disaggregated.py,tests/test_common/efa_validation.py, andtests/unittest/scripts/test_efa_validation.py. Added thel0_dgx_b300_efa_multi_nodestest-db list and its B300 functional YAML configuration.test_kv_cache_v2_efa[disagg-e2e-b300_qwen3_0.6b_efa_functional]. It exercises eight long-prompt requests at concurrency four, checks output parity, and validates EFA transfer logs. The unit tests cover accepted transfers and rejection of fallback providers, incomplete or mismatched transfers, and duplicate records.tests/integration/test_lists/test-db/l0_dgx_b300_efa_multi_nodes.ymland wired to a Jenkins B300 two-node stage. No manual-QA list registration is established by the supplied evidence.Per-File QA Perspective
docker/common/install_base.sh— License notice only; no behavior change to verify.docker/common/install_efa_installer.sh— License notice only; no behavior change to verify.docker/common/install_gdrcopy.sh— License notice only; no behavior change to verify.docker/common/install_nixl.sh— Verify the fallback path, pkg-config selection, and NIXL build behavior. Confirm runtime LIBFABRIC environments provide compatible hwloc.examples/disaggregated/README.md— Documentation now describes the isolated fallback and runtime requirement; verify it matches supported deployment behavior.jenkins/L0_MergeRequest.groovy— The EFA test-related paths now trigger multi-GPU CI selection; verify the intended files select the new stage.jenkins/L0_Test.groovy— Adds the two-node B300 functional stage; verify its hardware label, test list, node/GPU counts, and sbatch setup.tests/integration/defs/perf/test_efa_disaggregated.py— Covers EFA worker checks, distinct-node placement, eight-request output parity, and transfer-log validation. Listed in the new test-db entry.tests/integration/test_lists/test-db/l0_dgx_b300_efa_multi_nodes.yml— Adds a pre-merge selector for two-GPU B300/GB110 Ubuntu x86_64 systems with a 30-minute timeout.tests/scripts/perf-sanity/disaggregated/b300_qwen3_0.6b_efa_functional.yaml— Adds the BF16 B300 functional configuration with KV cache manager V2 and the NIXL LIBFABRIC/EFA backend; verify both workers use the intended settings.tests/test_common/efa_validation.py— Adds log checks for backend startup, KV cache V2, EFA activity, and distinct matching send/receive request IDs.tests/unittest/scripts/test_efa_validation.py— Adds CPU-only tests for valid transfers and key failure cases; this helper test is not an integration test requiring a test-db entry.jenkins/current_image_tags.properties— Updates five image tags; verify the promoted tags remain available and correspond to the intended image variants.