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=512,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('--model_name_or_path',default="rocketqa-zh-base-query-encoder",help="The pretrained model used for training")
parser.add_argument("--max_seq_length",default=64,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('--device',choices=['cpu','gpu','xpu'],default="gpu",help="Select which device to train model, defaults to gpu.")
parser.add_argument('--use_tensorrt',default=False,type=eval,choices=[True,False],help='Enable to use tensorrt to speed up.')