From 9a35095274454902efede9f6e2f093ddea73d8ed Mon Sep 17 00:00:00 2001 From: Shion Matsumoto Date: Sun, 17 Aug 2025 18:52:22 -0400 Subject: [PATCH 1/2] typos --- src/lightning/pytorch/trainer/trainer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lightning/pytorch/trainer/trainer.py b/src/lightning/pytorch/trainer/trainer.py index 732521b1b0ce7..b26a3bd057858 100644 --- a/src/lightning/pytorch/trainer/trainer.py +++ b/src/lightning/pytorch/trainer/trainer.py @@ -532,7 +532,7 @@ def fit( datamodule: A :class:`~lightning.pytorch.core.datamodule.LightningDataModule` that defines the :class:`~lightning.pytorch.core.hooks.DataHooks.train_dataloader` hook. - ckpt_path: Path/URL of the checkpoint from which training is resumed. Could also be one of two special + ckpt_path: Path/URL of the checkpoint from which training is resumed. Could also be one of three special keywords ``"last"``, ``"hpc"`` and ``"registry"``. Otherwise, if there is no checkpoint file at the path, an exception is raised. @@ -541,11 +541,11 @@ def fit( - registry: the model will be downloaded from the Lightning Model Registry with following notations: - ``'registry'``: uses the latest/default version of default model set - with ``Tainer(..., model_registry="my-model")`` + with ``Trainer(..., model_registry="my-model")`` - ``'registry:model-name'``: uses the latest/default version of this model `model-name` - ``'registry:model-name:version:v2'``: uses the specific version 'v2' of the model `model-name` - ``'registry:version:v2'``: uses the default model set - with ``Tainer(..., model_registry="my-model")`` and version 'v2' + with ``Trainer(..., model_registry="my-model")`` and version 'v2' Raises: From 0234b91054bc17c88368a6228777ece19023fa4d Mon Sep 17 00:00:00 2001 From: Shion Matsumoto Date: Sun, 17 Aug 2025 19:03:45 -0400 Subject: [PATCH 2/2] remove extra space --- src/lightning/pytorch/trainer/trainer.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lightning/pytorch/trainer/trainer.py b/src/lightning/pytorch/trainer/trainer.py index b26a3bd057858..21c75c3096125 100644 --- a/src/lightning/pytorch/trainer/trainer.py +++ b/src/lightning/pytorch/trainer/trainer.py @@ -547,7 +547,6 @@ def fit( - ``'registry:version:v2'``: uses the default model set with ``Trainer(..., model_registry="my-model")`` and version 'v2' - Raises: TypeError: If ``model`` is not :class:`~lightning.pytorch.core.LightningModule` for torch version less than