Skip to content

No way to silence the litmodels advertisement #21294

@ruro

Description

@ruro

Bug description

Running trainer.fit with default checkpointing currently prints

💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.

This advertisement is displayed even if litmodels is installed, but not used.

I don't need any "cloud uploads and versioning". In fact, I am often working with proprietary models and restricted data. I sincerely hope that this "tip" isn't suggesting that lightning is going to automatically upload anything anywhere (whether I have this litmodels package installed or not).

Please, do one of the following (in order of personal preference):

  1. remove this advertisement
  2. only show this advertisement when appropriate (perhaps, if you detect that the user does have litmodels installed or is already using some "cloud"-related stuff)
  3. provide a way to silence this advertisement

What version are you seeing the problem on?

v2.5

Reproduced in studio

No response

How to reproduce the bug

model = ...
dl_train = ...
dl_valid = ...
trainer = L.Trainer(accelerator="auto", max_epochs=3)
trainer.fit(model, dl_train, dl_valid)


As far as I can tell, the model and dataloaders are irrelevant to this issue.

Error messages and logs

💡 Tip: For seamless cloud uploads and versioning, try installing [litmodels](https://pypi.org/project/litmodels/) to enable LitModelCheckpoint, which syncs automatically with the Lightning model registry.

Environment

Current environment
#- PyTorch Lightning Version (e.g., 2.5.0): 2.5.5
#- PyTorch Version (e.g., 2.5): 2.8.0
#- Python version (e.g., 3.12): 3.12.11
#- OS (e.g., Linux): Linux
#- CUDA/cuDNN version: 12.8
#- GPU models and configuration: any model, default configuration
#- How you installed Lightning(`conda`, `pip`, source): pip

More info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    loggingRelated to the `LoggerConnector` and `log()`ver: 2.5.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions