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
By default, this is not available in torch==1.13. TORCH_FORCE_WEIGHTS_ONLY_LOAD needs to be set to True which allows global override to safe only model loading via.
Test
Test haystack tests with new flags
Solution:
Bump up PyTorch version to 1.13
Behaviour
Secure by default TORCH_FORCE_WEIGHTS_ONLY_LOAD always set to true when Haystack loads any models
The text was updated successfully, but these errors were encountered:
@mayankjobanputra I also tried to get this working. This seams to be a bug on pytorchs side as mentioned in pytorch/pytorch#89924. It will probably get fixes in the 1.13.1 release which will be released in few days. I'll take another look when they fixed the marker problem in pytorch.
When loading PyTorch models from the modelhub, arbitrary code can be executed. See here.
Seems like PyTorch already solved this:
Test
Test haystack tests with new flags
Solution:
Behaviour
The text was updated successfully, but these errors were encountered: