[NPU] Fix of c++ convert example (#12797)
This commit is contained in:
parent
468d3f22fc
commit
3fee838b14
1 changed files with 2 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ if __name__ == "__main__":
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
model_path = args.repo_id_or_model_path
|
model_path = args.repo_id_or_model_path
|
||||||
save_dir = args.save_directory
|
save_dir = args.save_directory
|
||||||
|
if not os.path.exists(save_dir):
|
||||||
|
os.mkdir(save_dir)
|
||||||
|
|
||||||
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue