sclarkson 1feb711f46 Fix compilation with clang on ARM64 (#1285) 1 week geleden
..
README.md 5400fdc4ac [CE] Implement CrossEntropyLoss in Triton 1 jaar geleden
interface.cpp dff68c2b22 Add smoothing for CrossEntropyParallel, rename to CrossEntropyLoss 2 jaren geleden
setup.py 50896ec574 Make nvcc threads configurable via environment variable (#885) 9 maanden geleden
xentropy_kernel.cu 1feb711f46 Fix compilation with clang on ARM64 (#1285) 1 week geleden

README.md

This CUDA extension implements optimized cross-entropy loss, adapted from Apex's Xentropy. We make it work for bfloat16 and support in-place backward to save memory.

It has only been tested on A100s.

cd csrc/xentropy && pip install .

As of 2023-09-15, this extension is no longer used in the FlashAttention repo. We've instead switched to a Triton-based implementation. See the CrossEntropyLoss module for more details.