You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser.add_argument('--batch_size', default=16, type=int, help='Batch size per GPU/CPU for training.')
142
-
parser.add_argument('--learning_rate', default=1e-5, type=float, help='The initial learning rate for Adam.')
143
-
parser.add_argument('--train_path', default=None, type=str, help='The path of train set.')
144
-
parser.add_argument('--dev_path', default=None, type=str, help='The path of dev set.')
145
-
parser.add_argument('--save_dir', default='./checkpoint', type=str, help='The output directory where the model checkpoints will be written.')
146
-
parser.add_argument('--max_seq_len', default=512, type=int, help='The maximum total input sequence length after tokenization. '
147
-
'Sequences longer than this will be truncated, sequences shorter will be padded.')
148
-
parser.add_argument('--num_epochs', default=50, type=int, help='Total number of training epochs to perform.')
149
-
parser.add_argument('--init_from_ckpt', default=None, type=str, help='The path of checkpoint to be loaded.')
150
-
parser.add_argument('--seed', default=1000, type=int, help='random seed for initialization')
151
-
parser.add_argument('--logging_steps', default=10, type=int, help='The interval steps to logging.')
152
-
parser.add_argument('--valid_steps', default=100, type=int, help='The interval steps to evaluate model performance.')
153
-
parser.add_argument('--device', choices=['cpu', 'gpu'], default='gpu', help='Select which device to train model, defaults to gpu.')
146
+
parser.add_argument("--batch_size", default=16, type=int, help="Batch size per GPU/CPU for training.")
147
+
parser.add_argument("--learning_rate", default=1e-5, type=float, help="The initial learning rate for Adam.")
148
+
parser.add_argument("--train_path", default=None, type=str, help="The path of train set.")
149
+
parser.add_argument("--dev_path", default=None, type=str, help="The path of dev set.")
150
+
parser.add_argument("--save_dir", default='./checkpoint', type=str, help="The output directory where the model checkpoints will be written.")
151
+
parser.add_argument("--max_seq_len", default=512, type=int, help="The maximum input sequence length. "
152
+
"Sequences longer than this will be truncated, sequences shorter will be padded.")
153
+
parser.add_argument("--num_epochs", default=100, type=int, help="Total number of training epochs to perform.")
154
+
parser.add_argument("--seed", default=1000, type=int, help="Random seed for initialization")
155
+
parser.add_argument("--logging_steps", default=10, type=int, help="The interval steps to logging.")
156
+
parser.add_argument("--valid_steps", default=100, type=int, help="The interval steps to evaluate model performance.")
157
+
parser.add_argument('--device', choices=['cpu', 'gpu'], default="gpu", help="Select which device to train model, defaults to gpu.")
158
+
parser.add_argument("--model", choices=["uie-base", "uie-tiny"], default="uie-base", type=str, help="Select the pretrained model for few-shot learning.")
159
+
parser.add_argument("--init_from_ckpt", default=None, type=str, help="The path of model parameters for initialization.")
0 commit comments