The code looks alright.
To make sure everything was loaded properly, you could also print (some) values from model.layer3/4 and the corresponding other_model layers.
So save some memory, you could also store the already loaded parameters from model and reload them later instead of creating other_model, but your code should work anyway.