mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[DCP] Introduce modules metadata in the storage_meta (#146654)
Summary: Introduce the list of modules in the storage_meta which is shared between the planner and the storage writer. We will use it to let the storage writer know about the modules in the state dict and create module directories in the checkpoint. Test Plan: UTs Pull Request resolved: https://github.com/pytorch/pytorch/pull/146654 Approved by: https://github.com/MeetVadakkanchery
This commit is contained in:
parent
938209fb6f
commit
7077d0ac8c
|
|
@ -131,6 +131,7 @@ class StorageMeta:
|
|||
checkpoint_id: Union[str, os.PathLike, None] = None
|
||||
save_id: Optional[str] = None
|
||||
load_id: Optional[str] = None
|
||||
modules: list[str] = field(default_factory=list)
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user