Repository navigation
[None][feat] Add the HALO-R planner and relay copy for per-layer dynamic EPLB - #20887
Conversation
_capture sets layers.eager, and four graph cases read it after their _capture call. _Layers.__init__ now declares the attribute, as it does starved_copy_stream for the hog cases, so the class names every attribute the cases use. Clears five missing-attribute diagnostics in the Pyrefly report on this PR; the tests behave the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Itamar Rosenfeld Rauch <irauch@nvidia.com>
|
/bot run --add-multi-gpu-test --extra-stage "GB200-4_GPUs-PyTorch-Post-Merge-1,GB200-4_GPUs-PyTorch-Post-Merge-2" --disable-fail-fast |
|
PR_Github #88368 [ run ] triggered by Bot. Commit: |
|
PR_Github #88331 [ run ] completed with state |
|
PR_Github #88368 [ run ] completed with state |
Brings the branch up to NVIDIA/TensorRT-LLM main 203e14f. One file conflicted: - scripts/generate_trtllm_serve_schemas.py: in _serve_schema, both sides added names to the llm_args import; kept both, this branch's HALO-Q/HALO-R auxiliary_sms bounds and main's cold-page option sets, in sorted order. Signed-off-by: Itamar Rosenfeld Rauch <irauch@nvidia.com>
|
/bot reuse-pipeline |
|
PR_Github #88490 [ reuse-pipeline ] triggered by Bot. Commit: |
|
PR_Github #88490 [ reuse-pipeline ] completed with state |
Brings the branch up to NVIDIA/TensorRT-LLM main, which now includes NVIDIA#21373 (HALO-Q' planner). Ten files conflicted; both sides are kept: - moeRebalanceHaloQKernel.cuh: HALO-Q's slot of a selected route reads the plan fields through plan_field_offset. - moeRebalanceTma.cu: the remote memory-sync domain helper, then main's cluster attribute; the helper (moeRebalanceFusedLaunch.h) now takes any launch attribute array of at least two entries. - arena.py: main's pair and team objects, peer helper chunks and per-layer helper-set limits apply to pools with helper multicast (HALO-Q); HALO-R's pools keep none of them. - llm_args.py, registry.py, manager.py: breakable prefill CUDA graphs are accepted for both planners. HALO-Q joins main's parent MoE graph and needs its 8192-token bucket under attention DP; HALO-R keeps capturing its layer calls in the runner's own segments (uses_parent_moe_graph is False). - layer.py, planner.py, hierarchical.py, the guide, the README and the tests: both sides; the test that HALO-Q rejects breakable prefill graphs is removed. The HALO-R tests follow main's _create_sets signature and its shared_banks default for helper_slot_mode. Signed-off-by: Itamar Rosenfeld Rauch <irauch@nvidia.com>
…fill rule in the schema An unset helper_slot_mode is shared_banks with planner halo_q, the field default, and per_layer_resident with planner halo_r, which keeps HALO-R's helper experts resident per layer. validate_planner_auxiliary_sms resolves it, in the same way it resolves auxiliary_sms. A value the user sets is kept, and a resolved default stays out of model_fields_set. The serve schemas mirror this with a halo_r default for helper_slot_mode. They also apply the 8192-token bucket and attention-DP rule for breakable prefill only to planners that join the parent MoE graph, as validate_per_layer_dynamic_eplb_cuda_graph does, so a HALO-R config without them stays valid. The guide and the HALO-R README section state the per-planner default; tests cover both planners and an unset planner. Signed-off-by: Itamar Rosenfeld Rauch <irauch@nvidia.com>
|
/bot run --disable-fail-fast |
|
PR_Github #88623 [ run ] triggered by Bot. Commit: |
|
PR_Github #88623 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
Brings the branch up to NVIDIA/TensorRT-LLM main 39a2b29. One file conflicted: - jenkins/L0_MergeRequest.groovy: in getMultiGpuFileChanged, both sides added a path after thop/allreduceOp.cpp; kept both, this branch's thop/moe/loadBalance/ and main's thop/phasedFmha, in sorted order. Signed-off-by: Itamar Rosenfeld Rauch <irauch@nvidia.com>
jenkins/UpdateTestDurations.groovy regenerates this file from CI's measured times and pushes it to main. Each run drops hand-added entries, and each made the next merge of main into this branch conflict. Keep main's copy. Until the HALO-R test-db entries have measured times, pytest-split estimates each one at the mean known duration; that changes shard balance only, not which tests run. Signed-off-by: Itamar Rosenfeld Rauch <irauch@nvidia.com>
|
/bot run --disable-fail-fast |
|
PR_Github #88709 [ run ] triggered by Bot. Commit: |
|
PR_Github #88709 [ run ] completed with state Resource maintenance in LLM/main/L0_Test-x86_64-Single-GPU #11158: AWS-PDX-SLURM-1 is unavailable for maintenance on 2026-12-02 17:00-23:00 UTC; H100_PCIe-PyTorch-Perf-1 was retired from main. |
Description
HALO-R is a second replica planner for per-layer dynamic EPLB (
moe_config.load_balancer.mode: per_layer_dynamic,MEGAMOE_CUTEDSL). It sits next to HALO-Q, which is already on main.planner: halo_rselects it;planner: halo_qstays the default. HALO-Q's code moved partly into helpers it now shares with HALO-R; see "Changes to HALO-Q" below.What this PR adds on top of HALO-Q:
haloRFusedKernel(moeRebalanceHaloR.cu) runs onauxiliary_smsCTAs (2–16) on the copy stream. It holds the count exchange, the planner (moeRebalanceHaloRPlanner.h), the route mapping and the relay copy (moeRebalanceRelay.cuh), and it publishes READY at its end.helper_slot_mode: per_layer_resident(the default), every rank keeps the same per-layer table of the expert each helper slot holds.per_layer_resident, andshared_banks, where all layers alternate between two banks and copy every helper every pass.prefill_cuda_graph_backend: breakablecaptures the MoE layers, the HALO-R kernel included. Every layer call hands the device constant values, so replays need no host bookkeeping and eager calls and replays can be mixed:test_halo_r_relay.pychecks the captured edge (graphs_route_wait_edge) and replays the graph in an adversarial serial order (graphs_serialized).planner: halo_q | halo_r, with HALO-R's limits checked on the config: at most 4 helper slots per rank, an even EP size from 2 to 32, at least 4 experts per rank, andauxiliary_smsfrom 2 to 16. HALO-R'sauxiliary_smsdefaults to 16, and HALO-Q's stays 4. Why 16 is both the default and the cap: see "Auxiliary SMs" under Performance.examples/wide_ep/ep_load_balancer/README.md,MOE_DEVELOPER_GUIDE.md) are updated.Design choices:
Changes to HALO-Q
HALO-R shares code with HALO-Q, so this PR edits HALO-Q's sources too. HALO-Q plans and copies as before; its behaviour changes on one error path, marked below.
moeRebalanceCompletion.cuhandmoeRebalanceFusedLaunch.h, whichmoeRebalanceTma.cunow calls.moeRebalanceHaloQKernel.cuhis now a template,materializeCompactedSelectedRoutes, which HALO-Q and HALO-R instantiate with their own slot mapping. HALO-Q's mapping,HaloQSelectedRouteSlot, has camelCase members (groupBegins,groupSizes,owners,helperSlots,localSlots) and is built with designated initializers.await_slicewaits throughmbarrierWaitParityVolatileincudaAsyncOps.cuh, the same volatiletry_wait.paritypoll with the same 32 ns backoff, which HALO-R's relay also uses.moeRebalanceOpChecks.hholds the checks both planners' ops share.moeRebalanceHaloQOp.cpptakes its tensor and int32 checks from it, andmoeRebalanceTmaOp.cppits CUDA-result check andcheckedInt. So the TMA op's int32 range error now reads "does not fit in int32" instead of "is outside the int32 range".HierarchicalSamiWeightBroadcast, takes its lease bookkeeping fromLiveBankLease(sami/lease.py), which HALO-R shares. A failed consumercuStreamWaitEventinrelease_generation_afternow aborts HALO-Q's handoff for good (lease.py:104-108): every later call on that endpoint raises, and it cannot launch again. Before, the call only raised.PER_LAYER_DYNAMIC_PLANNERSinper_layer_dynamic_eplb/registry.pymaps eachplannervalue to its group builder, held as a direct reference, and its capabilities.halo_qmaps tobuild_rebalance_slot_scheduler_group. The manager and the layers read it;llm_args.pyimports it lazily.RebalanceSlotSchedulerGroupdocuments the hooks another planner may override. It builds its copy endpoint in_bind_copy_endpoint._check_ownerkeeps the checks both planners share (closed group, device, MAIN) and hands a stream other than the bound MAIN to the_bind_main_streamhook. HALO-Q's version keeps binding MAIN once for life. It also declaresforget_helper_residency, which the layer calls when a backend binds again (every standard load binds each layer twice); HALO-Q's is a no-op, and HALO-R's resets its helper residency.auxiliary_smsfield now accepts 1 to 16; a per-planner check keeps HALO-Q at 1 to 8 (default 4) and words its own rejection.jenkins/L0_MergeRequest.groovyadds three multi-GPU related paths:cpp/tensorrt_llm/thop/moe/loadBalance/(both planners' ops),cpp/tensorrt_llm/kernels/cudaAsyncOps.cuh(now used by HALO-Q's and HALO-R's copies) andtests/unittest/_torch/moe/halo_r_reference.py(the referencetest_halo_r_caseschecks plans against).test_halo_q_casesruns HALO-Q's multi-GPU path on GB200 (see Test Coverage).moeRebalanceHaloRTest(15 of 15 pass), the fourtest_halo_r_casesandtest_halo_q_casesentries ofl0_gb200_multi_gpus.yml(21 + 1 pre-merge, 2 + 2 post-merge; 26 of 26 pass, none skipped) and the PR's CPU tests in eight files (433 of 433 pass).test_halo_r_traps: all three trap kinds pass, each in new ranks as single-node CI runs it. After the last change (forget_helper_residencydeclared on the base scheduler group), the final head ran again on one 4-GPU GB200 node: the three HALO-Q cases, the 21 pre-merge HALO-R cases and the four CPU files that cover the change all pass (130 of 130, none skipped).Related PR. #21373 (HALO-Q performance, open) edits 8 of this PR's files:
moeRebalanceHaloQKernel.cuh,moeRebalanceTma.cu,moeRebalanceTmaOp.cpp,cpp/tests/unit_tests/kernels/CMakeLists.txt,per_layer_dynamic_eplb/arena.py,sami/arena.py,sami/hierarchical.pyandl0_gb200_multi_gpus.yml. That includes the HALO-Q code this PR moves into shared helpers, and #21373 adds its own per-set peer-chunk mapping next to this PR'speer_helper_bases. #20887 merges first; #21373 rebases onto it, as agreed with its author.Performance on GB200
HALO-R against HALO-Q on DeepSeek-V4-Pro NVFP4 (61 layers) on
MEGAMOE_CUTEDSL, with live routing on GSM8K prompts (high expert imbalance) and 4 helper slots per rank. Both planners ran an earlier revision of this PR with the current 2 × 3 × 32 KiB relay. The later review commits share helpers, rename code and reword messages; they were not re-measured.Caveats:
auxiliary_sms16,per_layer_resident). HALO-Q ran eager, because per-layer dynamic EPLB rejects prefill CUDA graphs withplanner: halo_q, at its defaultauxiliary_smsof 4.per_layer_residentdefault fails at startup there (multicast bind OOM, see "Helper sets without multicast objects"), so it ranshared_banks.max_num_tokens8192. The 32-GPU runs had NCCL NVLS off.Metric. Per-layer MoE GPU time on the last GPU to finish: from the router end, or the shared expert's FC12 start if earlier, to MegaMoE's reduce end, with host-wait gaps removed; the median over 12 forwards × 61 layers. Ratios are HALO-R ÷ HALO-Q, paired per layer and forward, with a bootstrap 95 % CI. Below 1, HALO-R is faster.
At 32 GPUs, other comparisons (copy free, 2K / 8K):
shared_bankstoo: 0.7828 / 0.8131.shared_banks, built from [None][perf] HALO-Q' Algorithm: plan every EP above 8 in registers and repair only pairs that can move quota #21373): 0.8567 / 0.8565.At 8 GPUs, main's HALO-Q and this PR's HALO-Q are within 0.5 % of each other.
Auxiliary SMs. HALO-R's relay copies on the auxiliary SMs, one CTA each, and every auxiliary SM is one that the routed-input quantization and the fused shared-expert FC12 kernel leave free. HALO-R under graphs, per-layer time ÷ its time at 16 SMs:
kHaloRMaxCtas,moeRebalanceHaloR.h). The config admits 2 to 16. The relay should take as few SMs as possible, so that it does not impair the shared-expert computation running in parallel. 16 is the largest count we measured and nothing above it was tested, so the cap stays at 16 until a sweep above it.Limitations / not in this PR:
MEGAMOE_CUTEDSLdoes not serve.kMaxRanks = 32inmoeRebalanceHaloRPlanner.h), andmoeRebalanceHaloR.cuasserts that this equals HALO-Q's ownkMaxEp = 32. Lifting it needs a planner spread over more warps, with its per-rank state and rank masks widened, and HALO-Q's shared count-exchange and route passes widened with it.Test Coverage
tests/unittest/_torch/moe/test_halo_r_planner.pycovers the planner reference against worked examples and random routings, geometry validation, planner selection, and the rebind reset.tests/unittest/_torch/moe/test_halo_r_contracts.pycovers HALO-R's contract with HALO-Q's scheduler group, the kernel's trap and READY ordering, peer helper mappings, and residency reset ordering.tests/unittest/_torch/moe/test_dynamic_eplb_contracts.pycovers HALO-Q's endpoint as aLiveBankLease, including the abort after a failed consumer wait.tests/unittest/llmapi/test_llm_args.pychecks the config rejections and each planner'sauxiliary_smsdefault on the config itself.test_trtllm_serve_config_schemas.pycovers the serve schemas.usage/test_llmapi_config_capture.pychecks that the telemetry manifest capturesplanner.cpp/tests/unit_tests/kernels/moe/moeRebalanceHaloRTest.cpp(gtest, registered withadd_tllm_gtest) covers the planner and relay helpers.tests/unittest/_torch/moe/multi_gpu/test_halo_r_relay.py.test_halo_r_caseschecks every launch's routes and every received helper row byte for byte against a host reference plan. Its cases cover:per_layer_resident, HALO-R's defaults;graphs_route_wait_edge,graphs_serialized(multi-GPU, EP8 across 2 nodes): pass. Without the launch completion edge, the edge check fails and the serialized replay deadlocks.test_halo_q_casesruns the reference and two residency cases (reference,resident_sequence,resident_layers) withplanner: halo_q. It checks each launch against the helper experts HALO-Q reports: every route goes to its owner's home slot or to a helper slot that holds its expert, every helper row holds its expert byte for byte, and READY and the status words are set.test_halo_r_breakable_graph.pyruns a small MoE model, two MegaMoE CuteDSL layers withplanner: halo_rat its defaults, throughBreakableCUDAGraphRunneras the decoder engine drives it: eager forwards checked against the NVFP4 reference and the helper-slot weights, warm-up and capture of two token buckets, replays with fresh inputs around an eager call, and a capture that fails inside the second layer's MoE call, after which that layer refuses to launch and the load balancer still shuts down.test_halo_r_trapsfaults on purpose: a bad status word, a READY drain timeout, a grid rendezvous timeout. A trap leaves the ranks it ran on with a sticky CUDA error, so each kind needs new ranks: the test's MPIPoolExecutor starts new ones for every case, and undertrtllm-llmapi-launchonly the first trap kind of a pytest process runs and the others skip.l0_gb200_multi_gpus.yml):test_halo_r_caseswithout its two repeat cases (21 cases:-k "not [graphs_single] and not [gate_under_hog]"), andtest_halo_q_cases[halo_q_reference], each with TIMEOUT 10;graphs_single(one captured layer; three run pre-merge) andgate_under_hog(the eager hog at 4 CTAs; 16 CTAs run pre-merge), and the other two HALO-Q cases, each with TIMEOUT 10;ISOLATION:test_halo_r_traps(TIMEOUT 10), because it faults every GPU of the node. It runs only when named by node id, as there, or withHALO_R_TEST_TRAPS=1.ISOLATION:test_halo_r_breakable_graph.py(TIMEOUT 10, from its measured duration), so that its own exit timer, the last resort if it hangs, can end only its own process;jenkins/L0_Test.groovyfiles tests under isolation lines by substring.moeRebalanceHaloRTest(15 of 15 pass), the fourtest_halo_r_casesandtest_halo_q_casesentries ofl0_gb200_multi_gpus.yml(21 + 1 pre-merge, 2 + 2 post-merge; 26 of 26 pass, none skipped) and the PR's CPU tests in eight files (433 of 433 pass).test_halo_r_traps: all three trap kinds pass, each in new ranks as single-node CI runs it; undertrtllm-llmapi-launchthe first kind passes and the other two skip. Run as single-node CI runs them (one pytest process per entry, new ranks for every case), the five HALO-R and HALO-Q entries take 39.0 s to 337.6 s each (the 21 pre-merge HALO-R cases are the longest), which sizes their TIMEOUT at 10. After the last change (forget_helper_residencydeclared on the base scheduler group), the final head ran again on one 4-GPU GB200 node: the three HALO-Q cases, the 21 pre-merge HALO-R cases and the four CPU files that cover the change all pass (130 of 130, none skipped).test_halo_r_breakable_graph.py, run as single-node CI runs it on a GB200 node with 4 GPUs: 1 passed, none skipped, 47 s for the pytest process (23 s for the test itself); on the same node, under two negative controls (the abort of a layer whose capture failed removed; replays run eagerly) it fails with the expected assertion on all four ranks. The merge of main changes no file of this PR except where main also changed it (19 files; four hand-resolved conflicts, each keeping both sides).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 - either
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 tava architecture diagram if there is a significant design change in PR.
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
HALO-R adds a second planner for per-layer dynamic EPLB. The
planneroption defaults tohalo_q. Settinghalo_rselects the new planner and its relay-copy path. The change adds planner logic, a fused CUDA kernel, relay work mapping, Torch operators, and helper-residency handling.Configuration validation and schemas define HALO-R limits: even EP size from 2 to 32, at most 4 helper slots per rank, at least 4 home experts per rank, and
auxiliary_smsfrom 2 to 16 (default 16). HALO-Q keepsauxiliary_smsat most 8 (default 4). Breakable prefill CUDA graphs are allowed only for HALO-R. Decode CUDA graphs remain disabled.Risk areas for review:
planner.pyandhierarchical.pyrefactors affect HALO-Q. Confirm HALO-Q behavior is unchanged.moeRebalanceHaloQKernel.cuhrefactor moves selected-route materialization behind a callback. Confirm the HALO-Q mapping and failure status location are preserved.No completed build, test, or CI results were supplied for the current head.
QA Engineer Review
Test files changed:
tests/unittest/_torch/moe/test_halo_r_planner.py,tests/unittest/_torch/moe/test_halo_r_contracts.py,tests/unittest/_torch/moe/halo_r_reference.py(reference support module),tests/unittest/_torch/moe/multi_gpu/test_halo_r_relay.py,cpp/tests/unit_tests/kernels/moe/moeRebalanceHaloRTest.cpp.tests/unittest/_torch/moe/test_per_layer_dynamic_eplb.py,tests/unittest/_torch/moe/test_dynamic_eplb_contracts.py,tests/unittest/llmapi/test_llm_args.py,tests/unittest/llmapi/test_trtllm_serve_config_schemas.py,tests/unittest/usage/test_llmapi_config_capture.py,cpp/tests/unit_tests/kernels/CMakeLists.txt,tests/integration/test_lists/test-db/l0_gb200_multi_gpus.yml.Test functions and selectors:
test_halo_r(monkeypatch, case)intest_halo_r_relay.py. Covers relay copies, scheduler outputs, residency, graph replay and capture failures, stream ordering, and weight reloads. Selectortest_halo_ris listed inl0_gb200_multi_gpus.ymlpre-merge with a 45-minute timeout.test_halo_r_traps(monkeypatch, request, kind)intest_halo_r_relay.py. Opt-in trap cases inject status, READY, or grid-rendezvous failures. Selectortest_halo_r_trapsis listed in the post-merge section ofl0_gb200_multi_gpus.ymlwith a 45-minute timeout and isolation. Its node-level behavior is documented as intentionally faulting every GPU on the node.moeRebalanceHaloRTestcovers planner output, route slots, and relay work assignment.auxiliary_smslimits per planner, CUDA-graph compatibility, and runtime-to-schema default consistency.Coverage verdict: sufficient for the listed GB200 multi-GPU selectors and the added CPU and host tests. Test-run results are not available in the supplied evidence. No manual-QA list entry (
qa/) was found.Per-File QA Perspective
Build and C++ kernel sources
cpp/tensorrt_llm/kernels/moe/loadBalance/dynamicEplb/CMakeLists.txt: Builds HALO-R sources for SM100, SM103, or SM107 with CUDA 13.1 or newer. Otherwise, selects placeholder sources. Verify both paths.moeRebalanceHaloR.cu: Adds the fused HALO-R kernel and launch code. Verify status handling, relay completion, route-counter updates, and READY publication under failure.moeRebalanceHaloR.h: Adds public status, counter, parameter, and launch declarations. Verify callers respect parameter bounds.moeRebalanceHaloRPlanner.h: Adds planner, plan layout, helper assignment, and route-slot selection. Verify determinism, helper limits, and error statuses against the reference planner.moeRebalancePlaceholder.cpp: Adds HALO-R stubs for unsupported builds. Verify that calls fail with the intended error (exception for query and prepare functions,cudaErrorNotSupportedfor launch).moeRebalanceRelay.cuh: Adds relay copy with bulk, 16-byte, 4-byte, and byte fallback paths. Verify coverage and completion across destinations, planes, and alignments.moeRebalanceRelayWork.h: Adds relay destination, slice, plane, and item mapping. Covered by the host C++ test.moeRebalanceCompletion.cuh: Adds shared last-CTA, counter rearm, and READY publish helpers. Verify fence and ordering behavior for both HALO-Q and HALO-R.moeRebalanceFusedLaunch.h: Adds shared kernel load, occupancy sizing, and remote-sync-domain helpers. Verify that errors propagate and that a device with fewer than two sync domains returns zero.moeRebalanceTma.cu: Switches TMA fused path to the shared completion and launch helpers. Verify HALO-Q TMA behavior is unchanged, including the cold stream synchronization in helper-residency initialization.moeRebalanceHaloQKernel.cuh: Extracts selected-route materialization with a callback. Verify HALO-Q slot mapping and unmapped-status recording are preserved.cudaAsyncOps.cuh: Addsmbarrier_arrive_expect_tx_no_state, a no-op below SM 9.0. Verify the no-op path on older architectures.Torch bindings
cpp/tensorrt_llm/thop/moe/loadBalance/moeRebalanceHaloROp.cpp: Adds HALO-R state and operators for create, handle, submit, wait, join, counters, and destroy. Verify tensor validation, stream synchronization, and poisoned-state failure after CUDA errors.moeRebalanceOpChecks.h: Adds shared tensor, CUDA result, andintrange checks. Verify checks reject non-CUDA, wrong-dtype, noncontiguous, and undersized tensors.moeRebalanceHaloQOp.cpp: Uses shared checks in place of local helpers. Verify HALO-Q validation messages still identify the routes device.moeRebalanceTmaOp.cpp: Uses the sharedcheckCudaResult. Behavior should be unchanged.Build and CI scripts
jenkins/L0_MergeRequest.groovy: Treatscpp/tensorrt_llm/thop/moe/loadBalance/as multi-GPU-related for changed-file detection. Verify that changes in this directory trigger the intended multi-GPU jobs.Python runtime
tensorrt_llm/_torch/moe/fused_moe/per_layer_dynamic_eplb/halo_r_planner.py: Adds geometry validation, relay endpoint, and HALO-R scheduler group. Verify collective reuse authority, route waits, stream joins, and residency reset.per_layer_dynamic_eplb/layer.py: Selects the scheduler from the planner spec and resets helper residency on same-backend rebinding. Verify that HALO-Q rebinding is not affected.per_layer_dynamic_eplb/manager.py: Adds planner validation (defaulthalo_q), planner representation, and passeshelper_multicastto arena providers. Verify unsupported planner values are rejected.per_layer_dynamic_eplb/arena.py: Addshelper_multicastmode, peer helper mapping, and READY initialization for base or hierarchical arenas. Verify both modes.per_layer_dynamic_eplb/planner.py: Parameterizes spin-bound planner name, adds_bind_copy_endpoint, and adds a generic builder. Verify HALO-Q routing and generation behavior is unchanged.per_layer_dynamic_eplb/__init__.py: Documentation-only change in the package docstring.tensorrt_llm/_torch/moe/kernels/megamoe_scheduler/sami/lease.py: AddsLiveBankLease,event_handle, and generation release rules. Verify that a failed consumer wait aborts the handoff.megamoe_scheduler/sami/hierarchical.py:HierarchicalSamiWeightBroadcastnow inheritsLiveBankLease. Verify that removed reuse-authority methods have no remaining callers.megamoe_scheduler/sami/arena.py:LivePlaneView.mc_viewis optional. Verify that bind works without MC aliases and that multicast destinations are created only when every plane has an alias.tensorrt_llm/_torch/custom_ops/cpp_custom_ops.py: Registers fake implementations for HALO-R submit, wait, and join. Verify signatures match the native operators.tensorrt_llm/_torch/models/modeling_deepseekv4.py: Comment-only change. It clarifies that the fused shared-expert path is unavailable during decode CUDA-graph use.Configuration and schemas
tensorrt_llm/llmapi/llm_args.py: Addsplanner(defaulthalo_q, valueshalo_qandhalo_r). Raisesauxiliary_smsupper bound to 16. Adds HALO-R geometry and graph validation. Verify defaults and accepted graph backends.tensorrt_llm/schemas/trtllm-serve-config.schema.json: Addsplannerand conditionalauxiliary_smsrules. Verify schema acceptance matches runtime.tensorrt_llm/schemas/trtllm-serve-disagg-config.schema.json: Same change as the serve schema, with updated descriptions. Verify consistency with the serve schema.scripts/generate_trtllm_serve_schemas.py: Generates the planner-dependentauxiliary_smsconstraints. Verify the generated output matches the checked-in schemas.tensorrt_llm/usage/llm_args_golden_manifest.json: Capturesplanneras a categorical value. Verify both literals are accepted.Documentation
examples/wide_ep/README.md: Listsplanneras a per-layer option. Verify consistency with runtime validation.examples/wide_ep/ep_load_balancer/README.md: Documents HALO-R limits and graph behavior. Verify limits match runtime validation.tensorrt_llm/_torch/moe/fused_moe/MOE_DEVELOPER_GUIDE.md: Documents HALO-R residency, graph ordering, andforget_helper_residency. Verify against implementation.docs/source/features/parallel-strategy.md: Documents that per-layer dynamic EPLB runs without decode CUDA graphs and supports breakable prefill graphs with HALO-R. Documentation only.Test-list configuration
tests/integration/test_lists/test-db/l0_gb200_multi_gpus.yml: Addstest_halo_r(pre-merge, 45-minute timeout) andtest_halo_r_traps(post-merge, 45-minute timeout, isolated). Verify the trap case runs only on its intended node.Test code
tests/unittest/_torch/moe/multi_gpu/test_halo_r_relay.py: Multi-GPU relay, scheduler, residency, and trap tests.test_halo_ris listed in CI. Verify skip behavior on unsupported geometry.tests/unittest/_torch/moe/test_halo_r_planner.py: CPU planner and geometry tests. Not listed in the supplied test-list evidence.tests/unittest/_torch/moe/test_halo_r_contracts.py: CPU contract tests with fakes. Not listed in the supplied test-list evidence.tests/unittest/_torch/moe/halo_r_reference.py: Python planner reference used by tests. Test support only.tests/unittest/_torch/moe/test_per_layer_dynamic_eplb.py: Expectsplanner=halo_qin the manager representation. Not listed.tests/unittest/_torch/moe/test_dynamic_eplb_contracts.py: TestsHierarchicalSamiWeightBroadcastas aLiveBankLeasesubclass, a consumer-wait failure, and the planner name in the spin bound. Not listed.tests/unittest/llmapi/test_llm_args.py: Covers planner defaults,auxiliary_smslimits, geometry, and CUDA-graph compatibility. Not listed.tests/unittest/llmapi/test_trtllm_serve_config_schemas.py: Schema-to-runtime checks for planner andauxiliary_sms. Not listed.tests/unittest/usage/test_llmapi_config_capture.py: Addsmoe_config.load_balancer.plannerto expected captured paths. Not listed.cpp/tests/unit_tests/kernels/CMakeLists.txt: RegistersmoeRebalanceHaloRTestwith a 120-second timeout. Verify it runs in the host kernel-test workflow.cpp/tests/unit_tests/kernels/moe/moeRebalanceHaloRTest.cpp: Host unit tests for planner, route slots, and relay work. C++ test, not in Python lists.