Skip to content

Commit 03cac02

Browse files
committed
fix intermediate_size_factor initialization
Signed-off-by: Siyuan Fu <siyuanf@nvidia.com>
1 parent 33acaa2 commit 03cac02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csrc/trtllm_fused_moe_kernel_launcher.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ void FusedMoeLauncher::init_common(
432432
<< "the value of weight_layout is not recognized";
433433
this->weight_layout = static_cast<batchedGemm::gemm::MatrixLayout>(weight_layout);
434434
this->activation_type = activation_type;
435+
this->intermediate_size_factor = isGatedActivation(activation_type) ? 2 : 1;
435436
}
436437

437438
class Bf16MoeLauncher : public FusedMoeLauncher {

0 commit comments

Comments
 (0)