File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -2816,19 +2816,6 @@ def create_index(
28162816 # Early detection and gating: Torch detected ⇒ enforce single-node
28172817 # & skip distributed keys. Also normalize index_file_version for
28182818 # downstream accelerator behavior.
2819- idx_ver_obj = kwargs .get ("index_file_version" )
2820- idx_ver_str = None
2821- try :
2822- if isinstance (idx_ver_obj , str ):
2823- idx_ver_str = idx_ver_obj
2824- elif hasattr (idx_ver_obj , "value" ):
2825- idx_ver_str = str (idx_ver_obj .value )
2826- elif hasattr (idx_ver_obj , "name" ):
2827- idx_ver_str = str (idx_ver_obj .name )
2828- else :
2829- idx_ver_str = str (idx_ver_obj )
2830- except Exception :
2831- idx_ver_str = None
28322819 # NOTE: Do not pass any distributed-related params when torch is involved
28332820 torch_detected_early = accelerator is not None
28342821 if torch_detected_early :
You can’t perform that action at this time.
0 commit comments