Update src/axolotl/integrations/liger/args.py
Co-authored-by: NanoCode012 <nano@axolotl.ai>
This commit is contained in:
@@ -40,6 +40,9 @@ class LigerArgs(BaseModel):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def check_deprecated_swiglu(cls, data):
|
def check_deprecated_swiglu(cls, data):
|
||||||
if data.get("liger_swiglu") is not None:
|
if data.get("liger_swiglu") is not None:
|
||||||
|
if data.get("liger_glu_activation") is not None:
|
||||||
|
raise ValueError("You cannot have both `liger_swiglu` and `liger_glu_activation` set.")
|
||||||
|
|
||||||
LOG.warning(
|
LOG.warning(
|
||||||
"The 'liger_swiglu' argument is deprecated and will be removed in a future release. "
|
"The 'liger_swiglu' argument is deprecated and will be removed in a future release. "
|
||||||
"Please use 'liger_glu_activation' instead."
|
"Please use 'liger_glu_activation' instead."
|
||||||
|
|||||||
Reference in New Issue
Block a user