Skip to content

docs: remove duplicate and incorrect filename entry in ModelCheckpoint docstring - #21876

Open
Kropiunig wants to merge 1 commit into
Lightning-AI:masterfrom
Kropiunig:fix-modelcheckpoint-duplicate-filename-docstring
Open

docs: remove duplicate and incorrect filename entry in ModelCheckpoint docstring#21876
Kropiunig wants to merge 1 commit into
Lightning-AI:masterfrom
Kropiunig:fix-modelcheckpoint-duplicate-filename-docstring

Conversation

@Kropiunig

Copy link
Copy Markdown

The filename argument is documented twice in the ModelCheckpoint Args docstring. The first entry is a broken duplicate: it says the default is saved to {epoch} and contains the malformed fragment "{epoch}.and if the Trainer..." (missing space and a stray period mid-sentence). The default is actually '{epoch}-{step}' (built from "{epoch}" + CHECKPOINT_JOIN_CHAR + "{step}"), which the second filename entry already documents correctly. This removes the redundant, incorrect first entry and keeps the correct one as the single source of truth.

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