mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 01:17:28 +08:00
Allow mask prompt in config (#1314)
This commit is contained in:
parent
eb73549631
commit
b2108a0de6
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user