Skip to content

Fix elastic checkpoint save/restore goodput/badput calculation edge cases. - #21

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_988387142
Oct 1, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_988387142

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Fix elastic checkpoint save/restore goodput/badput calculation edge cases.

@copybara-service
copybara-service Bot force-pushed the test_988387142 branch 2 times, most recently from 9564e16 to 4b7351b Compare October 1, 2026 18:35
@copybara-service copybara-service Bot changed the title Fix elastic and checkpoint goodput/badput calculation edge cases BEGIN_PUBLIC Fix elastic checkpoint save/restore goodput/badput calculation edge cases. END_PUBLIC Oct 1, 2026
@dipannita08 dipannita08 changed the title BEGIN_PUBLIC Fix elastic checkpoint save/restore goodput/badput calculation edge cases. END_PUBLIC Fix elastic checkpoint save/restore goodput/badput calculation edge cases. Oct 1, 2026
…lation edge cases. END_PUBLIC

Fix elastic and checkpoint goodput/badput calculation edge cases

This change fixes several Goodput and Badput calculation and crash issues for elastic and checkpointed workloads:
- Detect in-process elastic restarts (`elastic_wait_start_time` / `elastic_reinit_start_time`) in `ElasticGoodputCalculator` when `job_start_time` is not logged.
- Discount `UNPRODUCTIVE_CHECKPOINT_RESTORE_TIME` overlap within `ELASTIC_REINITIALIZATION` intervals alongside `TPU_INITIALIZATION` and `TRAINING_PREP`.
- Deduct synchronous checkpoint save blocking time per step before computing `PROGRAM_STARTUP` (`startup_extra_time`), and avoid subtracting checkpoint save badput for uncompleted tail steps.
- Use historical step times as fallback baseline when a post-restart segment has only a single completed step.
- Exclude duration and `None` fields in `get_timestamp_from_log_entry` and safely handle `None` checkpoint durations in `CheckpointBadputCalculator`.
- Make step deviation and ideal step time calculations restart- and checkpoint-aware.

PiperOrigin-RevId: 991804459
@copybara-service
copybara-service Bot merged commit c67e909 into main Oct 1, 2026
4 of 6 checks passed
@copybara-service
copybara-service Bot deleted the test_988387142 branch October 1, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant