Skip to content

Commit 66b9f22

Browse files
add checks in trtllm gen fused moe module
Signed-off-by: Pamela <[email protected]>
1 parent 8b4adfa commit 66b9f22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tensorrt_llm/_torch/modules/fused_moe/fused_moe_trtllm_gen.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def __init__(
6868
weight_loading_mode=weight_loading_mode,
6969
)
7070

71+
sm_version = get_sm_version()
72+
assert sm_version < 120, "TRTLLMGenFusedMoE does not support SM120 and SM121."
73+
7174
assert not self.smart_router, "Smart router is not supported in TRTLLMGenFusedMoE."
7275

7376
self.num_slots = self.num_experts

0 commit comments

Comments
 (0)