The correct way of saving DP/DDP checkpoints is to access the module parameter of the class. Please do that instead of saving the whole DP/DDP class' state dict and then trimming the name.