7 lines
278 B
Markdown
7 lines
278 B
Markdown
|
|
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.
|
||
|
|
```sh
|
||
|
|
cd csrc/xentropy && pip install .
|
||
|
|
```
|