Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/MaxText/layers/attention_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -1290,10 +1290,10 @@ def wrap_flash_attention(
if self.config.use_tokamax_splash:
if max_logit_value is not None:
attention_output = jax.vmap(partial(splash_kernel, max_logit_value=max_logit_value))(
query, key, value, decoder_segment_ids_tuple
query, key, value, decoder_segment_ids_tuple, sinks
)
else:
attention_output = jax.vmap(splash_kernel)(query, key, value, decoder_segment_ids_tuple)
attention_output = jax.vmap(splash_kernel)(query, key, value, decoder_segment_ids_tuple, sinks)
else:
attention_output = jax.vmap(splash_kernel, in_axes=(0, 0, 0, 0, None))(
query, key, value, decoder_segment_ids_tuple, sinks
Expand Down
Loading