add bf16 lora option

This commit is contained in:
hiyouga
2024-01-19 16:29:03 +08:00
parent 35aef8b287
commit b6ec112beb
2 changed files with 6 additions and 2 deletions

View File

@@ -55,9 +55,13 @@ class LoraArguments:
Phi choices: [\"Wqkv\", \"out_proj\", \"fc1\", \"fc2\"], \
Others choices: the same as LLaMA."}
)
lora_bf16_mode: Optional[bool] = field(
default=False,
metadata={"help": "Whether or not to train lora adapters in bf16 precision."}
)
create_new_adapter: Optional[bool] = field(
default=False,
metadata={"help": "Whether to create a new adapter with randomly initialized weight or not."}
metadata={"help": "Whether or not to create a new adapter with randomly initialized weight."}
)