Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Sep 19, 2023
1 parent 46b26b5 commit 33957af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion optimum/onnxruntime/modeling_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,8 @@ def _from_pretrained(
except EntryNotFoundError:
# model doesn't use external data
pass
new_model_save_dir = Path(model_cache_path).parent
model_cache_path = Path(model_cache_path)
new_model_save_dir = model_cache_path.parent
preprocessors = maybe_load_preprocessors(model_id, subfolder=subfolder)

# model_save_dir can be provided in kwargs as a TemporaryDirectory instance, in which case we want to keep it
Expand Down

0 comments on commit 33957af

Please sign in to comment.