[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:
Saurabh Mishra 2025-02-13 17:44:30 +00:00 committed by PyTorch MergeBot
parent 938209fb6f
commit 7077d0ac8c

View File

@ -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