You should pass the parameters of the model that you are creating. The parameters of this model and the state of the optimizer will be over-written upon loading the checkpoint.
Note that If you have not saved the state of the optimizer, then you cannot recover the state of the optimizer, since for some optimizers like Adam, the state varies by the gradients of your model during the training.