You can store the state_dict, which will include the parameters and buffers of the model as described in the serialization docs 2.
Later you can create an instance of your model and load this state_dict before testing the model.
Also, don’t forget to call model.eval() to switch the behavior of some layers, such as disabling dropout.