If you are creating a new model, you would also have to create a new optimizer and pass the newly created parameters to it.
Using the old optimizer might work, if you just change the parameters somehow inplace, but we would need to see some code, which you are using, to debug it properly.