mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-24 14:26:43 +08:00
Update sdpa_benchmarks
This commit is contained in:
parent
c9ab537b9a
commit
0c22440c75
@ -140,13 +140,10 @@ def get_gflop_count(B, M, N, K):
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Run gemm benchmarks")
|
||||
|
||||
dtypes = (
|
||||
"float16",
|
||||
"float32",
|
||||
)
|
||||
dtypes = ("float16", "float32")
|
||||
transposes = (False,)
|
||||
|
||||
# clang-format off
|
||||
# fmt: off
|
||||
shapes = (
|
||||
# ( B, qsl, ksl, head_dim, n_qh, n_kvh)
|
||||
( 1, 32, 32, 64, 32, 32),
|
||||
@ -158,7 +155,7 @@ if __name__ == "__main__":
|
||||
( 1, 2048, 2048, 64, 32, 32),
|
||||
( 1, 4096, 4096, 64, 32, 32),
|
||||
)
|
||||
# clang-format on
|
||||
# fmt: on
|
||||
|
||||
print(" B, qsl, ksl, hdim, n_qh, n_kvh, tpose, dtype, t_unfs, t_fuse, diff%")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user