Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Малахов Алексей Павлович committed Nov 18, 2024
1 parent ef4425e commit 68469d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion turbo_alignment/common/tf/loaders/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,3 @@ def load_model(
model.base_model.model.score.weight.requires_grad = True

return model

2 changes: 1 addition & 1 deletion turbo_alignment/settings/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LigerKernelSettings(ExtraFieldsNotAllowedBaseModel):
use_rms_norm: bool = False

@model_validator(mode='after')
def correct_cross_entopy_kernels(self) -> 'LigerKernelSettings':
def check_cross_entopy_kernels(self) -> 'LigerKernelSettings':
if self.use_fused_linear_cross_entropy and self.use_cross_entropy:
raise ValueError(
'You cannot use both FusedLinearCrossEntropy and CrossEntropy kernels. '
Expand Down

0 comments on commit 68469d7

Please sign in to comment.