Skip to content

Commit a96a450

Browse files
authored
releasing 0.1.1 (#51)
1 parent a69a4b0 commit a96a450

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

examples/train-model-with-lightning-callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import torch.utils.data as data
66
import torchvision as tv
77
from lightning import Trainer
8-
from litmodels.integrations.lightning_checkpoint import LitModelCheckpoint
8+
from litmodels.integrations import LitModelCheckpoint
99
from sample_model import LitAutoEncoder
1010

1111
# Define the model name - this should be unique to your model

src/litmodels/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.1.0.post0"
1+
__version__ = "0.1.1"
22
__author__ = "Lightning-AI et al."
33
__author_email__ = "[email protected]"
44
__license__ = "Apache-2.0"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
"""Integrations with training frameworks like PyTorch Lightning, TensorFlow, and others."""
2+
3+
from litmodels.integrations.checkpoints import LitModelCheckpoint
4+
5+
__all__ = ["LitModelCheckpoint"]

tests/integrations/test_lightning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import re
22
from unittest import mock
33

4+
from litmodels.integrations.checkpoints import LitModelCheckpoint
45
from litmodels.integrations.imports import _LIGHTNING_AVAILABLE, _PYTORCHLIGHTNING_AVAILABLE
5-
from litmodels.integrations.lightning_checkpoint import LitModelCheckpoint
66

77
if _LIGHTNING_AVAILABLE:
88
from lightning import Trainer
@@ -13,7 +13,7 @@
1313

1414

1515
@mock.patch("litmodels.io.cloud.sdk_upload_model")
16-
@mock.patch("litmodels.integrations.lightning_checkpoint.Auth")
16+
@mock.patch("litmodels.integrations.checkpoints.Auth")
1717
def test_lightning_checkpoint_callback(mock_auth, mock_upload_model, tmp_path):
1818
mock_upload_model.return_value.name = "org-name/teamspace/model-name"
1919

0 commit comments

Comments
 (0)