How to read .pt file

You can take a look at this tutorial for more details on how saving and loading models in PyTorch are done.

The model’s state_dict is just a regular python dictionary once it is loaded. Maybe this thread can help you understand how to manipulate it, i.e., add/or change parameters, etc.

5 Likes