The history of past epochs are not saved. If you need to go back to epoch 40, then you should have saved the model at epoch 40.
Also, in addition to the model parameters, you should also save the state of the optimizer, because the parameters of optimizer may also change after iterations.