CE Loss
This commit is contained in:
parent
29a73e562d
commit
2ea161c913
2 changed files with 2 additions and 3 deletions
|
|
@ -14,8 +14,7 @@
|
|||
|
||||
from .cross_entropy_loss import (
|
||||
fast_cross_entropy_loss,
|
||||
patch_losses,
|
||||
patch_loss_function,
|
||||
post_patch_loss_function,
|
||||
)
|
||||
from .rms_layernorm import (
|
||||
fast_rms_layernorm,
|
||||
|
|
|
|||
|
|
@ -393,4 +393,4 @@ if (Version(torch.__version__) < Version("2.4.0")) and \
|
|||
pass
|
||||
|
||||
# Patch CE Losses in transformers
|
||||
patch_losses = transformers_losses_patcher(causal_loss_function(fast_cross_entropy_loss))
|
||||
patch_loss_functions(fast_cross_entropy_loss)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue