Save and load model pytoch

hello guys,
i had been save a train model ResNet in collab but if i load this model with spyder (ubuntu) i have this error (RuntimeError: [enforce fail at inline_container.cc:144] . PytorchStreamReader failed reading zip archive: failed finding central directory)
this is the save and the load !
image

Are you using torchscript model? if so, you should use torch.jit.save for saving a torchscript model.

Besides what @Keyv_Krmn mentioned, check if you are using the same PyTorch versions, since loading a state_dict should be backwards compatible but not necessarily forwards compatible.
I.e. storing a state_dict in an older PyTorch version and loading it with a newer one should work, while the opposite direction could fail.