Skip to content

Commit

Permalink
Avoid module level StrictHandling
Browse files Browse the repository at this point in the history
Signed-off-by: Mikołaj Błaż <mblaz@nvidia.com>
  • Loading branch information
mikolajblaz committed Jul 4, 2024
1 parent f6f4e9e commit ddb6be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nemo/utils/callbacks/dist_ckpt_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __init__(
self,
save_ckpt_format: str,
load_directly_on_device: bool = True,
load_strictness: StrictHandling = StrictHandling.ASSUME_OK_UNEXPECTED,
load_strictness: 'StrictHandling' = 'assume_ok_unexpected',
async_save: bool = False,
):
super().__init__()
Expand Down Expand Up @@ -245,7 +245,7 @@ def load_checkpoint(
path: _PATH,
map_location: Optional[Any] = None,
sharded_state_dict: Dict[str, Any] = None,
strict: Union[None, bool, StrictHandling] = None,
strict: Union[None, bool, 'StrictHandling'] = None,
validate_access_integrity: Optional[bool] = True,
) -> Dict[str, Any]:
"""Loads a distributed checkpoint.
Expand Down

0 comments on commit ddb6be3

Please sign in to comment.