Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9093e6b
[None][refactor] Split thop.attention into phased FMHA
yihwang-nv Sep 22, 2026
9e97e69
Merge origin/main into remove-attention-runner
yihwang-nv Oct 6, 2026
09e1623
[None][fix] Fix FP4 MLA scales and spcompress propagation
yihwang-nv Oct 6, 2026
601865e
Merge origin/main into remove-attention-runner
yihwang-nv Oct 7, 2026
34880af
Merge origin/main into remove-attention-runner
yihwang-nv Oct 9, 2026
6e1ec16
[None][refactor] Remove FMHA release hooks and attention op tests
yihwang-nv Oct 9, 2026
6f9b22f
[None][refactor] Remove unnecessary attention tests and comments
yihwang-nv Oct 9, 2026
84d6ce3
[None][refactor] Revert redundant FMHA manager test
yihwang-nv Oct 9, 2026
19aa1e6
[None][refactor] Trim attention test additions and redundant comments
yihwang-nv Oct 9, 2026
09136ae
Merge origin/main into remove-attention-runner
yihwang-nv Oct 9, 2026
e87921e
[None][fix] Restore phased attention validation and cache native runners
yihwang-nv Oct 12, 2026
3c95450
Merge origin/main into remove-attention-runner
yihwang-nv Oct 12, 2026
5631f84
[None][refactor] Move static attention config into fallback FMHA
yihwang-nv Oct 12, 2026
0be93d4
Merge origin/main into remove-attention-runner
yihwang-nv Oct 13, 2026
e4087b1
Merge origin/main into remove-attention-runner
yihwang-nv Oct 14, 2026
788cb16
[None][test] Use FP8 tolerance for modeling_v2 MLA context
yihwang-nv Oct 14, 2026
3beacdb
Merge origin/main into remove-attention-runner
yihwang-nv Oct 15, 2026
44b2a25
Merge origin/main into remove-attention-runner
yihwang-nv Oct 16, 2026
82529d1
[None][fix] Restore fallback attention validation and correct regress…
yihwang-nv Oct 15, 2026
785e292
Merge origin/main into remove-attention-runner
yihwang-nv Oct 20, 2026
8bbf8cb
Resolve merge conflicts with origin/main
yihwang-nv Oct 20, 2026
a93eb95
Merge origin/main into remove-attention-runner
yihwang-nv Oct 23, 2026
e754861
Resolve merge conflicts with origin/main
yihwang-nv Oct 23, 2026
002fe17
[None][refactor] Compose the native attention op from features with M…
yihwang-nv Oct 23, 2026
0fe4dbf
[None][refactor] Merge AttentionConfig into AttentionBase and key the…
yihwang-nv Oct 23, 2026
7577123
Merge origin/main into remove-attention-runner
yihwang-nv Oct 25, 2026
a056173
Resolve merge conflicts with origin/main
yihwang-nv Oct 25, 2026
6a75cbe
[None][fix] Gate FP8 output scale on FP8 context FMHA and address rev…
yihwang-nv Oct 27, 2026
1d226e5
Merge remote-tracking branch 'origin/main' into remove-attention-runner
yihwang-nv Oct 27, 2026
d4e6c82
[None][test] Remove deleted modeling_v2 target contract test from l0_…
yihwang-nv Oct 27, 2026
7ce605d
[None][fix] Keep the diffusion timestep out of the native FMHA params
yihwang-nv Oct 27, 2026
836009f
Merge origin/main into remove-attention-runner
yihwang-nv Oct 28, 2026
e596b37
Resolve merge conflicts with origin/main
yihwang-nv Oct 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions cpp/tensorrt_llm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,55 @@ set(API_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/cutlass_extensions/include
${API_INCLUDE_DIR})

get_filename_component(TRTLLM_REPO_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../.."
ABSOLUTE)
set(TRTLLM_FMHA_PARAMS_GENERATOR
"${TRTLLM_REPO_ROOT_DIR}/scripts/generate_fmha_params.py")
set(TRTLLM_FMHA_PARAMS_SCHEMAS
"${TRTLLM_REPO_ROOT_DIR}/tensorrt_llm/_torch/attention/backends/fmha/phased.py"
"${TRTLLM_REPO_ROOT_DIR}/tensorrt_llm/_torch/attention/backends/interface.py"
"${TRTLLM_REPO_ROOT_DIR}/tensorrt_llm/_torch/attention/backends/trtllm.py"
"${TRTLLM_REPO_ROOT_DIR}/tensorrt_llm/_torch/attention/backends/sparse/params.py"
)
# The C++ consumer decides which members of the mirrored runtime classes
# (TrtllmAttention, TrtllmAttentionMetadata) are emitted: a member crosses when
# these sources read it as attn.<name> / meta.<name>.
set(TRTLLM_FMHA_PARAMS_USAGE_SOURCES
"${CMAKE_CURRENT_SOURCE_DIR}/thop/attentionOp.h"
"${CMAKE_CURRENT_SOURCE_DIR}/thop/attentionFeature.h"
"${CMAKE_CURRENT_SOURCE_DIR}/thop/attentionVariant.h"
"${CMAKE_CURRENT_SOURCE_DIR}/thop/attentionOp.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/nanobind/thop/bindings.cpp")
set(TRTLLM_FMHA_PARAMS_SCHEMA_ARGS "")
foreach(_schema ${TRTLLM_FMHA_PARAMS_SCHEMAS})
list(APPEND TRTLLM_FMHA_PARAMS_SCHEMA_ARGS --module-path "${_schema}")
endforeach()
foreach(_usage ${TRTLLM_FMHA_PARAMS_USAGE_SOURCES})
list(APPEND TRTLLM_FMHA_PARAMS_SCHEMA_ARGS --usage-source "${_usage}")
endforeach()
set(TRTLLM_FMHA_PARAMS_GENERATED_INCLUDE_DIR
"${CMAKE_CURRENT_BINARY_DIR}/generated")
# Generate during configuration so clangd can resolve the headers before a
# build.
set_property(
DIRECTORY
APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS ${TRTLLM_FMHA_PARAMS_GENERATOR}
${TRTLLM_FMHA_PARAMS_SCHEMAS} ${TRTLLM_FMHA_PARAMS_USAGE_SOURCES})
execute_process(
COMMAND
"${Python3_EXECUTABLE}" "${TRTLLM_FMHA_PARAMS_GENERATOR}"
${TRTLLM_FMHA_PARAMS_SCHEMA_ARGS} --class-name FmhaParams --out-dir
"${TRTLLM_FMHA_PARAMS_GENERATED_INCLUDE_DIR}/tensorrt_llm/thop"
RESULT_VARIABLE TRTLLM_FMHA_PARAMS_RESULT
OUTPUT_VARIABLE TRTLLM_FMHA_PARAMS_OUTPUT
ERROR_VARIABLE TRTLLM_FMHA_PARAMS_OUTPUT)
if(NOT TRTLLM_FMHA_PARAMS_RESULT EQUAL 0)
message(
FATAL_ERROR
"Generating native FmhaParams failed:\n${TRTLLM_FMHA_PARAMS_OUTPUT}")
endif()

set(TARGET_ARCH "unknown")

message(STATUS "CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}")
Expand Down
1 change: 0 additions & 1 deletion cpp/tensorrt_llm/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ set_target_properties(tllm_common_environment

add_library(
common_src OBJECT
attentionOp.cpp
cublasMMWrapper.cpp
cudaFp8Utils.cu
cudaProfilerUtils.cpp
Expand Down
Loading
Loading