viettelcloud-aiplatform 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. viettelcloud/__init__.py +1 -0
  2. viettelcloud/aiplatform/__init__.py +15 -0
  3. viettelcloud/aiplatform/common/__init__.py +0 -0
  4. viettelcloud/aiplatform/common/constants.py +22 -0
  5. viettelcloud/aiplatform/common/types.py +28 -0
  6. viettelcloud/aiplatform/common/utils.py +40 -0
  7. viettelcloud/aiplatform/hub/OWNERS +14 -0
  8. viettelcloud/aiplatform/hub/__init__.py +25 -0
  9. viettelcloud/aiplatform/hub/api/__init__.py +13 -0
  10. viettelcloud/aiplatform/hub/api/_proxy_client.py +355 -0
  11. viettelcloud/aiplatform/hub/api/model_registry_client.py +561 -0
  12. viettelcloud/aiplatform/hub/api/model_registry_client_test.py +462 -0
  13. viettelcloud/aiplatform/optimizer/__init__.py +45 -0
  14. viettelcloud/aiplatform/optimizer/api/__init__.py +0 -0
  15. viettelcloud/aiplatform/optimizer/api/optimizer_client.py +248 -0
  16. viettelcloud/aiplatform/optimizer/backends/__init__.py +13 -0
  17. viettelcloud/aiplatform/optimizer/backends/base.py +77 -0
  18. viettelcloud/aiplatform/optimizer/backends/kubernetes/__init__.py +13 -0
  19. viettelcloud/aiplatform/optimizer/backends/kubernetes/backend.py +563 -0
  20. viettelcloud/aiplatform/optimizer/backends/kubernetes/utils.py +112 -0
  21. viettelcloud/aiplatform/optimizer/constants/__init__.py +13 -0
  22. viettelcloud/aiplatform/optimizer/constants/constants.py +59 -0
  23. viettelcloud/aiplatform/optimizer/types/__init__.py +13 -0
  24. viettelcloud/aiplatform/optimizer/types/algorithm_types.py +87 -0
  25. viettelcloud/aiplatform/optimizer/types/optimization_types.py +135 -0
  26. viettelcloud/aiplatform/optimizer/types/search_types.py +95 -0
  27. viettelcloud/aiplatform/py.typed +0 -0
  28. viettelcloud/aiplatform/trainer/__init__.py +82 -0
  29. viettelcloud/aiplatform/trainer/api/__init__.py +3 -0
  30. viettelcloud/aiplatform/trainer/api/trainer_client.py +277 -0
  31. viettelcloud/aiplatform/trainer/api/trainer_client_test.py +72 -0
  32. viettelcloud/aiplatform/trainer/backends/__init__.py +0 -0
  33. viettelcloud/aiplatform/trainer/backends/base.py +94 -0
  34. viettelcloud/aiplatform/trainer/backends/container/adapters/base.py +195 -0
  35. viettelcloud/aiplatform/trainer/backends/container/adapters/docker.py +231 -0
  36. viettelcloud/aiplatform/trainer/backends/container/adapters/podman.py +258 -0
  37. viettelcloud/aiplatform/trainer/backends/container/backend.py +668 -0
  38. viettelcloud/aiplatform/trainer/backends/container/backend_test.py +867 -0
  39. viettelcloud/aiplatform/trainer/backends/container/runtime_loader.py +631 -0
  40. viettelcloud/aiplatform/trainer/backends/container/runtime_loader_test.py +637 -0
  41. viettelcloud/aiplatform/trainer/backends/container/types.py +67 -0
  42. viettelcloud/aiplatform/trainer/backends/container/utils.py +213 -0
  43. viettelcloud/aiplatform/trainer/backends/kubernetes/__init__.py +0 -0
  44. viettelcloud/aiplatform/trainer/backends/kubernetes/backend.py +710 -0
  45. viettelcloud/aiplatform/trainer/backends/kubernetes/backend_test.py +1344 -0
  46. viettelcloud/aiplatform/trainer/backends/kubernetes/constants.py +15 -0
  47. viettelcloud/aiplatform/trainer/backends/kubernetes/utils.py +636 -0
  48. viettelcloud/aiplatform/trainer/backends/kubernetes/utils_test.py +582 -0
  49. viettelcloud/aiplatform/trainer/backends/localprocess/__init__.py +0 -0
  50. viettelcloud/aiplatform/trainer/backends/localprocess/backend.py +306 -0
  51. viettelcloud/aiplatform/trainer/backends/localprocess/backend_test.py +501 -0
  52. viettelcloud/aiplatform/trainer/backends/localprocess/constants.py +90 -0
  53. viettelcloud/aiplatform/trainer/backends/localprocess/job.py +184 -0
  54. viettelcloud/aiplatform/trainer/backends/localprocess/types.py +52 -0
  55. viettelcloud/aiplatform/trainer/backends/localprocess/utils.py +302 -0
  56. viettelcloud/aiplatform/trainer/constants/__init__.py +0 -0
  57. viettelcloud/aiplatform/trainer/constants/constants.py +179 -0
  58. viettelcloud/aiplatform/trainer/options/__init__.py +52 -0
  59. viettelcloud/aiplatform/trainer/options/common.py +55 -0
  60. viettelcloud/aiplatform/trainer/options/kubernetes.py +502 -0
  61. viettelcloud/aiplatform/trainer/options/kubernetes_test.py +259 -0
  62. viettelcloud/aiplatform/trainer/options/localprocess.py +20 -0
  63. viettelcloud/aiplatform/trainer/test/common.py +22 -0
  64. viettelcloud/aiplatform/trainer/types/__init__.py +0 -0
  65. viettelcloud/aiplatform/trainer/types/types.py +517 -0
  66. viettelcloud/aiplatform/trainer/types/types_test.py +115 -0
  67. viettelcloud_aiplatform-0.3.0.dist-info/METADATA +226 -0
  68. viettelcloud_aiplatform-0.3.0.dist-info/RECORD +71 -0
  69. viettelcloud_aiplatform-0.3.0.dist-info/WHEEL +4 -0
  70. viettelcloud_aiplatform-0.3.0.dist-info/licenses/LICENSE +201 -0
  71. viettelcloud_aiplatform-0.3.0.dist-info/licenses/NOTICE +36 -0
@@ -0,0 +1,226 @@
1
+ Metadata-Version: 2.4
2
+ Name: viettelcloud-aiplatform
3
+ Version: 0.3.0
4
+ Summary: Viettel Cloud AI Platform SDK for ML training, optimization, and model registry.
5
+ Project-URL: Homepage, https://github.com/viettelcloud/aiplatform-sdk
6
+ Project-URL: Documentation, https://docs.viettelcloud.vn/aiplatform
7
+ Project-URL: Source, https://github.com/viettelcloud/aiplatform-sdk
8
+ Author: Viettel AI Platform Team
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Keywords: ai,aiplatform,kubeflow,llm,model training,trainer,viettelcloud
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Education
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Topic :: Scientific/Engineering
23
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
+ Classifier: Topic :: Software Development
25
+ Classifier: Topic :: Software Development :: Libraries
26
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
+ Requires-Python: >=3.9
28
+ Requires-Dist: kubeflow-katib-api>=0.19.0
29
+ Requires-Dist: kubeflow-trainer-api>=2.0.0
30
+ Requires-Dist: kubernetes>=27.2.0
31
+ Requires-Dist: pydantic>=2.10.0
32
+ Provides-Extra: docker
33
+ Requires-Dist: docker>=6.1.3; extra == 'docker'
34
+ Provides-Extra: hub
35
+ Requires-Dist: model-registry>=0.3.0; extra == 'hub'
36
+ Provides-Extra: podman
37
+ Requires-Dist: podman>=5.6.0; extra == 'podman'
38
+ Description-Content-Type: text/markdown
39
+
40
+ # Viettel Cloud AI Platform SDK
41
+
42
+ [![SDK Version](https://img.shields.io/badge/SDK-v0.3.0-blue)](https://github.com/viettelcloud/aiplatform-sdk/releases/tag/0.3.0)
43
+
44
+ > **Attribution:** This project is based on [Kubeflow SDK](https://github.com/kubeflow/sdk),
45
+ > Copyright 2024-2025 The Kubeflow Authors, licensed under Apache License 2.0.
46
+ > See [NOTICE](./NOTICE) for full attribution.
47
+
48
+ ## Overview
49
+
50
+ The Viettel Cloud AI Platform SDK is a set of unified Pythonic APIs that let you run any AI workload at any scale –
51
+ without the need to learn Kubernetes. It provides simple and consistent APIs across the AI Platform
52
+ ecosystem, enabling users to focus on building AI applications rather than managing complex
53
+ infrastructure.
54
+
55
+ ### SDK Benefits
56
+
57
+ - **Unified Experience**: Single SDK to interact with multiple AI platform components through consistent Python APIs
58
+ - **Simplified AI Workloads**: Abstract away Kubernetes complexity and work effortlessly using familiar Python APIs
59
+ - **Built for Scale**: Seamlessly scale any AI workload — from local laptop to large-scale production
60
+ cluster with thousands of GPUs using the same APIs.
61
+ - **Rapid Iteration**: Reduced friction between development and production environments
62
+ - **Local Development**: First-class support for local development without a Kubernetes cluster
63
+ requiring only `pip` installation
64
+
65
+ ## Get Started
66
+
67
+ ### Install SDK
68
+
69
+ ```bash
70
+ pip install -U viettelcloud-aiplatform
71
+ ```
72
+
73
+ ### Run your first PyTorch distributed job
74
+
75
+ ```python
76
+ from viettelcloud.aiplatform.trainer import TrainerClient, CustomTrainer, TrainJobTemplate
77
+
78
+ def get_torch_dist(learning_rate: str, num_epochs: str):
79
+ import os
80
+ import torch
81
+ import torch.distributed as dist
82
+
83
+ dist.init_process_group(backend="gloo")
84
+ print("PyTorch Distributed Environment")
85
+ print(f"WORLD_SIZE: {dist.get_world_size()}")
86
+ print(f"RANK: {dist.get_rank()}")
87
+ print(f"LOCAL_RANK: {os.environ['LOCAL_RANK']}")
88
+
89
+ lr = float(learning_rate)
90
+ epochs = int(num_epochs)
91
+ loss = 1.0 - (lr * 2) - (epochs * 0.01)
92
+
93
+ if dist.get_rank() == 0:
94
+ print(f"loss={loss}")
95
+
96
+ # Create the TrainJob template
97
+ template = TrainJobTemplate(
98
+ runtime="torch-distributed",
99
+ trainer=CustomTrainer(
100
+ func=get_torch_dist,
101
+ func_args={"learning_rate": "0.01", "num_epochs": "5"},
102
+ num_nodes=3,
103
+ resources_per_node={"cpu": 2},
104
+ ),
105
+ )
106
+
107
+ # Create the TrainJob
108
+ job_id = TrainerClient().train(**template)
109
+
110
+ # Wait for TrainJob to complete
111
+ TrainerClient().wait_for_job_status(job_id)
112
+
113
+ # Print TrainJob logs
114
+ print("\n".join(TrainerClient().get_job_logs(name=job_id)))
115
+ ```
116
+
117
+ ### Optimize hyperparameters for your training
118
+
119
+ ```python
120
+ from viettelcloud.aiplatform.optimizer import OptimizerClient, Search, TrialConfig
121
+
122
+ # Create OptimizationJob with the same template
123
+ optimization_id = OptimizerClient().optimize(
124
+ trial_template=template,
125
+ trial_config=TrialConfig(num_trials=10, parallel_trials=2),
126
+ search_space={
127
+ "learning_rate": Search.loguniform(0.001, 0.1),
128
+ "num_epochs": Search.choice([5, 10, 15]),
129
+ },
130
+ )
131
+
132
+ print(f"OptimizationJob created: {optimization_id}")
133
+ ```
134
+
135
+ ### Manage models with Model Registry
136
+
137
+ **Install Model Registry support:**
138
+ ```bash
139
+ pip install 'viettelcloud-aiplatform[hub]'
140
+ ```
141
+
142
+ ```python
143
+ from viettelcloud.aiplatform.hub import ModelRegistryClient
144
+
145
+ client = ModelRegistryClient("https://model-registry.example.com", author="Your Name")
146
+
147
+ # Register a model
148
+ model = client.register_model(
149
+ name="my-model",
150
+ uri="s3://bucket/path/to/model",
151
+ version="v1.0.0",
152
+ model_format_name="pytorch",
153
+ model_format_version="2.0",
154
+ version_description="My trained model"
155
+ )
156
+
157
+ # Get a registered model
158
+ model = client.get_model("my-model")
159
+
160
+ # List all models
161
+ for model in client.list_models():
162
+ print(f"Model: {model.name}")
163
+
164
+ # List model versions
165
+ for version in client.list_model_versions("my-model"):
166
+ print(f"Version: {version.name}")
167
+ ```
168
+
169
+ ## Architecture
170
+
171
+ ```
172
+ viettelcloud/
173
+ └── aiplatform/
174
+ ├── trainer/ → TrainerClient (distributed training with PyTorch, JAX, DeepSpeed)
175
+ ├── optimizer/ → OptimizerClient (hyperparameter tuning via Katib)
176
+ ├── hub/ → ModelRegistryClient (model artifact management)
177
+ └── common/ → Shared types, constants, utilities
178
+ ```
179
+
180
+ ## Local Development
181
+
182
+ The Trainer client supports local development without needing a Kubernetes cluster.
183
+
184
+ ### Backend Comparison
185
+
186
+ | Backend | Use Case | Requirements | Install |
187
+ |---------|----------|--------------|---------|
188
+ | **Kubernetes** (default) | Production training | K8s cluster + CRDs | `pip install viettelcloud-aiplatform` |
189
+ | **Container** | Isolated local dev | Docker or Podman | `pip install viettelcloud-aiplatform[docker]` |
190
+ | **LocalProcess** | Quick prototyping | Python only | `pip install viettelcloud-aiplatform` |
191
+
192
+ ### Quick Start with Container Backend
193
+
194
+ ```python
195
+ from viettelcloud.aiplatform.trainer import TrainerClient, ContainerBackendConfig, CustomTrainer
196
+
197
+ # Switch to local container execution
198
+ client = TrainerClient(backend_config=ContainerBackendConfig())
199
+
200
+ # Your training runs locally in isolated containers
201
+ job_id = client.train(trainer=CustomTrainer(func=train_fn))
202
+ ```
203
+
204
+ ## Supported Components
205
+
206
+ | Component | Status | Version Support | Description |
207
+ | --------------------- | ---------------- | --------------- | ------------------------------------------------ |
208
+ | **Trainer** | Available | v2.0.0+ | Train and fine-tune AI models with various frameworks |
209
+ | **Optimizer (Katib)** | Available | v0.19.0+ | Hyperparameter optimization |
210
+ | **Model Registry** | Available | v0.3.0+ | Manage model artifacts, versions and ML artifacts metadata |
211
+
212
+ ## Documentation
213
+
214
+ ### SDK Documentation
215
+
216
+ - **[Project Overview](./docs/project-overview-pdr.md)**: Vision, scope, and key decisions
217
+ - **[System Architecture](./docs/system-architecture.md)**: Backend design and component interactions
218
+ - **[Codebase Summary](./docs/codebase-summary.md)**: Module structure and key classes
219
+ - **[Code Standards](./docs/code-standards.md)**: Development guidelines
220
+ - **[Project Roadmap](./docs/project-roadmap.md)**: Future plans and version compatibility
221
+
222
+ ## License
223
+
224
+ This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
225
+
226
+ This project includes code from the Kubeflow SDK project. See [NOTICE](NOTICE) for attribution.
@@ -0,0 +1,71 @@
1
+ viettelcloud/__init__.py,sha256=wVzWRwBqpOnEgSpqHLJ3vW2Vh3eUkWypPjzkvmiLIFs,37
2
+ viettelcloud/aiplatform/__init__.py,sha256=vZ_lbzUluXveUllfH0Tn8ybsArm2dBEFWz835oQIpkA,608
3
+ viettelcloud/aiplatform/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ viettelcloud/aiplatform/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ viettelcloud/aiplatform/common/constants.py,sha256=8__MOzt9_ha-05xqnAsPufVZW1qtxLRcAqPR5CesMTk,825
6
+ viettelcloud/aiplatform/common/types.py,sha256=esVdmQ2rsbnjTbitgRWBF8PLptY_LvessTvnYP8iOPE,950
7
+ viettelcloud/aiplatform/common/utils.py,sha256=OtsJW5RMByH6sgvAZnE5-jfaogG_TcHdk0KPWD3Il54,1571
8
+ viettelcloud/aiplatform/hub/OWNERS,sha256=2Nvm0zlyhmOfRgskbcoTTjhM-gUDDQvaFTnh0SqGeOo,182
9
+ viettelcloud/aiplatform/hub/__init__.py,sha256=yopwXQJuKxc-sPnOcS5ZDMQe6hJhi5wrDV3lW5lGtzw,884
10
+ viettelcloud/aiplatform/hub/api/__init__.py,sha256=413a-dLty39xP01oXB3Z1yHU_3pO3WopAmK2csx_0Vk,585
11
+ viettelcloud/aiplatform/hub/api/_proxy_client.py,sha256=Ng6G1QufH4nGUwsy2ENx77nA7a85hRTVG3kuenk-Or8,11795
12
+ viettelcloud/aiplatform/hub/api/model_registry_client.py,sha256=fx0dWH6kPHkT7UrpsJF2QLZ7C9OSxm23KUGTjJIRUwg,21132
13
+ viettelcloud/aiplatform/hub/api/model_registry_client_test.py,sha256=WqoYmamDsxgUpxliOsuxNdAiAOUvzzrmuzQiB9E0YDA,14776
14
+ viettelcloud/aiplatform/optimizer/__init__.py,sha256=R22iODGw7mLcslQJmFcdmq8IyJn6L0A8qyU34WjjQxo,1480
15
+ viettelcloud/aiplatform/optimizer/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ viettelcloud/aiplatform/optimizer/api/optimizer_client.py,sha256=1GFOVnAr6UmRc9_CSvJ-Q4ly3i5uV6sm0W6bqUZ-YF4,8951
17
+ viettelcloud/aiplatform/optimizer/backends/__init__.py,sha256=413a-dLty39xP01oXB3Z1yHU_3pO3WopAmK2csx_0Vk,585
18
+ viettelcloud/aiplatform/optimizer/backends/base.py,sha256=RbJ8g6in-dGCDhZMC55PPbIm9NiVJP8sIGVsBTJkXUc,2424
19
+ viettelcloud/aiplatform/optimizer/backends/kubernetes/__init__.py,sha256=413a-dLty39xP01oXB3Z1yHU_3pO3WopAmK2csx_0Vk,585
20
+ viettelcloud/aiplatform/optimizer/backends/kubernetes/backend.py,sha256=RqVNDUOSHomLcGma0Bw7SP_-r8y0YJoxFvtNaAVC_ig,22590
21
+ viettelcloud/aiplatform/optimizer/backends/kubernetes/utils.py,sha256=3_EvCO68sLBPSmjX_tWoaMplSEE4jiOsOEI-4LE7x40,3930
22
+ viettelcloud/aiplatform/optimizer/constants/__init__.py,sha256=413a-dLty39xP01oXB3Z1yHU_3pO3WopAmK2csx_0Vk,585
23
+ viettelcloud/aiplatform/optimizer/constants/constants.py,sha256=Kdt-3XMyZl3_2gcKXWr3JktWbJ_xdj-65QlkPsNt2Uk,1922
24
+ viettelcloud/aiplatform/optimizer/types/__init__.py,sha256=413a-dLty39xP01oXB3Z1yHU_3pO3WopAmK2csx_0Vk,585
25
+ viettelcloud/aiplatform/optimizer/types/algorithm_types.py,sha256=UbN8-eRu3sQfjrwDTwpkxJ3lFV0Fl9Ozd4SHijawMy4,2296
26
+ viettelcloud/aiplatform/optimizer/types/optimization_types.py,sha256=K4Yr2XA2CkuoI7Hw2GyqT5ae3ZzMkTD8c6dBU16T5XU,4313
27
+ viettelcloud/aiplatform/optimizer/types/search_types.py,sha256=jalcG_AYS_g9VnQ5iqk9hbxErKL8O1AAW0oSPS9c-2M,2987
28
+ viettelcloud/aiplatform/trainer/__init__.py,sha256=BT5h-rLmlbFIV9vwWxdaIfUU4gtFWFNkQim8uze9N0I,2327
29
+ viettelcloud/aiplatform/trainer/api/__init__.py,sha256=vgVZsw5O-HfmM-H8h5GyHauQWrZHc1qtsWtmeohyIHg,45
30
+ viettelcloud/aiplatform/trainer/api/trainer_client.py,sha256=yP9GI3BYeq0bKmkKN909IMcnk9cyogeQzJSWcswrKvo,10180
31
+ viettelcloud/aiplatform/trainer/api/trainer_client_test.py,sha256=7--yd_iFd3kH0r8yFG6nWQYX-6YV4VtF2xuDVIG5-80,2616
32
+ viettelcloud/aiplatform/trainer/backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
+ viettelcloud/aiplatform/trainer/backends/base.py,sha256=g_8aUcqUxqtxYq0zP5ZJUQx6NLUM7k5_3lza-AMiuwQ,2910
34
+ viettelcloud/aiplatform/trainer/backends/container/backend.py,sha256=KXGuq-l0iUL3giVwjdKEUOfwW7BqWIRl32-d_Ca-Bdw,27041
35
+ viettelcloud/aiplatform/trainer/backends/container/backend_test.py,sha256=UoZp64aoa8A9okr2ykzvudHOMldcrBXOF-TFT9RsjhY,30683
36
+ viettelcloud/aiplatform/trainer/backends/container/runtime_loader.py,sha256=T804YfBtcetfnPCoWG4Wnz33mD118rLpzyuJsVTXl6c,21201
37
+ viettelcloud/aiplatform/trainer/backends/container/runtime_loader_test.py,sha256=Ug_oXyOiT3klYTI1_gbiWOqs7LgCkCyaK4zSxFGhZec,23528
38
+ viettelcloud/aiplatform/trainer/backends/container/types.py,sha256=flUODU_FGlRNWEmhnBb-V4RtMXexYKS-xSZ0bKiBseE,2948
39
+ viettelcloud/aiplatform/trainer/backends/container/utils.py,sha256=Msdbi2TF0HvCKrAWNOXJCB4IxXz7_rIsCRuJK-RxHG4,6601
40
+ viettelcloud/aiplatform/trainer/backends/container/adapters/base.py,sha256=euLmT-boR_L0d0wNW6_6ViicdlDZu5AHyBrtBRsMlrY,5661
41
+ viettelcloud/aiplatform/trainer/backends/container/adapters/docker.py,sha256=pMBvINb0avMprh7wJ0Yl95p5JRYa-PI3sOtDc1Rc5ug,7833
42
+ viettelcloud/aiplatform/trainer/backends/container/adapters/podman.py,sha256=KEQ8EPL0Buj16TO7ejj3-davglH-vknFuzynItyteTY,9154
43
+ viettelcloud/aiplatform/trainer/backends/kubernetes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
+ viettelcloud/aiplatform/trainer/backends/kubernetes/backend.py,sha256=ZmXVKmH_xVxx6Q6l7zBCxoF9gTaSv9mDplkOhLrDm54,27760
45
+ viettelcloud/aiplatform/trainer/backends/kubernetes/backend_test.py,sha256=C5Y0LIRrMcnqHiNfy5AaQ98M4MAWUvOCdYL9mkp8_xI,47482
46
+ viettelcloud/aiplatform/trainer/backends/kubernetes/constants.py,sha256=Q6Hg_xE7cVPkQJITGAfw3NracZIJbpc8Xz0gpOzTbS4,631
47
+ viettelcloud/aiplatform/trainer/backends/kubernetes/utils.py,sha256=POyiWbQ1XUU5roodcEzNcFXIq28vCVmD9mKavRq2RoU,22832
48
+ viettelcloud/aiplatform/trainer/backends/kubernetes/utils_test.py,sha256=t-oHCdQZ19OfMWmAzC7l7xDuSwp212q8bso_X9ApyHQ,22339
49
+ viettelcloud/aiplatform/trainer/backends/localprocess/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
+ viettelcloud/aiplatform/trainer/backends/localprocess/backend.py,sha256=hGCqnvOYEw3eVOw-Nz23JWyeF3ZYnHdNtkuxxWRNLgY,10805
51
+ viettelcloud/aiplatform/trainer/backends/localprocess/backend_test.py,sha256=LR0sWiCdLTlz5j2rokV13miyUqXqI9xZINuve7Jw4D8,16247
52
+ viettelcloud/aiplatform/trainer/backends/localprocess/constants.py,sha256=1WAJsjow0OwqGxSP1pli4UXGPnTPqmBcjQ5bpnLSOJs,2591
53
+ viettelcloud/aiplatform/trainer/backends/localprocess/job.py,sha256=2qggFefrQUNxRRKSaNI4GerZxjfDcqXrxLeywlEyk8U,6008
54
+ viettelcloud/aiplatform/trainer/backends/localprocess/types.py,sha256=GrJcD6Hu72TWSU7FZRFsuQvcljHb_6e04I42TVHl0WA,1488
55
+ viettelcloud/aiplatform/trainer/backends/localprocess/utils.py,sha256=kw9dGBsh1io64f2jTDFRIzhdSVfx6h6thyQuzjqOYNo,10453
56
+ viettelcloud/aiplatform/trainer/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
+ viettelcloud/aiplatform/trainer/constants/constants.py,sha256=2skrTyoy_-IvcZT7ADtRsV5iJU7WUk9RXbgdB8QIpCE,6517
58
+ viettelcloud/aiplatform/trainer/options/__init__.py,sha256=FGGjff47zEVgGAGAEW5AVR9QnOlMdQ23vspJfGFs4gQ,1559
59
+ viettelcloud/aiplatform/trainer/options/common.py,sha256=ofDJimB-alsThVOpICqYqkDXTN_ZSSHq0bCdllIY0MM,1778
60
+ viettelcloud/aiplatform/trainer/options/kubernetes.py,sha256=Hk7O8kQG86xehLPbr7GBKVjJwYc5obmYXswrDwG9yrE,18909
61
+ viettelcloud/aiplatform/trainer/options/kubernetes_test.py,sha256=SAS9JW7nWa_TyWqdRyDPnapfF8PKScT1aZsygE4zo6U,9352
62
+ viettelcloud/aiplatform/trainer/options/localprocess.py,sha256=zYg316VWVaG2WIU8zvxm9-3FPFSS09Zqev1DUiLAaco,836
63
+ viettelcloud/aiplatform/trainer/test/common.py,sha256=ueEzDko6yris-U0DVfYwjsqUQko9ELpM0EKJCKseaJE,585
64
+ viettelcloud/aiplatform/trainer/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
+ viettelcloud/aiplatform/trainer/types/types.py,sha256=OnXzAyOOtYjb0-SQrZnkZrTNto8nZVkYhbLCBddd0WY,19873
66
+ viettelcloud/aiplatform/trainer/types/types_test.py,sha256=cwA4ipBm7d0k-ihOAtnDtVXguAvoDIrFicgOEn-J4hg,4182
67
+ viettelcloud_aiplatform-0.3.0.dist-info/METADATA,sha256=CscKLftliLvKb5CQYw5cmqSSZg3zPX2zrtlKsFxOuBA,8252
68
+ viettelcloud_aiplatform-0.3.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
69
+ viettelcloud_aiplatform-0.3.0.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
70
+ viettelcloud_aiplatform-0.3.0.dist-info/licenses/NOTICE,sha256=wZF1os1CoCvYSX0PlYD73DkGPg9JjVWHan7Bxp51dPE,1415
71
+ viettelcloud_aiplatform-0.3.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright {yyyy} {name of copyright owner}
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,36 @@
1
+ Viettel Cloud AI Platform SDK
2
+ Copyright 2026 Viettel AI Platform Team
3
+
4
+ This product includes software developed at
5
+ Kubeflow (https://github.com/kubeflow/sdk).
6
+
7
+ =========================================================================
8
+
9
+ Kubeflow SDK
10
+ Copyright 2024-2025 The Kubeflow Authors
11
+
12
+ Licensed under the Apache License, Version 2.0 (the "License");
13
+ you may not use this file except in compliance with the License.
14
+ You may obtain a copy of the License at
15
+
16
+ http://www.apache.org/licenses/LICENSE-2.0
17
+
18
+ Unless required by applicable law or agreed to in writing, software
19
+ distributed under the License is distributed on an "AS IS" BASIS,
20
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ See the License for the specific language governing permissions and
22
+ limitations under the License.
23
+
24
+ =========================================================================
25
+
26
+ This project is based on Kubeflow SDK (https://github.com/kubeflow/sdk)
27
+ and includes modifications by Viettel AI Platform Team.
28
+
29
+ The original Kubeflow SDK provides unified Pythonic APIs for running
30
+ AI workloads at scale on Kubernetes, including:
31
+ - TrainerClient for distributed model training
32
+ - OptimizerClient for hyperparameter optimization via Katib
33
+ - ModelRegistryClient for model artifact management
34
+
35
+ We gratefully acknowledge the contributions of the Kubeflow community
36
+ and maintainers to the open-source ML ecosystem.