Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions unsloth/kernels/cross_entropy_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
triton_cast,
torch_gpu_device,
is_cdna,
is_rdna,
)
from transformers.models.llama.modeling_llama import logger
from unsloth_zoo.utils import Version
Expand Down Expand Up @@ -365,7 +364,7 @@ def forward(
SOFTCAP = logit_softcapping,
DO_LOGIT_SCALING = DO_LOGIT_SCALING,
LOGIT_SCALE = logit_scaling,
num_warps = 16 if is_cdna() or is_rdna() else 32,
num_warps = 32 if not is_cdna() else 16,
)
# logsumexp(chunked_logsumexp) - x
# Do the -x separately
Expand Down