|
|
@ -42,11 +42,7 @@ ARG_PARSER.add_argument("--output",
|
|
|
|
help="Model to write")
|
|
|
|
help="Model to write")
|
|
|
|
ARGS = ARG_PARSER.parse_args()
|
|
|
|
ARGS = ARG_PARSER.parse_args()
|
|
|
|
|
|
|
|
|
|
|
|
FTYPE_IDX = -1
|
|
|
|
FTYPE_IDX = {"f16": 1, "f32": 0}[ARGS.ftype]
|
|
|
|
if ARGS.ftype == "f16":
|
|
|
|
|
|
|
|
FTYPE_IDX = 1
|
|
|
|
|
|
|
|
elif ARGS.ftype == "f32":
|
|
|
|
|
|
|
|
FTYPE_IDX = 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fname_hparams = ARGS.model + "/params.json"
|
|
|
|
fname_hparams = ARGS.model + "/params.json"
|
|
|
|
fname_tokenizer = ARGS.model + "/../tokenizer.model"
|
|
|
|
fname_tokenizer = ARGS.model + "/../tokenizer.model"
|
|
|
|