How did you define the current model?
It seems as if you just stacked some modules in an nn.Sequential block.
Note that this might work for very simple models, but might fail for others.
E.g. if the original forward method contains some other functions than just calling all submodules sequentially, it won’t work out of the box.