Skip to content

Commit b90835b

Browse files
committed
[checkpointio] fix performance issue (#6139)
1 parent 8e08c27 commit b90835b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

colossalai/checkpoint_io/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,6 @@ def clean_folder(
441441
reg = re.compile(r"(.*?)-stage-\d{5}-shard-\d{5}")
442442
if (
443443
filename.startswith(weights_no_suffix)
444-
and os.path.isfile(full_filename)
445444
and filename not in shard_filenames
446445
and reg.fullmatch(filename_no_suffix) is not None
447446
):

0 commit comments

Comments
 (0)