The pytorch base implementation of scaled_dot_product_attention provides dropout as an arg. Fusing it into the triton kernel would replicate that functionality, as dropout is applied to the attention scores, not the output.
In the CUDA version, it is supported here
There have been attempts at integrating into triton before
The pytorch base implementation of
scaled_dot_product_attentionprovides dropout as an arg. Fusing it into the triton kernel would replicate that functionality, as dropout is applied to the attention scores, not the output.In the CUDA version, it is supported here
There have been attempts at integrating into triton before