make the initial call to tokenizer.pad not spam the console (#2946) [skip ci]

* make the initial call to tokenizer.pad not spam the console

* add guard from feedback

* make another common console output less verbose

* more logging fixes
This commit is contained in:
Wing Lian
2025-07-19 13:53:35 -04:00
committed by GitHub
parent 170322a1f0
commit 109d9c7442
4 changed files with 25 additions and 3 deletions

View File

@@ -53,3 +53,12 @@ class LigerArgs(BaseModel):
)
data["liger_glu_activation"] = data.pop("liger_swiglu")
return data
@model_validator(mode="before")
@classmethod
def check_tiled_mlp_conflict(cls, data):
if data.get("liger_glu_activation") is True and data.get("tiled_mlp") is True:
raise ValueError(
"You cannot have both `liger_glu_activation` and `tiled_mlp` set."
)
return data