torch.load allows arbitrary code execution when the argument weights_only is set to False (default). The default value will switch to True in a future torch release. People wishing to get rid of the error (and eliminate the risk of ACE when loading files you did not train yourself) can change the torch.load call in the runner.load method to include the argument weights_only=True as a default.
torch.load allows arbitrary code execution when the argument weights_only is set to False (default). The default value will switch to True in a future torch release. People wishing to get rid of the error (and eliminate the risk of ACE when loading files you did not train yourself) can change the torch.load call in the runner.load method to include the argument weights_only=True as a default.
Specifically:
should become