Migrate from pytorch_lightning to lightning.pytorch package#648
Open
arnavk23 wants to merge 5 commits intopytorch-tabular:mainfrom
Open
Migrate from pytorch_lightning to lightning.pytorch package#648arnavk23 wants to merge 5 commits intopytorch-tabular:mainfrom
arnavk23 wants to merge 5 commits intopytorch-tabular:mainfrom
Conversation
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
phoeenniixx
reviewed
Mar 2, 2026
Author
|
@fkiraly whenever you have time, please take a look. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #622 by migrating to the new 'lightning' package naming convention introduced by Lightning AI.