Skip to content

Commit

Permalink
removed upper bound for dist_cp.load_state_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
rithwik-db committed Feb 19, 2025
1 parent 5e1b16e commit 2c4475e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions composer/utils/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,7 @@ def dist_cp_load(
storage_reader: StorageReader,
load_planner: Optional[LoadPlanner] = None,
):
if (
version.parse(torch.__version__) >= version.parse('2.4.0') and
version.parse(torch.__version__) < version.parse('2.5.0') # TODO(Check): It seems that we shouldn't have a higher bound here.
):
if version.parse(torch.__version__) >= version.parse('2.4.0'):
from torch.distributed.checkpoint.utils import CheckpointException
try:
dist_cp.load(
Expand Down

0 comments on commit 2c4475e

Please sign in to comment.