You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also enhance your training with a simple Checkpointing callback which would always save the best model to the cloud storage and continue training.
95
+
This can would be handy especially with long trainings or using interruptible machines so you would always resume/recover from the best model.
96
+
97
+
```python
98
+
import os
99
+
import torch.utils.data as data
100
+
import torchvision as tv
101
+
from lightning import Callback, Trainer
102
+
from litmodels import upload_model
103
+
from litmodels.demos import BoringModel
104
+
105
+
# Define the model name - this should be unique to your model
106
+
# The format is <organization>/<teamspace>/<model-name>
0 commit comments