parser.add_argument("--save_dir",default='./checkpoint',type=str,help="The output directory where the model checkpoints will be written.")
parser.add_argument("--max_seq_length",default=128,type=int,help="The maximum total input sequence length after tokenization. Sequences longer than this will be truncated, sequences shorter will be padded.")
parser.add_argument("--batch_size",default=32,type=int,help="Batch size per GPU/CPU for training.")
parser.add_argument("--output_emb_size",default=0,type=int,help="Output_embedding_size, 0 means use hidden_size as output embedding size.")
parser.add_argument("--learning_rate",default=1e-5,type=float,help="The initial learning rate for Adam.")
parser.add_argument("--weight_decay",default=0.0,type=float,help="Weight decay if we apply some.")
parser.add_argument("--epochs",default=1,type=int,help="Total number of training epochs to perform.")
parser.add_argument("--warmup_proportion",default=0.0,type=float,help="Linear warmup proportion over the training process.")
parser.add_argument("--init_from_ckpt",type=str,default=None,help="The path of checkpoint to be loaded.")
parser.add_argument("--seed",type=int,default=1000,help="Random seed for initialization.")
parser.add_argument('--device',choices=['cpu','gpu'],default="gpu",help="Select which device to train model, defaults to gpu.")
parser.add_argument('--save_steps',type=int,default=10000,help="Step interval for saving checkpoint.")
parser.add_argument("--max_steps",default=-1,type=int,help="If > 0: set total number of training steps to perform. Override ecpochs.")
parser.add_argument('--eval_steps',type=int,default=10000,help="Step interval for evaluation.")
parser.add_argument("--train_set_file",type=str,required=True,help="The full path of train_set_file.")
parser.add_argument("--margin",default=0.0,type=float,help="Margin between pos_sample and neg_samples.")
parser.add_argument("--scale",default=20,type=int,help="Scale for pair-wise margin_rank_loss.")
parser.add_argument("--dropout",default=0.1,type=float,help="Dropout for pretrained model encoder.")
parser.add_argument("--dup_rate",default=0.32,type=float,help="duplicate rate for word repetition.")
parser.add_argument("--infer_with_fc_pooler",action='store_true',help="Whether use fc layer after cls embedding or not for when infer.")
[1] Zheng, Chujie, and Minlie Huang. "Exploring prompt-based few-shot learning for grounded dialog generation." arXiv preprint arXiv:2109.06513 (2021).
[2] Li, Wei, et al. "Unimo: Towards unified-modal understanding and generation via cross-modal contrastive learning." arXiv preprint arXiv:2012.15409 (2020).
[3] Puri, Raul, et al. "Training question answering models from synthetic data." arXiv preprint arXiv:2002.09599 (2020).
[4] Lewis, Patrick, et al. "Paq: 65 million probably-asked questions and what you can do with them." Transactions of the Association for Computational Linguistics 9 (2021): 1098-1115.
[5] Alberti, Chris, et al. "Synthetic QA corpora generation with roundtrip consistency." arXiv preprint arXiv:1906.05416 (2019).
parser.add_argument("--model_path",type=str,default=None,help="The path of saved model that you want to load.")
parser.add_argument("--test_path",type=str,default=None,help="The path of test set.")
parser.add_argument("--batch_size",type=int,default=16,help="Batch size per GPU/CPU for training.")
parser.add_argument("--max_seq_len",type=int,default=512,help="The maximum total input sequence length after tokenization.")
parser.add_argument("--debug",action='store_true',help="Precision, recall and F1 score are calculated for each class separately if this option is enabled.")
parser.add_argument("--limit",type=float,default=0.5,help="The limit when using SpanEvaluator, when the last dimension in probability arrays is greater than the limit, the corresponding span will be returned.")
parser.add_argument("--batch_size",default=16,type=int,help="Batch size per GPU/CPU for training.")
parser.add_argument("--learning_rate",default=1e-5,type=float,help="The initial learning rate for Adam.")
parser.add_argument("--train_path",default=None,type=str,help="The path of train set.")
parser.add_argument("--dev_path",default=None,type=str,help="The path of dev set.")
parser.add_argument("--save_dir",default='.log/filtration/checkpoints',type=str,help="The output directory where the model checkpoints will be written.")
parser.add_argument("--max_seq_len",default=512,type=int,help="The maximum input sequence length. Sequences longer than this will be split automatically.")
parser.add_argument("--num_epochs",default=100,type=int,help="Total number of training epochs to perform.")
parser.add_argument("--seed",default=1000,type=int,help="Random seed for initialization")
parser.add_argument("--logging_steps",default=10,type=int,help="The interval steps to logging.")
parser.add_argument("--valid_steps",default=100,type=int,help="The interval steps to evaluate model performance.")
parser.add_argument('--device',choices=['cpu','gpu'],default="gpu",help="Select which device to train model, defaults to gpu.")
parser.add_argument("--model",choices=["uie-base","uie-tiny","uie-medium","uie-mini","uie-micro","uie-nano"],default="uie-base",type=str,help="Select the pretrained model for few-shot learning.")
parser.add_argument("--init_from_ckpt",default=None,type=str,help="The path of model parameters for initialization.")
parser.add_argument('--device',choices=['cpu','gpu'],default="gpu",help="Select which device to run dense_qa system, defaults to gpu.")
parser.add_argument("--index_name",default='faiss_index',type=str,help="The ann index name of FAISS.")
parser.add_argument("--max_seq_len_query",default=64,type=int,help="The maximum total length of query after tokenization.")
parser.add_argument("--max_seq_len_passage",default=256,type=int,help="The maximum total length of passage after tokenization.")
parser.add_argument("--retriever_batch_size",default=16,type=int,help="The batch size of retriever to extract passage embedding for building ANN index.")
parser.add_argument("--doc_dir",default="data/my_data",type=str,help="The question-answer pairs file to be loaded when building ANN index.")
parser.add_argument("--source_file",default=None,type=str,help="The source raw texts file to be loaded when creating question-answer pairs.")