You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm now training a large model with 2.5B parameters with AdamW optimizer. Due to the known issue about FSDP and activation checkpointing, I'm using FSDP with flatten params = False. When saving the training checkpoint, the model has state_dict() and local_state_dict() two methods which distinguish saving full or sharded model states. Is it possible to save all full (not sharded ) optimizer states in a single file as well?
I saw the gather_full_optim_state_dict method but there is an assertion that requires flatten_parameters=True
The text was updated successfully, but these errors were encountered:
ShenglongZ
changed the title
FSDP consolidate optimizer state dict with flatten params is False
FSDP cannot consolidate optimizer state dict with flatten params is False
Dec 13, 2022
hi @min-xu-ai I've tried pytorch version's FSDP but it has problems with the usage of checkpointing and offload. It seems that the work is still in progress. Is there any clean implementation of saving optimizer states with flatten_parameters=False?
I'm now training a large model with 2.5B parameters with AdamW optimizer. Due to the known issue about FSDP and activation checkpointing, I'm using FSDP with flatten params = False. When saving the training checkpoint, the model has state_dict() and local_state_dict() two methods which distinguish saving full or sharded model states. Is it possible to save all full (not sharded ) optimizer states in a single file as well?
I saw the
gather_full_optim_state_dict
method but there is an assertion that requires flatten_parameters=TrueThe text was updated successfully, but these errors were encountered: