File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed
Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 22# Licensed under the Apache License, Version 2.0 (the "License");
33# http://www.apache.org/licenses/LICENSE-2.0
44#
5- from typing import TYPE_CHECKING , Optional , Tuple
5+ from typing import Optional , Tuple
66
77from lightning_sdk .api .teamspace_api import UploadedModelInfo
88from lightning_sdk .teamspace import Teamspace
99from lightning_sdk .utils import resolve as sdk_resolvers
10- from lightning_utilities import module_available
11-
12- if TYPE_CHECKING :
13- pass
14-
15- if module_available ("torch" ):
16- pass
17- else :
18- torch = None
1910
2011# if module_available("lightning"):
2112# from lightning import LightningModule
Original file line number Diff line number Diff line change 44from typing import Optional , Union
55
66from lightning_sdk .api .teamspace_api import UploadedModelInfo
7+ from lightning_utilities import module_available
78from torch .nn import Module
89
9- from litmodels .io .cloud import download_model_file , torch , upload_model_files
10+ from litmodels .io .cloud import download_model_file , upload_model_files
11+
12+ if module_available ("torch" ):
13+ import torch
14+ else :
15+ torch = None
1016
1117
1218def upload_model (
You can’t perform that action at this time.
0 commit comments