Skip to content

Commit 625d5fd

Browse files
committed
lightning-ai/jirka/lit-boring
1 parent b8b2b7c commit 625d5fd

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

examples/demo-upload-download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
# Upload the model checkpoint
1313
litmodels.upload_model(
1414
"./boring-checkpoint.pt",
15-
"jirka/kaggle/boring-model",
15+
"lightning-ai/jirka/lit-boring-model",
1616
)
1717

1818
# Download the model checkpoint
19-
model_path = litmodels.download_model("jirka/kaggle/boring-model", download_dir="./my-models")
19+
model_path = litmodels.download_model("lightning-ai/jirka/lit-boring-model", download_dir="./my-models")
2020
print(f"Model downloaded to {model_path}")
2121

2222
# Load the model checkpoint

examples/resume-lightning-training.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
This example demonstrates how to resume training of a model using the `download_model` function.
33
"""
44

5+
import os
6+
57
from lightning import Trainer
68
from lightning.pytorch.demos.boring_classes import BoringModel
79
from litmodels import download_model
810

911
# Define the model name - this should be unique to your model
1012
# The format is <organization>/<teamspace>/<model-name>:<model-version>
11-
MY_MODEL_NAME = "jirka/kaggle/lit-auto-encoder-callback:latest"
13+
MY_MODEL_NAME = "lightning-ai/jirka/lit-boring-callback:latest"
1214

1315

1416
if __name__ == "__main__":
15-
model_path = download_model(name=MY_MODEL_NAME, download_dir="my_models")
17+
model_files = download_model(name=MY_MODEL_NAME, download_dir="my_models")
18+
model_path = os.path.join("my_models", model_files[0])
1619
print(f"model: {model_path}")
17-
# autoencoder = LitAutoEncoder.load_from_checkpoint(checkpoint_path=model_path)
1820

1921
trainer = Trainer(max_epochs=4)
2022
trainer.fit(

examples/train-model-and-simple-save.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Define the model name - this should be unique to your model
1010
# The format is <organization>/<teamspace>/<model-name>
11-
MY_MODEL_NAME = "jirka/kaggle/lit-auto-encoder-simple"
11+
MY_MODEL_NAME = "lightning-ai/jirka/lit-boring-simple"
1212

1313

1414
if __name__ == "__main__":

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Define the model name - this should be unique to your model
1010
# The format is <organization>/<teamspace>/<model-name>
11-
MY_MODEL_NAME = "lightning-ai/jirka/lit-auto-encoder-callback"
11+
MY_MODEL_NAME = "lightning-ai/jirka/lit-boring-callback"
1212

1313

1414
if __name__ == "__main__":

0 commit comments

Comments
 (0)