Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Feb 12, 2025
1 parent ccfb4a8 commit f40d49c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions optimum/onnxruntime/modeling_ort.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,8 @@ def _cached_file(
model_cache_path = os.path.join(model_path, subfolder, file_name)
preprocessors = maybe_load_preprocessors(model_path)
else:
model_path = model_path.replace(os.sep, "/")
subfolder = subfolder.replace(os.sep, "/")
model_cache_path = hf_hub_download(
repo_id=model_path,
filename=file_name,
Expand Down

0 comments on commit f40d49c

Please sign in to comment.