File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 36
36
from torchtune .modules .peft import get_adapter_state_dict
37
37
from torchtune .utils import get_device , get_logger
38
38
from torchtune .utils ._logging import deprecated
39
- from torchtune .utils ._version import torch_version_ge
40
39
41
40
_log : logging .Logger = get_logger ()
42
41
43
42
44
43
_valid_distributed_single_node_nnodes = ["1:1" , "1" ]
45
44
46
45
torch_version = torch .__version__
47
- _DISTRIBUTED_STATE_DICT_API_IS_AVAILABLE = (
48
- "dev" not in torch_version and torch_version_ge ("2.6.0" )
49
- ) or ("dev" in torch_version and torch_version .split ("dev" )[1 ] >= "20241220" )
46
+ # TODO: Fix issues with DSD before uncommenting. See #2313 and #2277.
47
+ # _DISTRIBUTED_STATE_DICT_API_IS_AVAILABLE = (
48
+ # "dev" not in torch_version and torch_version_ge("2.6.0")
49
+ # ) or ("dev" in torch_version and torch_version.split("dev")[1] >= "20241220")
50
+ _DISTRIBUTED_STATE_DICT_API_IS_AVAILABLE = False
50
51
51
52
52
53
def _get_sharding_strategy (strategy : str ) -> ShardingStrategy :
You can’t perform that action at this time.
0 commit comments