|
14 | 14 | limitations under the License. |
15 | 15 | """ |
16 | 16 |
|
17 | | -from ..core.blueprint.blueprint_generator import get_subnetworks_for_a3mega, get_subnetworks_for_a3ultra |
18 | | -from ..core.capacity import H100_MEGA_DEVICE_TYPE, H200_DEVICE_TYPE |
19 | 17 | from argparse import Namespace |
20 | | -import yaml |
21 | | -from .workload_decorators.tcpxo_decorator import get_tcpxo_deamon_entry |
22 | | -from ..utils.console import xpk_print, xpk_exit |
| 18 | +from enum import Enum |
23 | 19 |
|
24 | | -from ..utils import templates |
| 20 | +import yaml |
25 | 21 | from kubernetes import client as k8s_client |
26 | 22 | from kubernetes.client import ApiClient |
27 | 23 | from kubernetes.client.rest import ApiException |
28 | | -from .cluster import setup_k8s_env, XPK_SA, DEFAULT_NAMESPACE |
29 | | -from .storage import get_auto_mount_storages, get_auto_mount_gcsfuse_storages |
30 | | -from .commands import run_command_for_value, run_kubectl_apply, run_command_with_updates |
31 | | -from .config import XpkConfig, KJOB_SHELL_IMAGE, KJOB_SHELL_INTERACTIVE_COMMAND, KJOB_SHELL_WORKING_DIRECTORY, KJOB_BATCH_IMAGE, KJOB_BATCH_WORKING_DIRECTORY |
32 | | -from .resources import get_cluster_system_characteristics, SystemCharacteristics, AcceleratorType |
33 | | -from enum import Enum |
34 | | - |
35 | | -from ..core.workload_decorators import tcpxo_decorator |
36 | 24 |
|
37 | | -from ..core.workload_decorators import rdma_decorator |
| 25 | +from ..core.capacity import H100_MEGA_DEVICE_TYPE, H200_DEVICE_TYPE |
| 26 | +from ..core.workload_decorators import rdma_decorator, tcpxo_decorator |
| 27 | +from ..utils import templates |
| 28 | +from ..utils.console import xpk_exit, xpk_print |
| 29 | +from .cluster import DEFAULT_NAMESPACE, XPK_SA, setup_k8s_env |
| 30 | +from .commands import ( |
| 31 | + run_command_for_value, |
| 32 | + run_command_with_updates, |
| 33 | + run_kubectl_apply, |
| 34 | +) |
| 35 | +from .config import ( |
| 36 | + KJOB_BATCH_IMAGE, |
| 37 | + KJOB_BATCH_WORKING_DIRECTORY, |
| 38 | + KJOB_SHELL_IMAGE, |
| 39 | + KJOB_SHELL_INTERACTIVE_COMMAND, |
| 40 | + KJOB_SHELL_WORKING_DIRECTORY, |
| 41 | + XpkConfig, |
| 42 | +) |
| 43 | +from .network import get_subnetworks_for_a3mega, get_subnetworks_for_a3ultra |
| 44 | +from .resources import ( |
| 45 | + AcceleratorType, |
| 46 | + SystemCharacteristics, |
| 47 | + get_cluster_system_characteristics, |
| 48 | +) |
| 49 | +from .storage import get_auto_mount_gcsfuse_storages, get_auto_mount_storages |
| 50 | +from .workload_decorators.tcpxo_decorator import get_tcpxo_deamon_entry |
38 | 51 |
|
39 | 52 | KJOB_API_GROUP_NAME = "kjobctl.x-k8s.io" |
40 | 53 | KJOB_API_GROUP_VERSION = "v1alpha1" |
|
0 commit comments