Skip to content

Commit

Permalink
Pin checkpoint state dict flattening patch
Browse files Browse the repository at this point in the history
  • Loading branch information
b-chu committed Nov 4, 2024
1 parent 969d3b1 commit da96c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer/utils/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def dist_cp_load(
storage_reader: StorageReader,
load_planner: Optional[LoadPlanner] = None,
):
if version.parse(torch.__version__) >= version.parse('2.4.0'):
if (version.parse(torch.__version__) >= version.parse('2.4.0') and version.parse(torch.__version__) < version.parse('2.5.0')):
from torch.distributed.checkpoint.utils import CheckpointException
try:
dist_cp.load(
Expand Down

0 comments on commit da96c16

Please sign in to comment.