add upcast_lmhead option

This commit is contained in:
hiyouga
2024-01-19 23:54:25 +08:00
parent 0ff9a1fb4f
commit 8cbe4e9609
2 changed files with 5 additions and 1 deletions

View File

@@ -70,6 +70,10 @@ class ModelArguments:
default=False,
metadata={"help": "Whether or not to upcast the layernorm weights in fp32."}
)
upcast_lmhead_output: Optional[bool] = field(
default=False,
metadata={"help": "Whether or not to upcast the output of lm_head in fp32."}
)
hf_hub_token: Optional[str] = field(
default=None,
metadata={"help": "Auth token to log in with Hugging Face Hub."}