[Minor] Fix the path typo in loader.py: save_sharded_states.py -> save_sharded_state.py (#5151)

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
This commit is contained in:
Ye Cao 2024-06-02 01:11:22 +08:00 committed by GitHub
parent f081c3ce4b
commit c354072828
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -386,7 +386,7 @@ class ShardedStateLoader(BaseModelLoader):
Model loader that directly loads each worker's model state dict, which
enables a fast load path for large tensor-parallel models where each worker
only needs to read its own shard rather than the entire checkpoint. See
`examples/save_sharded_states.py` for creating a sharded checkpoint.
`examples/save_sharded_state.py` for creating a sharded checkpoint.
"""
DEFAULT_PATTERN = "model-rank-{rank}-part-{part}.safetensors"