Ho annotato il kernel di flash attention di tinygrad per assicurarmi di capirlo. Generare questo in modo GENERICO è davvero interessante!
the tiny corp
the tiny corp3 ago, 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