Skip to content

Migrate from pytorch_lightning to lightning.pytorch package#648

Open
arnavk23 wants to merge 5 commits intopytorch-tabular:mainfrom
arnavk23:feature/migrate-to-lightning-pytorch-622
Open

Migrate from pytorch_lightning to lightning.pytorch package#648
arnavk23 wants to merge 5 commits intopytorch-tabular:mainfrom
arnavk23:feature/migrate-to-lightning-pytorch-622

Conversation

@arnavk23
Copy link
Copy Markdown

@arnavk23 arnavk23 commented Mar 2, 2026

Fixes #622 by migrating to the new 'lightning' package naming convention introduced by Lightning AI.

arnavk23 added 2 commits March 2, 2026 15:21
This addresses issue pytorch-tabular#622 by migrating to the new 'lightning' package naming
convention introduced by Lightning AI.

Changes:
- Update pyproject.toml: Change dependency from 'pytorch-lightning' to 'lightning'
- Update all imports: Replace 'pytorch_lightning' with 'lightning.pytorch'
- Update version checks: Change 'pytorch_lightning<2.6' to 'lightning<2.6'
- Update documentation URLs to point to new lightning.ai docs

Files modified:
- pyproject.toml: Updated dependency and keywords
- tabular_model.py: Updated all lightning imports
- tabular_datamodule.py: Updated lightning import
- models/base_model.py: Updated import and version check
- ssl_models/base_model.py: Updated import and version check
- ssl_models/common/ssl_utils.py: Updated import
- utils/python_utils.py: Updated get_filesystem imports
- config/config.py: Updated documentation URL

This maintains full backward compatibility as both packages currently
coexist, but prepares for future when pytorch-lightning may be deprecated.
The new 'lightning' package is the official name going forward.

Fixes pytorch-tabular#622
Comment thread src/pytorch_tabular/models/base_model.py Outdated
@arnavk23
Copy link
Copy Markdown
Author

arnavk23 commented Apr 7, 2026

@fkiraly whenever you have time, please take a look. Thanks!

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.

[ENH] Move to lightning.pytorch in place of pytorch_lightning.

2 participants