Ini mengubur lede sedikit, yaitu dengan perubahan kecil Anda juga dapat melakukan ReLU(A @ B) @ C pada matriks NxN dengan N perantara dan tanpa perhitungan ulang. (alias : jaringan saraf.)
the tiny corp
the tiny corp8 Agu, 23.42
Everyone knows about Flash Attention. But do you know about Flash GEMM? This code computes (A @ B) @ C on NxN matrices with N intermediates and no recomputation. If you don't use a BLAS library, you don't need to materialize the intermediate matrix.
25,39K