def METHOD_NAME(parser: argparse.ArgumentParser):
    """inference arguments"""
    group = parser.add_argument_group('infer', 'inference configuration')
    group.add_argument('--output-file', type=str, default=None,
                       help='output file')
    group.add_argument('--input-file', type=str, default=None,
                       help='input file')
    group.add_argument('--span-length', type=int, default=None,
                       help='span length')
    group.add_argument('--beam-size', type=int, default=1,
                       help='beam size')
    group.add_argument('--top-k', type=int, default=0,
                       help='top k')
    group.add_argument('--top-p', type=float, default=0.0,
                       help='top p')
    group.add_argument('--temperature', type=float, default=0.9,
                       help='temperature')
    group.add_argument('--no-repeat-ngram-size', type=int, default=0,
                       help='no repeat ngram size')
    group.add_argument('--repetition-penalty', type=float, default=1.0,
                       help='repetition penalty')
    group.add_argument('--random-sample', default=False, action='store_true',
                       help='use random sample strategy')
    group.add_argument('--use-contrastive-search', default=False, action='store_true',
                       help='whether to use contrastive search')
    return parser