flash-attention/csrc/layer_norm/README.md
2022-11-13 22:30:23 -08:00

308 B

This CUDA extension implements fused dropout + residual + LayerNorm, based on Apex's FastLayerNorm. We add dropout and residual, and make it work for both pre-norm and post-norm architecture.

cd csrc/layer_norm && pip install .