You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The official Python 3.12 documentation suggests setting the filter to 'fully_trusted' and set automatic DeprecationWarning. However, this does not work correctly on at least Python 3.9 (in a CI macOS container) and Python 3.10. I suspect that the tarfile module relies on the built-in tar utility, which may exhibit platform-dependent behavior for the 'fully_trusted' flag.
This issue reproduces on macOS and possibly on Windows (Python 3.10 container), but only for models we download from our Google Drive, not from Hugging Face (HF). This leads me to believe that either the models from HF are fully trusted by default, or they are not unpacked using the tar utility.
Possible things to change:
Add HF links for models where we haven't done so yet.
Rename target files on our Google Drive from something like model_optimized.onnx to onnx/model.onnx, etc.
Investigate the correct filter setting we should use.
What Python version are you on? e.g. python --version
What happened?
The official Python 3.12 documentation suggests setting the filter to 'fully_trusted' and set automatic DeprecationWarning. However, this does not work correctly on at least Python 3.9 (in a CI macOS container) and Python 3.10. I suspect that the
tarfile
module relies on the built-in tar utility, which may exhibit platform-dependent behavior for the 'fully_trusted' flag.This issue reproduces on macOS and possibly on Windows (Python 3.10 container), but only for models we download from our Google Drive, not from Hugging Face (HF). This leads me to believe that either the models from HF are fully trusted by default, or they are not unpacked using the tar utility.
Possible things to change:
What Python version are you on? e.g. python --version
Python 3.12
Version
0.2.7 (Latest)
What os are you seeing the problem on?
macos + python 3.9, macos + python 3.10, windows + python 3.10
Relevant stack traces and/or logs
No response
The text was updated successfully, but these errors were encountered: