Skip to content

Commit

Permalink
fix: remove unneeded param
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoCode012 committed Nov 6, 2024
1 parent 737fe9e commit 75e37be
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/axolotl/utils/config/models/input/v0_4_1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ class DeprecatedParameters(BaseModel):
noisy_embedding_alpha: Optional[float] = None
dpo_beta: Optional[float] = None

alternate_optimizer: Optional[str] = None

@field_validator("max_packed_sequence_len")
@classmethod
def validate_max_packed_sequence_len(cls, max_packed_sequence_len):
Expand Down Expand Up @@ -99,14 +97,6 @@ def validate_dpo_beta(cls, dpo_beta):
LOG.warning("dpo_beta is deprecated, use rl_beta instead")
return dpo_beta

@field_validator("alternate_optimizer")
@classmethod
def validate_alternate_optimizer(cls, alternate_optimizer):
if alternate_optimizer:
raise DeprecationWarning(
"alternate_optimizer is deprecated, use optimizer instead"
)


class RemappedParameters(BaseModel):
"""parameters that have been remapped to other names"""
Expand Down

0 comments on commit 75e37be

Please sign in to comment.