Skip to content

Commit dfa57f9

Browse files
superbobryGoogle-ML-Automation
authored andcommitted
Use pltpu.store instead of the deprecated pl.store
PiperOrigin-RevId: 852709528
1 parent 4962bb8 commit dfa57f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MaxText/inference/paged_attention_kernel_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def flash_attention(
348348
def masked_store(ref, val, start, end, group=1):
349349
iota = lax.broadcasted_iota(jnp.int32, ref.shape, 0) // group
350350
mask = jnp.logical_and(iota >= start, iota < end)
351-
pl.store(ref, tuple(slice(None) for _ in ref.shape), val, mask=mask)
351+
pltpu.store(ref, val, mask=mask)
352352

353353
qk = jnp.einsum("nd,md->nm", q, k, preferred_element_type=jnp.float32) * sm_scale
354354
store_start = jnp.maximum(q_start - q_len_start, 0)

0 commit comments

Comments
 (0)