Add condition to avoid saving duplicate checkpoints.
Add condition to avoid saving duplicate checkpoints.

PiperOrigin-RevId: 277156216

tombstone/models,alexgorban/models,alexgorban/models,tombstone/models,tombstone/models,alexgorban/models,tombstone/models,alexgorban/models,tombstone/models,alexgorban/models,tombstone/models