Skip to content

[None][feat] Afmoe trinity support - #13148

Merged
brb-nv merged 8 commits into
NVIDIA:mainfrom
alyosha-swamy:afmoe-trinity-support
Jun 6, 2026
Merged

[None][feat] Afmoe trinity support#13148
brb-nv merged 8 commits into
NVIDIA:mainfrom
alyosha-swamy:afmoe-trinity-support

Conversation

@alyosha-swamy

@alyosha-swamy alyosha-swamy commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added AFMoE (Arcee Foundation MoE) model for inference with TensorRT-LLM
    • Implemented Hugging Face checkpoint loading support for AFMoE models
    • Added support for tensor parallelism, dynamic MoE routing, and optimized attention variants
  • Tests

    • Added comprehensive test suite for AFMoE model components and integration

Description

Test Coverage

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)

  • 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.

@coderabbitai

coderabbitai Bot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Introduces a new AFMoE (Arcee Foundation MoE) model implementation for TensorRT-LLM, including a model architecture with specialized attention and MoE layers, a Hugging Face weight mapper for model weight conversion, public API exports, and comprehensive unit tests. Configuration updates exclude the test file from ruff formatting.

Changes

Cohort / File(s) Summary
Build Configuration
pyproject.toml
Added test file exclusion to ruff format configuration.
Model Implementation
tensorrt_llm/_torch/models/modeling_afmoe.py
New inference-only AFMoE model with AfmoeConfig, AfmoeGate (router via TensorRT operator), AfmoeMoE (combined routed experts with optional shared MLP), AfmoeAttention (sliding-window/local attention with gating), AfmoeDecoderLayer (hybrid dense/MoE layers), AfmoeModel (decoder stack), and AfmoeForCausalLM (causal LM wrapper with weight preprocessing).
Public API Exports
tensorrt_llm/_torch/models/__init__.py, tensorrt_llm/_torch/models/checkpoints/__init__.py
Exported AfmoeForCausalLM model class and AfmoeHfWeightMapper weight mapper to public API.
Weight Mapping
tensorrt_llm/_torch/models/checkpoints/hf/afmoe_weight_mapper.py
New AfmoeHfWeightMapper registered for HF weight conversion; remaps expert projection weights (gate_proj/up_proj/down_projw1/w3/w2), router gate paths, and expert bias to gate correction bias; special handling for MoE module weight loading.
Unit Tests
tests/unittest/_torch/modeling/test_modeling_afmoe.py
Comprehensive test suite covering registry behavior, routing validation, HF weight mapping, weight loading integration, tensor-parallel attributes, and CUDA sanity/build checks.

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant AfmoeModel
    participant AfmoeDecoderLayer
    participant AfmoeAttention
    participant AfmoeMoE
    participant AfmoeGate
    participant Experts
    participant SharedMLP

    Client->>AfmoeModel: forward(input_ids, position_ids, attn_metadata)
    AfmoeModel->>AfmoeModel: Embed tokens + optional muP scaling
    loop Each DecoderLayer
        AfmoeModel->>AfmoeDecoderLayer: forward(hidden_states, position_ids, attn_metadata)
        AfmoeDecoderLayer->>AfmoeAttention: forward(hidden_states, position_ids, attn_metadata)
        AfmoeAttention->>AfmoeAttention: Compute Q/K with RMSNorm
        AfmoeAttention->>AfmoeAttention: Attention (sliding-window or full per layer_type)
        AfmoeAttention->>AfmoeAttention: Gate projection + sigmoid gate
        AfmoeAttention->>AfmoeAttention: Output * gate
        AfmoeAttention-->>AfmoeDecoderLayer: Gated attention output
        alt Dense Layer (idx < num_dense_layers)
            AfmoeDecoderLayer->>AfmoeDecoderLayer: GatedMLP forward
        else MoE Layer
            AfmoeDecoderLayer->>AfmoeMoE: forward(hidden_states, attn_metadata)
            AfmoeMoE->>AfmoeGate: Gate forward (TensorRT dsv3_router_gemm_op)
            AfmoeGate-->>AfmoeMoE: Router logits + top-k routing
            AfmoeMoE->>Experts: Route & load balance
            Experts-->>AfmoeMoE: Expert outputs
            AfmoeMoE->>SharedMLP: Shared gated MLP forward (optional)
            SharedMLP-->>AfmoeMoE: Shared output
            AfmoeMoE->>AfmoeMoE: Combine routed + shared outputs
            AfmoeMoE->>AfmoeMoE: Optional AllReduce (TP sync)
            AfmoeMoE-->>AfmoeDecoderLayer: MoE output
        end
        AfmoeDecoderLayer->>AfmoeDecoderLayer: Residual connections + RMSNorms
        AfmoeDecoderLayer-->>AfmoeModel: Layer output
    end
    AfmoeModel->>AfmoeModel: Final RMSNorm
    AfmoeModel-->>Client: Logits
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~75 minutes

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 2.22% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning PR description is incomplete - only contains template boilerplate with no actual description, test coverage information, or implementation details filled in. Complete the PR description by filling in the Description section explaining what AFMoE support is and why it's needed, add Test Coverage section listing the test cases provided, and confirm checklist items have been properly reviewed.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title '[None][feat] Afmoe trinity support' is specific and related to the main change—adding AFMoE (Arcee Foundation MoE) model support—though 'trinity support' could be clearer.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

🧹 Nitpick comments (1)
tensorrt_llm/_torch/models/modeling_afmoe.py (1)

16-16: Prefer built-in types over typing module equivalents.

Per coding guidelines for Python 3.10+, use built-in dict and list instead of typing.Dict and typing.List.

♻️ Proposed fix
-from typing import Dict, List, Optional
+from typing import Optional

Then update the usages:

  • Line 115: List[Dict]list[dict]
  • Line 506: Dictdict

Based on learnings: "In TensorRT-LLM (Python requires >=3.10), you can use Python 3.10+ features (e.g., PEP 585 generics like dict[str, int], list[str], etc.) throughout the codebase."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tensorrt_llm/_torch/models/modeling_afmoe.py` at line 16, Replace typing
module generics with built-in generics: in the import line that currently reads
"from typing import Dict, List, Optional" remove Dict and List and keep only
what's needed (e.g., Optional) and update all usages — change the annotation
"List[Dict]" (used around the symbol at line ~115) to "list[dict]" and change
standalone "Dict" annotations (around line ~506) to "dict"; ensure imports
reflect the removed typing names and run type checks.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@tensorrt_llm/_torch/models/checkpoints/hf/afmoe_weight_mapper.py`:
- Around line 1-6: This file is missing the required NVIDIA copyright header;
add the standard NVIDIA Python source file header with the current year at the
top of the file before any imports. Ensure the header appears above the existing
imports (before "from torch import nn") and is included in every new Python
module such as this one that defines/uses HfWeightMapper, register_mapper, and
MoE so it complies with the project's licensing/coding guidelines.

In `@tests/unittest/_torch/modeling/test_modeling_afmoe.py`:
- Around line 1-7: Add the required NVIDIA copyright header at the very top of
the test file (above the existing imports such as "import unittest", "import
torch", and "import tensorrt_llm") to comply with repository coding guidelines;
ensure the header text matches the project's standard copyright block and is
placed before any module-level code or docstrings so it applies to the whole
file.

---

Nitpick comments:
In `@tensorrt_llm/_torch/models/modeling_afmoe.py`:
- Line 16: Replace typing module generics with built-in generics: in the import
line that currently reads "from typing import Dict, List, Optional" remove Dict
and List and keep only what's needed (e.g., Optional) and update all usages —
change the annotation "List[Dict]" (used around the symbol at line ~115) to
"list[dict]" and change standalone "Dict" annotations (around line ~506) to
"dict"; ensure imports reflect the removed typing names and run type checks.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5e3ed3d6-51a9-439c-ad84-b7eba71580c1

📥 Commits

Reviewing files that changed from the base of the PR and between 461f3b9 and 723da98.

📒 Files selected for processing (6)
  • pyproject.toml
  • tensorrt_llm/_torch/models/__init__.py
  • tensorrt_llm/_torch/models/checkpoints/__init__.py
  • tensorrt_llm/_torch/models/checkpoints/hf/afmoe_weight_mapper.py
  • tensorrt_llm/_torch/models/modeling_afmoe.py
  • tests/unittest/_torch/modeling/test_modeling_afmoe.py

Comment thread tensorrt_llm/_torch/models/checkpoints/hf/afmoe_weight_mapper.py
Comment thread tests/unittest/_torch/modeling/test_modeling_afmoe.py
@SimengLiu-nv

Copy link
Copy Markdown
Collaborator

This PR is really huge. Is it possible to break into smaller pieces?

@SimengLiu-nv

Copy link
Copy Markdown
Collaborator

@alyosha-swamy If I understand correctly, Add AFMoE support is the only functional changes if the PR.
All the other commits can be replaced by rebase to the latest main branch.

If you agree, please clean up the PR commit history.

@alyosha-swamy
alyosha-swamy force-pushed the afmoe-trinity-support branch from bd342b6 to 812614a Compare May 7, 2026 17:46
@alyosha-swamy

Copy link
Copy Markdown
Contributor Author

@alyosha-swamy If I understand correctly, Add AFMoE support is the only functional changes if the PR. All the other commits can be replaced by rebase to the latest main branch.

If you agree, please clean up the PR commit history.

This is cleaned now, is there anything else we can do to get this merged? We have a time-sensitive task blocked on it

@alyosha-swamy

Copy link
Copy Markdown
Contributor Author

@

@alyosha-swamy If I understand correctly, Add AFMoE support is the only functional changes if the PR. All the other commits can be replaced by rebase to the latest main branch.

If you agree, please clean up the PR commit history.

Hi, pinging again for a status update here pleease :)

@alyosha-swamy

Copy link
Copy Markdown
Contributor Author

@alyosha-swamy If I understand correctly, Add AFMoE support is the only functional changes if the PR. All the other commits can be replaced by rebase to the latest main branch.
If you agree, please clean up the PR commit history.

Hi, pinging again for a status update here pleease :) cc: @SimengLiu-nv @nvpohanh

@SimengLiu-nv SimengLiu-nv 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.

Additional Concerns:

  1. No coverage of end-2end model tests.
  2. AFMoE attention-DP path shape-mismatches because gate/MLP layers stay TP-sharded:

tensorrt_llm/_torch/models/modeling_afmoe.py:283

AfmoeAttention.gate_proj is constructed with the original model_config.mapping, while the base Attention constructor internally switches the attention projections to effective tp_size=1 when mapping.enable_attention_dp=True. That means in attention-DP mode the attention output is full-width, but gate_proj(hidden_states) is still column-sharded. The multiply at line 343 can then fail with a shape mismatch.

The same attention-DP issue applies to dense/shared GatedMLP construction in this file, which also uses the original TP mapping instead of the overridden_tp_size=1 pattern used by nearby models. Please either explicitly reject attention-DP for AFMoE or wire the AFMoE gate/MLP modules with the ADP-safe mapping behavior used by existing model implementations.

Comment thread tensorrt_llm/_torch/models/checkpoints/hf/afmoe_weight_mapper.py
Comment thread tests/unittest/_torch/modeling/test_modeling_afmoe.py
@SimengLiu-nv

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #50827 [ run ] triggered by Bot. Commit: 6380958 Link to invocation

@SimengLiu-nv SimengLiu-nv 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.

LGTM.

@alyosha-swamy
alyosha-swamy force-pushed the afmoe-trinity-support branch from 1b42f5e to fba10c3 Compare May 31, 2026 07:02
Signed-off-by: Alyosha-Swamy <raghav@arcee.ai>
@alyosha-swamy
alyosha-swamy force-pushed the afmoe-trinity-support branch from fba10c3 to c425f61 Compare May 31, 2026 07:25
@brb-nv

brb-nv commented May 31, 2026

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #51263 [ run ] triggered by Bot. Commit: c425f61 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #51263 [ run ] completed with state SUCCESS. Commit: c425f61
/LLM/main/L0_MergeRequest_PR pipeline #40684 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

@brb-nv

brb-nv commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Multiple tests are failing and I can reproduce them locally.

tests/unittest/_torch/modeling/test_modeling_afmoe.py::TestAfmoeTPAttributes::test_allreduce_created_for_tp2 FAILED
tests/unittest/_torch/modeling/test_modeling_afmoe.py::TestAfmoeTPAttributes::test_qkv_output_includes_fused_gate FAILED
tests/unittest/_torch/modeling/test_modeling_afmoe.py::TestAfmoeAllCloseToHF::test_afmoe_allclose_to_hf Fatal Python error: Aborted
tests/unittest/_torch/modeling/test_modeling_afmoe.py::TestAfmoeSanity::test_afmoe_sanity Fatal Python error: Aborted

Kindly fix them, confirm tests pass locally and post to retrigger CI again.

Branch I used to test: https://github.com/brb-nv/TensorRT-LLM/tree/user/brb/shepherd-afmoe-branch

Signed-off-by: Alyosha-Swamy <raghav@arcee.ai>
@alyosha-swamy

Copy link
Copy Markdown
Contributor Author

/bot run --disable-fail-fast

Signed-off-by: Alyosha-Swamy <raghav@arcee.ai>
@alyosha-swamy
alyosha-swamy force-pushed the afmoe-trinity-support branch from f1cd731 to 72fe838 Compare June 4, 2026 13:59
Signed-off-by: Alyosha-Swamy <raghav@arcee.ai>
@brb-nv

brb-nv commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52132 [ run ] triggered by Bot. Commit: 1397a7e Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52132 [ run ] completed with state SUCCESS. Commit: 1397a7e
/LLM/main/L0_MergeRequest_PR pipeline #41457 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

@alyosha-swamy

Copy link
Copy Markdown
Contributor Author

/bot run --disable-fail-fast

Can't seem to identify this problem, all tests pass for me locally

@brb-nv

brb-nv commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52203 [ run ] triggered by Bot. Commit: 1397a7e Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52203 [ run ] completed with state SUCCESS. Commit: 1397a7e
/LLM/main/L0_MergeRequest_PR pipeline #41523 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

@brb-nv

brb-nv commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Hi, I see the following issue with Afmoe test in CI:

[2026-06-05T04:11:09.119Z] unittest/DGX_B200-PyTorch-5/unittest/_torch/modeling/test_modeling_afmoe.py::TestAfmoeSanity::test_afmoe_sanity <- _torch/modeling/test_modeling_afmoe.py 
[2026-06-05T04:11:09.119Z] ============================================================
[2026-06-05T04:11:09.119Z] UNITTEST FAILED with exit code: -6
[2026-06-05T04:11:09.120Z] Command: -m pytest --ignore=/tmp/TensorRT-LLM/src/tests/integration -vv --tb=short -rF --timeout=2400 --timeout-method=thread --periodic-junit --periodic-batch-size=1 --periodic-save-unfinished-test --test-prefix=DGX_B200-PyTorch-5/unittest --waives-file=/home/svc_tensorrt/bloom/scripts/nsc-svg-slurm-1-vscode-02.nvidia.com-multi_node_test-jenkins-llm-main-l0_test-x86_64-single-gpu-2910-5fd01e/waives.txt unittest/_torch/modeling/test_modeling_afmoe.py -p no:xdist --periodic-junit-xmlpath=/home/svc_tensorrt/bloom/scripts/nsc-svg-slurm-1-vscode-02.nvidia.com-multi_node_test-jenkins-llm-main-l0_test-x86_64-single-gpu-2910-5fd01e/results-sub-unittests-unittest-_torch-modeling-test_modeling_afmoe.py.xml
[2026-06-05T04:11:09.120Z] ============================================================
[2026-06-05T04:11:09.120Z] 
[2026-06-05T04:11:09.120Z] ------------------------------------------------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------------------------------------------------
[2026-06-05T04:11:09.120Z] /usr/local/lib/python3.12/dist-packages/requests/__init__.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (6.0.0.post1)/charset_normalizer (3.4.4) doesn't match a supported version!
[2026-06-05T04:11:09.120Z]   warnings.warn(
[2026-06-05T04:11:09.120Z] Fatal Python error: Aborted
[2026-06-05T04:11:09.120Z] 
[2026-06-05T04:11:09.120Z] Thread 0x000073f1e28ff6c0 (most recent call first):
[2026-06-05T04:11:09.120Z]   File "/usr/lib/python3.12/threading.py", line 359 in wait
[2026-06-05T04:11:09.120Z]   File "/usr/lib/python3.12/threading.py", line 655 in wait
[2026-06-05T04:11:09.120Z]   File "/usr/lib/python3.12/threading.py", line 1429 in run
[2026-06-05T04:11:09.120Z]   File "/usr/lib/python3.12/threading.py", line 1073 in _bootstrap_inner
[2026-06-05T04:11:09.120Z]   File "/usr/lib/python3.12/threading.py", line 1030 in _bootstrap
[2026-06-05T04:11:09.120Z] 
[2026-06-05T04:11:09.120Z] Current thread 0x000073f80a04a740 (most recent call first):
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/attention_backend/trtllm.py", line 1488 in _run
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/attention_backend/trtllm.py", line 1710 in forward
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/modules/attention.py", line 766 in _attn_impl
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/modules/attention.py", line 840 in forward_impl
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/modules/attention.py", line 935 in forward
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/models/modeling_afmoe.py", line 294 in forward
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py", line 1789 in _call_impl
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py", line 1778 in _wrapped_call_impl
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/models/modeling_afmoe.py", line 367 in forward
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py", line 1789 in _call_impl
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py", line 1778 in _wrapped_call_impl
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/models/modeling_afmoe.py", line 441 in forward
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py", line 1789 in _call_impl
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/torch/nn/modules/module.py", line 1778 in _wrapped_call_impl
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/models/modeling_utils.py", line 594 in forward
[2026-06-05T04:11:09.120Z]   File "/tmp/TensorRT-LLM/src/tests/unittest/_torch/modeling/test_modeling_afmoe.py", line 375 in test_afmoe_sanity
[2026-06-05T04:11:09.120Z]   File "/usr/lib/python3.12/unittest/case.py", line 589 in _callTestMethod
[2026-06-05T04:11:09.120Z]   File "/usr/lib/python3.12/unittest/case.py", line 634 in run
[2026-06-05T04:11:09.120Z]   File "/usr/lib/python3.12/unittest/case.py", line 690 in __call__
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/unittest.py", line 389 in runtest
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/runner.py", line 179 in pytest_runtest_call
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_callers.py", line 121 in _multicall
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_manager.py", line 120 in _hookexec
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_hooks.py", line 512 in __call__
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/runner.py", line 245 in <lambda>
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/runner.py", line 353 in from_call
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/runner.py", line 244 in call_and_report
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/runner.py", line 137 in runtestprotocol
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/runner.py", line 118 in pytest_runtest_protocol
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_callers.py", line 121 in _multicall
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_manager.py", line 120 in _hookexec
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_hooks.py", line 512 in __call__
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/main.py", line 396 in pytest_runtestloop
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_callers.py", line 121 in _multicall
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_manager.py", line 120 in _hookexec
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_hooks.py", line 512 in __call__
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/main.py", line 372 in _main
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/main.py", line 318 in wrap_session
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/main.py", line 365 in pytest_cmdline_main
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_callers.py", line 121 in _multicall
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_manager.py", line 120 in _hookexec
[2026-06-05T04:11:09.120Z]   File "/usr/local/lib/python3.12/dist-packages/pluggy/_hooks.py", line 512 in __call__
[2026-06-05T04:11:09.121Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/config/__init__.py", line 199 in main
[2026-06-05T04:11:09.121Z]   File "/usr/local/lib/python3.12/dist-packages/_pytest/config/__init__.py", line 223 in console_main
[2026-06-05T04:11:09.121Z]   File "/usr/local/lib/python3.12/dist-packages/pytest/__main__.py", line 9 in <module>
[2026-06-05T04:11:09.121Z]   File "<frozen runpy>", line 88 in _run_code
[2026-06-05T04:11:09.121Z]   File "<frozen runpy>", line 198 in _run_module_as_main

Signed-off-by: Alyosha-Swamy <raghav@arcee.ai>
@alyosha-swamy
alyosha-swamy force-pushed the afmoe-trinity-support branch from e309efd to cb2645a Compare June 5, 2026 17:47
@brb-nv

brb-nv commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52416 [ run ] triggered by Bot. Commit: cb2645a Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52416 [ run ] completed with state FAILURE. Commit: cb2645a
/LLM/main/L0_MergeRequest_PR pipeline #41708 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

@brb-nv

brb-nv commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52457 [ run ] triggered by Bot. Commit: cb2645a Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #52457 [ run ] completed with state SUCCESS. Commit: cb2645a
/LLM/main/L0_MergeRequest_PR pipeline #41750 completed with status: 'SUCCESS'

CI Report

Link to invocation

@brb-nv
brb-nv merged commit d7a5872 into NVIDIA:main Jun 6, 2026
2 checks passed
2ez4bz pushed a commit to 2ez4bz/TensorRT-LLM that referenced this pull request Jun 8, 2026
Signed-off-by: Alyosha-Swamy <raghav@arcee.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community want to contribute PRs initiated from Community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants