Jeg kommenterte tinygrad flash oppmerksomhetskjernen for å være sikker på at jeg forstår den. automatisk generering av dette GENERISK er ganske kult!
the tiny corp
the tiny corp3. aug., 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,3K