"--n_obs",type=int,default=-1,required=False,help="How many observations. Defaults to all."
)
parser.add_argument("--fp16",action="store_true")
parser.add_argument("--dump-args",action="store_true",help="print the custom hparams with the results")
parser.add_argument(
"--info",
nargs="?",
type=str,
const=datetime_now(),
help="use in conjunction w/ --dump-args to print with the results whatever other info you'd like, e.g. lang=en-ru. If no value is passed, the current datetime string will be used.",
)
# Unspecified args like --num_beams=2 --decoder_start_token_id=4 are passed to model.generate
args,rest=parser.parse_known_args()
parsed_args=parse_numeric_n_bool_cl_kwargs(rest)
ifparsed_argsandverbose:
print(f"parsed the following generate kwargs: {parsed_args}")