@@ -355,6 +355,7 @@ void trtllm_fp8_block_scale_moe_launcher(
355355 << " routing_bias has incorrect shape." ;
356356 }
357357
358+ <<<<<<< HEAD
358359 if (n_group.has_value() && n_group.value() != 0 ) {
359360 TVM_FFI_ICHECK (static_cast <RoutingMethodType>(routing_method_type) ==
360361 RoutingMethodType::DeepSeekV3)
@@ -382,6 +383,20 @@ void trtllm_fp8_block_scale_moe_launcher(
382383 TVM_FFI_ICHECK_EQ (top_k, 1 )
383384 << " Current routing kernel (no groups, Llama4) only supports top_k=1." ;
384385 }
386+ =======
387+ // if (n_group <= 0 || topk_group <= 0) {
388+ // TVM_FFI_ICHECK_EQ(top_k, 1) << "Current routing kernel (no groups) only supports top_k=1.";
389+ // } else {
390+ // TVM_FFI_ICHECK_LE(top_k, 8) << "Current routing kernel (with groups) only supports
391+ // top_k<=8."; TVM_FFI_ICHECK_LE(topk_group, 4)
392+ // << "Current routing kernel (with groups) only supports topk_group<=4.";
393+ // TVM_FFI_ICHECK_LE(topk_group, n_group) << "n_group must not be smaller than topk_group.";
394+ // TVM_FFI_ICHECK_EQ(num_experts % n_group, 0) << "num_experts must be divisible by n_group";
395+ // // This check ensures we have enough experts in the selected groups to handle the top_k
396+ // routing TVM_FFI_ICHECK_LT(top_k, (topk_group * num_experts / n_group))
397+ // << "top_k must be less than total number of experts in selected groups";
398+ // }
399+ >>> >>> > c9e42cacef0506c57777d8d8efcf859219529951
385400 TVM_FFI_ICHECK_EQ (num_experts % 4 , 0 )
386401 << " Routing kernel expects that num_experts must be divisible by 4" ;
387402 TVM_FFI_ICHECK_GT (num_experts, top_k) << " num_experts must be greater than top_k" ;
0 commit comments