Skip to content

Commit b473617

Browse files
sguggerstas00
andauthored
Checkpoint sharding (#16343)
* Sharded checkpoint support * Handle distant sharded checkpoints * Add tests * TODO is done * Apply suggestions from code review Co-authored-by: Stas Bekman <stas00@users.noreply.github.com> * Fix docstring * Add example and format * Address review comments * More review comments * End of merge * Revert unintentional change * VsCode what did you do? * Style * Changes * Address final comments * Quality * Moar tests * Move import beneath is_pt_available Co-authored-by: Stas Bekman <stas00@users.noreply.github.com>
1 parent 7fa7408 commit b473617

File tree

4 files changed

+710
-142
lines changed

4 files changed

+710
-142
lines changed

src/transformers/file_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
USE_JAX,
5353
USE_TF,
5454
USE_TORCH,
55+
WEIGHTS_INDEX_NAME,
5556
WEIGHTS_NAME,
5657
ContextManagers,
5758
DummyObject,

0 commit comments

Comments
 (0)