Skip to content

Commit c046863

Browse files
committed
Fixed log to show how many slices are available during start up
1 parent 8cda6c9 commit c046863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaxText/elastic_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def wait_for_all_slices(
438438
good_slice_indices = elastic_manager.get_slice_availability()
439439
while len(good_slice_indices) < elastic_manager.total_slice_count:
440440
max_logging.log(
441-
f"Only {elastic_manager.good_slice_count} slices out of {elastic_manager.total_slice_count} available. "
441+
f"Only {len(good_slice_indices)} slices out of {elastic_manager.total_slice_count} available. "
442442
f"Sleeping for {wait_period} seconds."
443443
)
444444
time.sleep(wait_period)

0 commit comments

Comments
 (0)