Lightning-AI / Lightning-AI/pytorch-lightning

on_checkpoint_write_end callback

Open
#15,795 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

callback feature
Dominant language
Python
Stars
31.4k
Forks
3.8k
Avg merge
6d 7h
Merged PRs (30d)
6

Description

## 🚀 Feature

A callback for when the checkpoint has finished to be writen.
on_save_checkpoint is indeed triggered before the checkpoint is written to disk.

### Motivation

My motivation is that i want to launch some codes once i'm sure that the checkpoint has been created (some validation on checkpoints to be runed as different processes

### Pitch

I want to be able to write callbacks which can be triggered once the callbacks has been written

cc @borda @awaelchli

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing on_save_checkpoint callback and the checkpoint-writing flow to identify where writing has fully completed. The work is done when a separate on_checkpoint_write_end callback can reliably trigger after the checkpoint is created, allowing follow-up validation processes to run safely.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.