Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Neuron: When save_safetensor=False, no need to move model to CPU
save_safetensor=True is default as of release 4.35.0, which then required TPU hotfix huggingface#27799 (issue huggingface#27578). However, when the flag save_safetensor is set to False (compatibility mode), moving the model to CPU causes generation of too many graphs during checkpoint huggingface#28438. This PR disable moving of model to CPU when save_safetensor=False.
- Loading branch information