Skip to content

Commit 181f169

Browse files
committed
cherry pick 8fc88d6
Signed-off-by: tjtanaavllm <tunjian.tan@amd.com>
1 parent 24de861 commit 181f169

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

benchmarks/kernels/benchmark_moe.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,8 @@ def main(args: argparse.Namespace):
554554
intermediate_size = config.moe_intermediate_size
555555
shard_intermediate_size = 2 * intermediate_size // args.tp_size
556556
else:
557-
if not hasattr(config, "hidden_size"):
558-
# Support for llama4
559-
config = config.text_config
557+
# Support for llama4
558+
config = config.text_config
560559
# Default: Mixtral.
561560
E = config.num_local_experts
562561
topk = config.num_experts_per_tok

0 commit comments

Comments
 (0)