Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiled model state_dict() workaround
Pytorch 2.0 adds '_orig_mod.' prefix to keys of state_dict() of compiled models. For compatibility, we save state_dict() of the original model, which shares the weights without the prefix.
- Loading branch information