Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions cpp/tensorrt_llm/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ set(PLUGIN_SOURCES)
set(PLUGIN_CU_SOURCES)

set(PLUGIN_LISTS
wanAttentionPlugin
bertAttentionPlugin
cpSplitPlugin
fusedLayernormPlugin
Expand Down
3 changes: 3 additions & 0 deletions cpp/tensorrt_llm/plugins/api/tllmPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "tensorrt_llm/plugins/mambaConv1dPlugin/mambaConv1dPlugin.h"
#include "tensorrt_llm/plugins/mixtureOfExperts/mixtureOfExpertsPlugin.h"
#include "tensorrt_llm/plugins/quantizeToFP4Plugin/quantizeToFP4Plugin.h"
#include "tensorrt_llm/plugins/wanAttentionPlugin/wanAttentionPlugin.h"
#if ENABLE_MULTI_DEVICE
#include "tensorrt_llm/plugins/cpSplitPlugin/cpSplitPlugin.h"
#include "tensorrt_llm/plugins/gemmAllReducePlugin/gemmAllReducePlugin.h"
Expand Down Expand Up @@ -208,6 +209,7 @@ extern "C"
{
static tensorrt_llm::plugins::IdentityPluginCreator identityPluginCreator;
static tensorrt_llm::plugins::BertAttentionPluginCreator bertAttentionPluginCreator;
static tensorrt_llm::plugins::WanAttentionPluginCreator wanAttentionPluginCreator;
static tensorrt_llm::plugins::FusedLayernormPluginCreator fusedLayernormPluginCreator;
static tensorrt_llm::plugins::GPTAttentionPluginCreator gptAttentionPluginCreator;
static tensorrt_llm::plugins::GemmPluginCreator gemmPluginCreator;
Expand Down Expand Up @@ -250,6 +252,7 @@ extern "C"
static std::array pluginCreators
= { creatorPtr(identityPluginCreator),
creatorPtr(bertAttentionPluginCreator),
creatorPtr(wanAttentionPluginCreator),
creatorPtr(gptAttentionPluginCreator),
creatorPtr(gemmPluginCreator),
creatorPtr(gemmSwigluPluginCreator),
Expand Down
21 changes: 21 additions & 0 deletions cpp/tensorrt_llm/plugins/wanAttentionPlugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION &
# AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
file(GLOB SRCS *.cpp)
set(PLUGIN_SOURCES ${PLUGIN_SOURCES} ${SRCS})
set(PLUGIN_SOURCES
${PLUGIN_SOURCES}
PARENT_SCOPE)
Loading