There has been some discussion around it: pickle is a security issue · Issue #52596 · pytorch/pytorch · GitHub 3
But I don’t think there is a simple solution.
I guess you can require them to export their model to onnx. But that might lead to some restrictions as not all PyTorch models are able to go through onnx