Pallas Skips the Refetch
In a Pallas TPU flash-attention kernel with a grid over (query_block, key_block), the K/V BlockSpec's index_map returns the same key_block index across several consecutive inner-loop grid steps before advancing to the next key block. What does the Pallas pipeline emitter do because of this, and why is it worth structuring the grid this way?
Sign in to answer questions and track your progress
Sign In