Skip to content

[TRTLLM-17005][refactor] Component-local C++ Tests (Part 10) - #22990

Draft
Funatiq wants to merge 7 commits into
NVIDIA:mainfrom
Funatiq:dev/refactor/component-local-tests-10
Draft

Funatiq wants to merge 7 commits into
NVIDIA:mainfrom
Funatiq:dev/refactor/component-local-tests-10

Conversation

@Funatiq

@Funatiq Funatiq commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR refactors C++ kernel and Torch operator build dependencies so individual components can be linked and tested independently.

  • Replaces broad kernel source globs with explicit component source lists and adds configure-time checks for missing or duplicate source ownership.
  • Gives all seven Torch operator families explicit dependencies: attention, GEMM/quantization, MoE, distributed, sequence, VisualGen, and decoding.
  • Separates shared cuBLAS, FP4/FP8 quantization, and userbuffer allocation implementations from operator registration.
  • Fixes propagation of specialized and generated backend objects to component consumers while retaining aggregate library packaging.
  • Adds seven native registration-test executables and CPU CMake regressions covering ownership, dependency visibility, and generated FMHA object linkage.

@coderabbitai summary

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)

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

@Funatiq

Funatiq commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #87732 [ run ] triggered by Bot. Commit: b72f7c9 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

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

Expose the CUTLASS MoE backend through tllm::kernel_moe with explicit source
owners and dependencies. Preserve feature selection, generated instantiations,
architecture settings, and facade exports. Package residual kernel families
through explicit components and validate source ownership at configuration.

Retain CPU CMake regressions for ownership, backend delegation, and public/private
usage propagation in a standalone component test module.

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Give the sequence and DiT families direct component links and tllm aliases.
Forward specialized sequence objects to consumers, separate Ulysses permutations
from the DiT archive, and declare causal convolution environment dependencies.

Add focused host consumers covering schemas, CUDA dispatch registrations, and
absence of unrelated operators. Retain aggregate packaging.

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Replace the decoding facade dependency with explicit logits, speculative
decoding, LoRA/grouped GEMM, and operation utilities. Forward specialized
sampling, MHC, and compressor objects through the family helper.

Add a shared registration test helper and a focused consumer for existing
decoding schemas and Composite dispatch capability queries.

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Select explicit GEMM/quantization backends and retain cuBLASLt link requirements.
Separate the shared userbuffer allocator implementation from its registration,
retaining the allocator in the packaged aggregate.

Add a focused consumer for GEMM/quantization operators and custom classes.
Cover legacy namespaces and existing decoding cache-update registrations.

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Replace the attention facade dependency with explicit orchestration, MLA, RoPE,
indexing, tensor helpers, and specialized backend objects. Add a focused host
consumer for attention schemas and dispatch registrations.

Forward generated FMHA architecture objects through private library dependencies
and retain the standalone CMake regression for the final consumer link.

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Declare explicit MoE routing, communication, load-balancing, quantization, and
GEMM backends while retaining process-group calls and generated backend objects.
Add an isolated registration and custom-class consumer.

Share the cuBLAS implementation through th_cublas, retaining its operator
registration in GEMM. Correct internal declarations and use the OSS MoE header
and namespaces without relying on facade includes.

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Replace implicit facade linkage with explicit distributed communication,
process-group, quantization, and fused GEMM/all-reduce components. Add a focused
consumer for distributed operators and custom classes.

Share FP4/FP8 implementations through th_quantization while keeping registration
objects in GEMM. All seven families now declare direct dependencies; remove the
COMPONENT_LOCAL opt-in and implicit facade/process-group fallback.

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
@Funatiq
Funatiq force-pushed the dev/refactor/component-local-tests-10 branch from b72f7c9 to 323cfe2 Compare November 27, 2026 13:46
@Funatiq

Funatiq commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #87747 [ run ] triggered by Bot. Commit: 323cfe2 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #87747 [ run ] completed with state FAILURE. Commit: 323cfe2
/LLM/main/L0_MergeRequest_PR pipeline #72844 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

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants