27 lines
742 B
Python
27 lines
742 B
Python
# Copyright (c) ModelScope Contributors. All rights reserved.
|
|
from typing import TYPE_CHECKING
|
|
|
|
from swift.utils.import_utils import _LazyModule
|
|
|
|
if TYPE_CHECKING:
|
|
from .deploy import SwiftDeploy, deploy_main, run_deploy
|
|
from .infer import SwiftInfer, infer_main
|
|
from .rollout import rollout_main
|
|
else:
|
|
_import_structure = {
|
|
'rollout': ['rollout_main'],
|
|
'infer': ['infer_main', 'SwiftInfer'],
|
|
'deploy': ['deploy_main', 'SwiftDeploy', 'run_deploy'],
|
|
'protocol': ['RequestConfig', 'Function'],
|
|
}
|
|
|
|
import sys
|
|
|
|
sys.modules[__name__] = _LazyModule(
|
|
__name__,
|
|
globals()['__file__'],
|
|
_import_structure,
|
|
module_spec=__spec__,
|
|
extra_objects={},
|
|
)
|