README.md 314 Bytes
Newer Older
1
2
3
This CUDA extension implements optimized cross-entropy loss, adapted from Apex's
[Xentropy](https://github.com/NVIDIA/apex/tree/master/apex/contrib/xentropy).
We make it work for bfloat16 and support in-place backward to save memory.
4
5
6

It has only been tested on A100s.

7
8
9
```sh
cd csrc/xentropy && pip install .
```