Skip to content

Commit 17978a3

Browse files
authored
bugfix: Fix FLOPS calculation for bench_trtllm_gen_mla.py (#1640)
Fix FLOPS calculation for bench_trtllm_gen_mla.py Details in #1638
1 parent 375a26b commit 17978a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

benchmarks/bench_trtllm_gen_mla.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ def bench_trtllm_mla(batch_size, q_len_per_request, seq_len, page_size, dtype):
108108
ms = np.median(measurements)
109109
flops = (
110110
2
111-
* batch_size
112111
* num_q_heads
113112
* (2 * kv_lora_rank + qk_rope_head_dim)
114-
* seq_len
113+
* sum(seq_lens)
115114
* q_len_per_request
116115
)
117116
print(

0 commit comments

Comments
 (0)