We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6661d3a commit 858f9d1Copy full SHA for 858f9d1
gemma/flash_attention.cc
@@ -498,7 +498,7 @@ static void HWY_INLINE FlashAttentionTileStepAndApplySoftCap(
498
hn::Store(new_max, df4, tmp_max);
499
if constexpr (kNumQueries >= 1) {
500
const VF new_max_0 = hn::Set(df, tmp_max[0]);
501
- x_0_p0 = hn::Exp(df, hn::Sub(x_0_p0 , new_max_0));
+ x_0_p0 = hn::Exp(df, hn::Sub(x_0_p0, new_max_0));
502
x_0_p1 = hn::Exp(df, hn::Sub(x_0_p1, new_max_0));
503
}
504
if constexpr (kNumQueries >= 2) {
0 commit comments