Skip to content

Commit 3fee838

Browse files
authored
[NPU] Fix of c++ convert example (#12797)
1 parent 468d3f2 commit 3fee838

File tree

1 file changed

+2
-0
lines changed
  • python/llm/example/NPU/HF-Transformers-AutoModels/LLM/CPP_Examples

1 file changed

+2
-0
lines changed

python/llm/example/NPU/HF-Transformers-AutoModels/LLM/CPP_Examples/convert.py

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
args = parser.parse_args()
5858
model_path = args.repo_id_or_model_path
5959
save_dir = args.save_directory
60+
if not os.path.exists(save_dir):
61+
os.mkdir(save_dir)
6062

6163
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
6264

0 commit comments

Comments
 (0)