mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-12 12:47:21 +00:00
[checkpoint] support huggingface style sharded checkpoint (#3461)
* [checkpoint] support huggingface style sharded checkpoint * [checkpoint] support huggingface style sharded checkpoint * [checkpoint] support huggingface style sharded checkpoint * [checkpoint] support huggingface style sharded checkpoint * [checkpoint] support huggingface style sharded checkpoint --------- Co-authored-by: luchen <luchen@luchendeMBP.lan>
This commit is contained in:
@@ -148,3 +148,9 @@ class CheckpointIndexFile:
|
||||
"""
|
||||
ckpt_path = self.weight_map[param_name]
|
||||
return ckpt_path
|
||||
|
||||
def get_all_param_names(self):
|
||||
"""
|
||||
Get all the weight keys.
|
||||
"""
|
||||
return list(self.weight_map.keys())
|
||||
|
Reference in New Issue
Block a user