Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/train-model-with-lightning-callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import torch.utils.data as data
import torchvision as tv
from lightning import Trainer
from litmodels.integrations.lightning_checkpoint import LitModelCheckpoint
from litmodels.integrations import LitModelCheckpoint
from sample_model import LitAutoEncoder

# Define the model name - this should be unique to your model
Expand Down
2 changes: 1 addition & 1 deletion src/litmodels/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.1.0.post0"
__version__ = "0.1.1"
__author__ = "Lightning-AI et al."
__author_email__ = "[email protected]"
__license__ = "Apache-2.0"
Expand Down
4 changes: 4 additions & 0 deletions src/litmodels/integrations/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
"""Integrations with training frameworks like PyTorch Lightning, TensorFlow, and others."""

from litmodels.integrations.checkpoints import LitModelCheckpoint

__all__ = ["LitModelCheckpoint"]
4 changes: 2 additions & 2 deletions tests/integrations/test_lightning.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import re
from unittest import mock

from litmodels.integrations.checkpoints import LitModelCheckpoint
from litmodels.integrations.imports import _LIGHTNING_AVAILABLE, _PYTORCHLIGHTNING_AVAILABLE
from litmodels.integrations.lightning_checkpoint import LitModelCheckpoint

if _LIGHTNING_AVAILABLE:
from lightning import Trainer
Expand All @@ -13,7 +13,7 @@


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

Expand Down
Loading