transform ckpt api fix

This commit is contained in:
yao_yf 2023-01-30 09:16:17 +08:00
parent 63a8b36505
commit 13e62536de
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ def transform_checkpoint_by_rank(rank_id, checkpoint_files_map, save_checkpoint_
>>> checkpoint_files_map[rank] = "./origin_checkpoint_rank{}/pangu{}-100_2.ckpt".format(rank)
>>> save_checkpoint_file_name = "./new_checkpoint_rank{}/pangu{}-100_2.ckpt".format(rank_id)
>>> transform_checkpoint_by_rank(rank_id, checkpoint_files_map, save_checkpoint_file_name,
>>> "./src_strategy.ckpt", "./dst_strategy.ckpt")
... "./src_strategy.ckpt", "./dst_strategy.ckpt")
"""
if not isinstance(checkpoint_files_map, dict):