Hello,
I would be very sceptical of defining format from the extension. I myself saw lot’s of different ways of saving pytorch models of the same format with different extensions (though pytorch’s documentations suggests conventinal way).
Not 100% sure but it may end up that .pth and .pkl are refering to the same format.