I assume the model architecture does not change, but only the forward definition.
If that’s the case, you could just save the state_dict using the Serialization semantics.
You should be able to load the state_dict in both models, as long as all submodules are equal.