-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Serialization] support loading torch state dict from disk (#2687)
* add first version of state dict loading helpers * Rename function * Update documentation * Update documentation * Fix typo * change titles * remove file * fix docstrings * fix test for torch<=2.1.0 * changes post-review * fix importing * fix static imports * fix documentation * add requires decorator to the test * Add mmap parameter * fix Windows path escaping issue in regex match * pass device when loading safetensors
- Loading branch information
1 parent
51b866f
commit b75f8d9
Showing
5 changed files
with
656 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.