Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Menon <[email protected]>
  • Loading branch information
harsh-nod committed Feb 10, 2025
1 parent 0bd1e23 commit b20eb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iree/turbine/kernel/wave/templates/extend_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_extend_attention_kernel(
LOG2E = 1.44269504089
logit_cap *= LOG2E
dk_sqrt = math.sqrt(1.0 / shape.head_size)
layer_scaling = layer_scaling or dk_sqrt * LOG2E
layer_scaling = (layer_scaling or dk_sqrt) * LOG2E

constraints: list[tkw.Constraint] = []
constraints += [
Expand Down

0 comments on commit b20eb49

Please sign in to comment.