Skip to content

Commit 6cf2581

Browse files
authored
update model message (#20753)
* update model message * nitpick_ignore
1 parent 1af7f73 commit 6cf2581

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/docs-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
lfs: ${{ matrix.pkg-name == 'pytorch' }}
7373
- uses: actions/setup-python@v5
7474
with:
75-
python-version: "3.9"
75+
python-version: "3.10"
7676

7777
- name: List notebooks
7878
if: ${{ matrix.pkg-name == 'pytorch' }}

docs/source-fabric/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@
292292
("py:.*", "torch_xla.*"),
293293
("py:class", "transformer_engine.*"),
294294
("py:class", "bitsandbytes.*"),
295+
# loggers
296+
('py:class', 'tensorboardX.SummaryWriter'), # todo: this is unexpected as the imports locally works
295297
]
296298

297299
# -- Options for todo extension ----------------------------------------------

docs/source-pytorch/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ def _load_py_module(name: str, location: str) -> ModuleType:
377377
# missing in generated API
378378
("py:exc", "MisconfigurationException"),
379379
# TODO: generated list of all existing ATM, need to be fixed
380+
('py:class', 'tensorboardX.SummaryWriter'),
380381
("py:class", "AveragedModel"),
381382
("py:class", "CometExperiment"),
382383
("py:meth", "DataModule.__init__"),

src/lightning/pytorch/trainer/connectors/callback_connector.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,8 @@ def _configure_checkpoint_callbacks(self, enable_checkpointing: bool) -> None:
106106
model_checkpoint = LitModelCheckpoint(model_registry=self.trainer._model_registry)
107107
else:
108108
rank_zero_info(
109-
"You are using the default ModelCheckpoint callback."
110-
" Install `pip install litmodels` package to use the `LitModelCheckpoint` instead"
111-
" for seamless uploading to the Lightning model registry."
109+
"Using default `ModelCheckpoint`. Consider installing `litmodels` package to enable"
110+
" `LitModelCheckpoint` for automatic upload to the Lightning model registry."
112111
)
113112
model_checkpoint = ModelCheckpoint()
114113
self.trainer.callbacks.append(model_checkpoint)

0 commit comments

Comments
 (0)