Skip to content

Commit 2b3bba6

Browse files
authored
Minor Fixes to lite/debug CI (#16261)
1 parent f35f449 commit 2b3bba6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/lightning/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def _detail(self: Any, message: str, *args: Any, **kwargs: Any) -> None:
4040
from lightning.fabric.utilities.seed import seed_everything # noqa: E402
4141
from lightning.pytorch.callbacks import Callback # noqa: E402
4242
from lightning.pytorch.core import LightningDataModule, LightningModule # noqa: E402
43-
from lightning.pytorch.lite import LightningLite # noqa: E402
4443
from lightning.pytorch.trainer import Trainer # noqa: E402
4544

4645
import lightning.app # isort: skip # noqa: E402
@@ -61,7 +60,6 @@ def _detail(self: Any, message: str, *args: Any, **kwargs: Any) -> None:
6160
"LightningModule",
6261
"Callback",
6362
"seed_everything",
64-
"LightningLite",
6563
"Fabric",
6664
"storage",
6765
"pdb",

tests/tests_pytorch/utilities/migration/test_migration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ def test_migrate_model_checkpoint_save_on_train_epoch_end_default_collision():
148148
assert updated_checkpoint["callbacks"] == old_checkpoint["callbacks"] # no migration was performed
149149

150150

151-
def test_migrate_dropped_apex_amp_state():
151+
def test_migrate_dropped_apex_amp_state(monkeypatch):
152152
"""Test that the migration warns about collisions that would occur if the keys were modified."""
153+
monkeypatch.setattr(pl, "__version__", "2.0.0") # pretend this version of Lightning is >= 2.0.0
153154
old_checkpoint = {"amp_scaling_state": {"scale": 1.23}}
154155
_set_version(old_checkpoint, "1.9.0") # pretend a checkpoint prior to 2.0.0
155156
with pytest.warns(UserWarning, match="checkpoint contains apex AMP data"):

0 commit comments

Comments
 (0)