[NPU] Fix of c++ convert example (#12797)

This commit is contained in:
binbin Deng 2025-02-10 11:17:58 +08:00 committed by GitHub
parent 468d3f22fc
commit 3fee838b14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,6 +57,8 @@ if __name__ == "__main__":
args = parser.parse_args()
model_path = args.repo_id_or_model_path
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)