Allow mask prompt in config (#1314)

This commit is contained in:
Awni Hannun 2025-02-28 11:33:04 -08:00 committed by GitHub
parent eb73549631
commit b2108a0de6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,6 +62,7 @@ CONFIG_DEFAULTS = {
"grad_checkpoint": False,
"lr_schedule": None,
"lora_parameters": {"rank": 8, "alpha": 16, "dropout": 0.0, "scale": 10.0},
"mask_prompt": False,
}
@ -99,7 +100,7 @@ def build_parser():
"--mask-prompt",
action="store_true",
help="Mask the prompt in the loss when training",
default=False,
default=None,
)
parser.add_argument(