Hey,
I know this is quite old, but what worked for me when I had the same issue:
torch.load('file.pt', map_location=lambda storage, location: storage)
PS: The .pt extension is arbitrarily chosen, you can use whatever you want.