Skip to content

Commit ce74f5e

Browse files
adamomainzfacebook-github-bot
authored andcommitted
fixing small bug caused in gemms and softmax
Summary: gemms are failing because of logical bug here flash_attention does not use this function and directly calls the downstream function. When testing the change for shuffled data I only tested on flash attention and didnt see this break in testing. Reviewed By: danzimm Differential Revision: D66706511 fbshipit-source-id: f89a7561a41d82b8c486bd6af097057b2413b7d2
1 parent 0a82d3d commit ce74f5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tritonbench/utils/data_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from .triton_op import IS_FBCODE
22

33

4-
def get_production_shapes(op_name, op_type):
4+
def get_production_shapes(op_name, op_type, shuffle_shapes=False):
55
"""Gets a list of Softmax shapes for benchmarking"""
66
if IS_FBCODE:
77
from .fb.durin_data import productionDataLoader
88

99
return [
1010
shape
1111
for shape in productionDataLoader.get_shapes_from_frozen_durin(
12-
op_name, op_type
12+
op_name, op_type, shuffle_shapes
1313
)
1414
]

0 commit comments

Comments
 (0)