Oznaczyłem kernel flash attention w tinygrad, aby upewnić się, że go rozumiem. Automatyczne generowanie tego w sposób OGÓLNY jest całkiem fajne!
the tiny corp
the tiny corp3 sie, 07:29
Finally, real flash attention. With the new indexing, it's completely automatic and generic, see TestFuse.test_flash_attention. ENDRANGE is STORE+LOAD, and you end a range if the children of a UOp mismatch on that axis.
74,29K