Skip to content

[None][feat] Mass merge back MiniMax-M3.1-Flash runtime optimizations for Rubin (SM107) - #22263

Open
peihu-nv wants to merge 1 commit into
NVIDIA:mainfrom
peihu-nv:m31-flash-rubin-runtime
Open

peihu-nv wants to merge 1 commit into
NVIDIA:mainfrom
peihu-nv:m31-flash-rubin-runtime

Conversation

@peihu-nv

@peihu-nv peihu-nv commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Dev Engineer Review

  • Large removals need a replacement check. The diff deletes the MiniMax-M3 kernels, PyTorch ops, idxk_split, router_split, and runtime_hooks_compat.py. Several comments now cite csrc/m3/... sources that the summary does not show as added. Confirm those files exist in the change set. The SM107 TP4 mcAllreduceNormTp4.cu has no replacement in the diff.
  • Defaults are on for many features. The objectives say engine features are opt-in through RuntimeHooks. These features default on, each with a kill switch: GPU timestamps, async stats RPC, lazy event scrub, GIL fast path, MXFP8 quant x16 and tile128x4 paths, float no-aux top-k path, and FlashInfer FP4 quantize at 4096+ rows. Confirm that these defaults match the stated intent.
  • Routing now rejects deployments by default. M3.1 routing requires TRTLLM_M3_KV_POOL_ZERO_INIT to equal "1". An unset variable defaults to "1", so the check passes by default. Confirm this behavior change is intended.
  • Concurrency paths need review. setScatterOrderStream and the fabric writer shutdown path involve locks, shutdown ordering, and fail-stop behavior. A race test covers the stream setter.
  • Vendor and build changes. The FlashInfer prims patch and lock digests changed. scripts/vendor/manage.py now skips unselected links and submodules. The build adds an opt-in BUILD_MSA_AOT option.
  • Fix claim not evidenced. The objectives cite a tp2ctx NCCL window leak fix. The summary shows removal of the NCCL window probe, but not the underlying fix.

QA Engineer Review

Test changes exist. Coverage is broad but mostly CPU-only. GPU and model-weight tests were not run, per the objectives. Two integration tests reached time limits without failures. C++ bounce gtests were reported as updated and run in CI, but no completed CI result is shown on the current head.

  • Added or modified: New CPU unit suites cover DEP hooks, fabric writer faults, disaggregated draft KV transfer, context preemption, prefetch, and router late binding. Modified suites cover the bounce C++ tests, MXFP8 and noaux kernels, and FlashInfer autotune cache.
  • Test-db entries shown: l0_a10 (GPU timestamp, completion reservation, block-offset guard, prefix token cache int32), l0_b200 (FP4 quant backend), l0_cpu (M3.1 hooks, pins, autotune cache, proxy stats, NVFP4 indexer config), and l0_gr100 (step hooks, pins, tail-back, primitives).
  • Not evidenced in the test-db: Many new suites, including test_fabric_writer_2gpu.py and test_prims_ts_worktile_scope.py, are not shown in the provided list excerpts.
  • Coverage verdict: needs follow-up. GPU and weight-dependent paths were not run. Pending CI results are not established.

Per-file QA perspective (grouped by area):

  • Bounce transport and NIXL: Order-stream race, copy-engine fallback, and ExecPool priority tests. Verify scatter counters and fallback under capture.
  • KV cache V2 and scheduler: Lazy scrub, GIL fast path, completion reservation, and context preemption. Verify default-off and kill-switch behavior.
  • MiniMax-M3.1 targets: Runtime hook wiring and removed switches (BATCH_CHANGED_ONLY, SKIP_ACCEPTED_UPLOAD). Verify KeyError or ignore behavior for removed IDs.
  • Speculative decoding and sampler: One-hot padding, tail bookkeeping, and override hooks. Verify stock results when overrides decline.
  • Serving and config schemas: context_only, enable_disagg_completion_reservation, nvfp4 indexer dtype, and router session limits. Verify schema defaults and validation errors.
  • Kernel tests: MXFP8 quantization cross-process comparison and noaux FP32 path. Verify byte-exact parity with fallback paths.

Description

Runtime half of the MiniMax-M3.1-Flash Rubin (SM107) merge-back. #22261 added the Modeling V2 targets; this PR adds the engine support they use.

Defaults are unchanged. Each feature is opt-in through RuntimeHooks (with an env override); a model that sets no hook runs exactly as on main. The six M3.1 targets opt in to what they use.

Area What changes
Executor C++ step-input scatter, unchanged-input upload skips, GPU timestamps, post-launch admission, cancel-path guards, optional async stats RPC
Scheduler / KV cache V2 Context-only preemption, shortest-first aging, per-request chunk cap, context fill, out-of-pages retry gate, disagg completion reservation, gen KV prefetch
KV connector KvCacheConnectorConfig.context_only (connector + speculative decoding on a context server)
Disaggregated serving Drafter context-window transfer, opt-in fabric batch writes, ordered NIXL bounce scatter, consensus and failure-handling fixes
Speculative decoding Block verification (rejection_sample_method: block), sampler override hooks, sync-free one-hot draft probs
MSA / attention RuntimeHooks.sparse_attention, NVFP4 index keys, long-context CUDA graphs, optional MSA AOT build
Kernels / tuning MXFP8 quantization paths (byte-identical), FP32 noaux_tc weights, AutoTuner tactic bundles, a per-model MegaMoE _default_tactic hook
MiniMax-M3 cleanup Removes unused trtllm:: M3 kernels and the compat shim; adds DSpark acceptance checks to the M3.1 accuracy tests

Test Coverage

  • M3.1 accuracy with the DSpark acceptance probe passes on all six targets on Rubin (rate 0.46–0.47, length 4.23–4.30; thresholds 0.42 / 3.85).
  • New unit tests for each feature, plus a CPU check that each target opts in as listed; the full CPU test stage passes.
  • Single-GPU pre-merge CI passes; multi-GPU stages run after approval.
  • Serve-schema and llm-args golden-manifest checks pass.

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-compatible or api-breaking. For api-breaking, include BREAKING in 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.

@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84811 [ run ] triggered by Bot. Commit: bf7d062 Link to invocation

@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84811 [ run ] completed with state FAILURE. Commit: bf7d062
/LLM/main/L0_MergeRequest_PR pipeline #70174 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84815 [ run ] triggered by Bot. Commit: 091069e Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84815 [ run ] completed with state FAILURE. Commit: 091069e
/LLM/main/L0_MergeRequest_PR pipeline #70178 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84850 [ run ] triggered by Bot. Commit: cf0bdcc Link to invocation

@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84866 [ run ] triggered by Bot. Commit: cf0bdcc Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84850 [ run ] completed with state ABORTED. Commit: cf0bdcc

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84866 [ run ] completed with state FAILURE. Commit: cf0bdcc
/LLM/main/L0_MergeRequest_PR pipeline #70226 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84874 [ run ] triggered by Bot. Commit: cf0bdcc Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84874 [ run ] completed with state SUCCESS. Commit: cf0bdcc
/LLM/main/L0_MergeRequest_PR pipeline #70235 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@peihu-nv
peihu-nv force-pushed the m31-flash-rubin-runtime branch from cf0bdcc to e27ebc6 Compare November 15, 2026 02:48
@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@peihu-nv
peihu-nv force-pushed the m31-flash-rubin-runtime branch from e27ebc6 to f30cafd Compare November 15, 2026 04:58
@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

1 similar comment
@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84949 [ run ] triggered by Bot. Commit: f30cafd Link to invocation

@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84959 [ run ] triggered by Bot. Commit: f8bd020 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84949 [ run ] completed with state ABORTED. Commit: f30cafd

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84959 [ run ] completed with state SUCCESS. Commit: f8bd020
/LLM/main/L0_MergeRequest_PR pipeline #70315 completed with status: 'UNSTABLE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Link to invocation

@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@peihu-nv
peihu-nv force-pushed the m31-flash-rubin-runtime branch from a24d365 to 614e149 Compare November 15, 2026 17:35
@peihu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88704 [ run ] triggered by Bot. Commit: 547017a Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88698 [ run ] completed with state ABORTED. Commit: 889a873

Link to invocation

@peihu-nv

peihu-nv commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88731 [ run ] triggered by Bot. Commit: 547017a Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88704 [ run ] completed with state ABORTED. Commit: 547017a
/LLM/main/L0_MergeRequest_PR pipeline #73682 completed with status: 'FAILURE'

CI Report

⚠️ Resource Maintenance — Test Coverage Reduced:

Resource maintenance in LLM/main/L0_Test-x86_64-Single-GPU #11862: 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.
Affected stages:
DGX_B300-PyTorch-1
DGX_B300-PyTorch-2
DGX_B300-PyTorch-3
DGX_B300-PyTorch-4

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88731 [ run ] completed with state FAILURE. Commit: 547017a
/LLM/main/L0_MergeRequest_PR pipeline #73705 completed with status: 'UNSTABLE'

CI Report

⚠️ Resource Maintenance — Test Coverage Reduced:

Resource maintenance in LLM/main/L0_Test-x86_64-Single-GPU #10899: 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.
Affected stages:
DGX_B300-PyTorch-1
DGX_B300-PyTorch-2
DGX_B300-PyTorch-3
DGX_B300-PyTorch-4

⚠️ Multi-GPU Label Required:
Multi-GPU tests require the ci: full pre-merge approved label on this PR. Either:

  • Wait for the PR to be fully approved — the label is added automatically once approval is complete. Having unresolved open comments is fine, or
  • If needed, ask a member of NVIDIA/trt-llm-ci-approvers to add the label manually.
    Then re-trigger CI with the same bot command (no rebase needed).

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Link to invocation

@peihu-nv

peihu-nv commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88756 [ run ] triggered by Bot. Commit: f56a3d8 Link to invocation

@peihu-nv

peihu-nv commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88762 [ run ] triggered by Bot. Commit: b90a615 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88756 [ run ] completed with state ABORTED. Commit: f56a3d8

Link to invocation

@peihu-nv

peihu-nv commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

1 similar comment
@peihu-nv

peihu-nv commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88783 [ run ] triggered by Bot. Commit: d31b0f7 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88762 [ run ] completed with state ABORTED. Commit: b90a615

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88783 [ run ] completed with state SUCCESS. Commit: d31b0f7
/LLM/main/L0_MergeRequest_PR pipeline #73750 completed with status: 'FAILURE'

CI Report

⚠️ Resource Maintenance — Test Coverage Reduced:

Resource maintenance in LLM/main/L0_Test-x86_64-Single-GPU #11880: 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.
Affected stages:
DGX_B300-PyTorch-1
DGX_B300-PyTorch-2
DGX_B300-PyTorch-3
DGX_B300-PyTorch-4

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@peihu-nv

peihu-nv commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88861 [ run ] triggered by Bot. Commit: fa2db62 Link to invocation

@peihu-nv

peihu-nv commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88914 [ run ] triggered by Bot. Commit: 9d7812e Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88861 [ run ] completed with state ABORTED. Commit: fa2db62
/LLM/main/L0_MergeRequest_PR pipeline #73819 completed with status: 'FAILURE'

CI Report

⚠️ Resource Maintenance — Test Coverage Reduced:

Resource maintenance in LLM/main/L0_Test-x86_64-Single-GPU #11186: 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.
Affected stages:
DGX_B300-PyTorch-1
DGX_B300-PyTorch-2
DGX_B300-PyTorch-3
DGX_B300-PyTorch-4

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@zongfeijing zongfeijing left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Kernel-side review (the 30 kernel-owned files and their call sites only): LGTM on correctness.

  • quantize_mxfp8_x16 / quantize_mxfp8_tile128x4 (quantization.cuh:1108-1252): index math, tails, padding rows and padded SF columns write the same bytes as quantize_with_block_size; the 2-lane SF shuffles stay converged (even column bounds, clamped tile loads); PDL wait/trigger match the 8-element kernel. Output alignment is covered in the CodeRabbit thread.
  • noAuxTcRoutingWeight (noAuxTcKernels.cu:122-148) returns early only when its result equals main's FP64 expression.
  • The removed trtllm:: MiniMax-M3 ops/kernels leave no includes or torch.ops.trtllm.* callers behind.

Non-blocking, test coverage:

  1. Following up on the earlier test_fp8_quantize.py notes: x16 is now SM107-only, and every Blackwell list that runs this file (B200, B300, GB300) is SM100/SM103, where both switches do nothing, so test_mxfp8_quantize_16elt_matches_8elt (test_fp8_quantize.py:372) compares the 8-element kernel with itself. l0_gr100 does not list the file, so neither new kernel runs in CI. Please add the test to l0_gr100 and skip it off SM107.
  2. noAuxTcFp32WeightEnabled() (noAuxTcKernels.cu:152-156) makes the FP32-weight kernels the default on every GPU, while the reason at :114 is Rubin-specific. Its parity test runs only in post-merge l0_gr100 and is --ignored at l0_h100.yml:100 and l0_b200.yml:374. Gate it to SM107 like x16, or keep the test in one Hopper/Blackwell list.
  3. No test calls trtllm::globaltimer_stamp (globaltimerStampOp.cpp:31) any more; test_gpu_timestamp.py, cited in earlier threads, is gone. A small check (two stamps around torch.cuda._sleep vs. a timed-event pair) would cover it.

@skip_pre_blackwell_unittest
@pytest.mark.skipif(os.environ.get("TRTLLM_DISABLE_MXFP8_QUANT_16ELT") == "1",
reason="the 16-element path is disabled in this process")
def test_mxfp8_quantize_16elt_matches_8elt(tmp_path):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Following up on the earlier notes on this test: with the x16 path now gated to SM107, both kill switches are no-ops on every GPU that runs this file in CI. The kernels/parallel entries of l0_b200, l0_b300, l0_gb300 and l0_gb300_multi_gpus run on SM100/SM103, and l0_h100 skips the test, so all 192 cases compare the 8-element kernel with itself. l0_gr100, the only 10.7 list, names its files one by one and does not include this one, so quantize_mxfp8_tile128x4 and quantize_mxfp8_x16 never run in CI.

Suggest adding unittest/_torch/kernels/parallel/test_fp8_quantize.py::test_mxfp8_quantize_16elt_matches_8elt to l0_gr100 and skipping the test when getSMVersion() != 107. That also saves the child-process run on the other lists.

// TRTLLM_DISABLE_NOAUX_TC_FP32_WEIGHT=1 keeps the FP64 expression.
static bool noAuxTcFp32WeightEnabled()
{
static bool const enabled = !getEnvSwitch("TRTLLM_DISABLE_NOAUX_TC_FP32_WEIGHT").value_or(false);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This turns the FP32-weight kernels on for every GPU and every float-output noaux_tc caller, for example DeepSeek-V3/R1 and Kimi-K2 style routing on H100/B200/B300. The comment at :114 gives a reason that applies only to Rubin (the FP64 clock drop). The fast path is exact by construction, but its only parity check, test_noaux_tc_fp32_weight.py, runs in post-merge l0_gr100. Every list that runs kernels/parallel on those GPUs --ignores it (l0_h100.yml:100, l0_b200.yml:374, l0_b300.yml:64, l0_gb300.yml:71).

Either gate fp32Weight to getSMVersion() == 107, as the x16 quantize path now is, or keep the test in one pre-merge Hopper or Blackwell list.


//! Store the GPU's %globaltimer (ns) into out[0] on the current stream (see kernels/globaltimerStamp.h).
//! out: an int64 CUDA tensor of >= 1 element.
void globaltimerStamp(torch::Tensor& out)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nothing in the tree exercises this op at this head. test_gpu_timestamp.py, which earlier review threads cite, is gone, and no remaining test calls torch.ops.trtllm.globaltimer_stamp or GpuTimestamp. A small GPU test would catch a missing registration (which silently falls back to timed events) or a wrong unit: check that the op is registered, and that two GpuTimestamps around torch.cuda._sleep agree with a timed-event pair.

… for Rubin (SM107)

Runtime and executor work behind the MiniMax-M3.1-Flash Rubin targets:
step-loop host hooks and their kill switches, disaggregated draft-KV
transfer, context preemption and fill policies, response and admission
fast paths, speculative-decoding uploads and one-hot draft-prob fills,
NVFP4 index keys for the MSA indexer, KV cache manager v2 additions,
a context-only KV connector mode, and the router and serving changes the
targets need.

Engine features keep main's defaults; the M3.1 targets opt into them
through RuntimeHooks (fabric batch writer, generation KV prefetch,
decode completion reservation, context-only preemption, store-aware
shortest-first ranking, NIXL bounce scatter on the order stream,
executor thread pinning), each with an environment override.

The M3.1 MegaMoE leaf picks its own default tactics (DEP8 decode bucket 128,
DEP2 prefill 16K rows) through a new runner `_default_tactic` hook, fills the
gather-index padding once per workspace and replays eager launches.

It also drops the trtllm:: originals of MiniMax-M3 kernels the targets
no longer call, removes the M3.1 runtime-hook compat shim, adds DSpark
acceptance checks to the M3.1 accuracy tests, and fixes a tp2ctx startup
abort from a leaked NCCL window buffer.

Signed-off-by: peihengh <259410613+peihu-nv@users.noreply.github.com>
@peihu-nv

peihu-nv commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88927 [ run ] triggered by Bot. Commit: a35c3e3 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #88914 [ run ] completed with state ABORTED. Commit: 9d7812e

Link to invocation

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-compatible Accepted LLM API contract change that is backwards-compatible

Projects

None yet

Development

Successfully merging this pull request may close these issues.