Chirag Jain 50896ec574 Make nvcc threads configurable via environment variable (#885) hai 9 meses
..
README.md 43ab0b5205 Mention that some CUDA extensions have only been tested on A100s %!s(int64=2) %!d(string=hai) anos
fused_dense.cpp 27f8f890df [FusedDense] Allocate lt_workspace on input device hai 1 ano
fused_dense_cuda.cu 27f8f890df [FusedDense] Allocate lt_workspace on input device hai 1 ano
setup.py 50896ec574 Make nvcc threads configurable via environment variable (#885) hai 9 meses

README.md

This CUDA extension implements fused matmul + bias (forward and backward), and fused matmul + bias + gelu (forward and backward), adapted from Apex's FusedDense. We make it work for bfloat16.

For best performance, you should use CUDA >= 11.8. CuBLAS versions before this doesn't have the best matmul + bias + gelu performance for bfloat16.

It has only been tested on A100s.

cd csrc/fused_dense_lib && pip install .