triton-lang/triton

Implement BatchNorm in triton

Open

#900 opened on Nov 22, 2022

 (6 comments) (0 reactions) (0 assignees)MLIR (3,126 forks)github user discovery
help wanted

Repository metrics

Stars
 (19,982 stars)
PR merge metrics
 (Avg merge 2d 18h) (185 merged PRs in 30d)

Description

batchnorm(bn) is very popular in CV, almost every conv op will be followed by bn. I see layernorm in triton achieved best HBM bandwidth. So I'm curious about implement batchnorm in triton.

My questions:

  1. is there any chance that triton implemented bn faster than pytorch?
  2. may you guys give more details on layernorm's triton implementation? about why it achieved so amazing bandwidth

Contributor guide