Hard

Implement a blocked/tiled attention forward pass (FlashAttention-style) with running max/s

Attention Efficiency & Long Context · Problem 4 of 5

Chapter 03Attention Efficiency & Long Context

Implement a blocked/tiled attention forward pass (FlashAttention-style) with running max/s

HardProblem 4 / 5

Implement a blocked/tiled attention forward pass (FlashAttention-style) with running max/sum and verify it matches naive attention.

Implement the function/class skeleton in the editor. Any correct approach is accepted.

Hints