Loading...
Loading...
Manage Huawei Cloud ModelArts training jobs and related resources through full lifecycle operations via hcloud CLI. Covers 52 API interfaces across 8 functional domains: training job management, algorithm management, training job tags, training experiments, training job events, model import, auto search (hyperparameter tuning), and training image save. All write operations require user confirmation before execution. Triggers include: "ModelArts training", "训练作业", "模型训练", "创建训练作业", "查询训练作业", "停止训练作业", "删除训练作业", "算法管理", "超参配置", "training job", "training management", "create training", "ModelArts 训练", "训练实验", "自动搜索", "超参调优".
npx skill4agent add huaweicloud/huaweicloud-skills huawei-cloud-modelarts-training-managementFull lifecycle management for ModelArts training jobs and related resources via hcloud CLI — 52 API interfaces across 8 functional domains.
hcloudUser Request → Agent → hcloud ModelArts <Operation> --cli-region={region} [--params] → Huawei Cloud ModelArts API| User Intent | Operation Category |
|---|---|
| Create/list/show/stop/delete training jobs | Training Job Management |
| Create/list/show/update/delete algorithms | Algorithm Management |
| Create/show/delete training job tags | Training Job Tags |
| Create/list/show/update/delete experiments | Training Experiments |
| Query job events, stages, tasks | Training Job Events |
| Import/list/show/delete models | Model Import |
| Query auto search trials, params analysis | Auto Search |
| Save training job image | Training Image Save |
hcloud ModelArts <Operation> --cli-region={region} [--key=value ...]must be replaced with the actual region, e.g.,{region}. Do NOT hardcode the region.cn-north-4
hcloud ModelArts <Operation> --cli-region={region} [--key=value ...]| Feature | Description | Example |
|---|---|---|
| Service name | Fixed: | |
| Operation name | PascalCase | |
| Region parameter | | |
| Simple parameter | | |
| Indexed parameter | | |
| project_id | Auto-resolved if omitted | Uses configured project ID |
Note:is auto-resolved from authentication credentials if omitted. Include it explicitly only when targeting a specific project.--project_id
Complex parameters: For complex nested parameters (e.g.,,config), usespec. The JSON file must wrap body in--cli-jsonInput=/path/to/file.jsonenvelope.{"body": {...}}
📖 For detailed command syntax, parameters, and examples, read references/cli-command-examples.md
| # | Domain | APIs | Key Operations |
|---|---|---|---|
| 1 | Training Job Management | 14 | CreateTrainingJob, ListTrainingJobs, ShowTrainingJobDetails, StopTrainingJob, DeleteTrainingJob, ShowTrainingJobLogs/Metrics/Engines/Flavors/Quotas |
| 2 | Algorithm Management | 7 | CreateAlgorithm, ListAlgorithms, ShowAlgorithmByUuid, ChangeAlgorithm, DeleteAlgorithm, ShowSearchAlgorithms, CreateAlgorithmVersionToGallery |
| 3 | Training Job Tags | 3 | CreateTrainJobTags, ShowTrainJobTags, DeleteTrainJobTags |
| 4 | Training Experiments | 6 | CreateTrainingExperiment, List/Show/Delete/Change/Check experiments |
| 5 | Training Job Events | 7 | ListTrainingJobEvents/Stages/Tasks, ListEvents/Categories/ScheduledEvents, AcceptScheduledEvent |
| 6 | Model Import | 6 | CreateModel, ListModels, ShowModel, DeleteModel, ShowModelEngineAndRuntime, CreateModelArtsAgency |
| 7 | Auto Search | 7 | ShowAutoSearchTrials/PerTrial/ParamsAnalysis/YamlTemplates, ShowAutoSearchTrialEarlyStop |
| 8 | Training Image Save | 2 | CreateSaveImageJob, ShowSaveImageJob |
When executing any command, always refer to the reference file for exact parameter names, required/optional flags, and usage patterns.
| Parameter | Required | Description | Example |
|---|---|---|---|
| Yes | Huawei Cloud region | |
| Job ops | Training job UUID | |
| Algorithm ops | Algorithm UUID | |
| Experiment ops | Training experiment UUID | |
| Model ops | Model UUID | |
| SaveImage ops | Save image job UUID | |
| No (auto) | Project ID, auto-resolved if omitted | Omit for default |
| No | Workspace ID | Omit for default workspace |
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkmodelarts.v2.modelarts_client import ModelArtsClient
from huaweicloudsdkmodelarts.v2.region.modelarts_region import ModelArtsRegion
credentials = BasicCredentials(ak="{AK}", sk="{SK}", project_id="{project_id}")
client = ModelArtsClient.new_builder() \
.with_credentials(credentials) \
.with_region(ModelArtsRegion.value_of("{region}")) \
.build()| Document | Description |
|---|---|
| references/cli-command-examples.md | Detailed CLI command syntax and examples for all 52 APIs |
| references/iam-policies.md | Least-privilege IAM policies |
| references/verification-method.md | Verification and testing methods |
| references/dataflow-diagram.md | Mermaid data flow diagram |
| references/acceptance-criteria.md | Acceptance criteria checklist |
| references/api-paths.md | REST API paths from SDK source |
| references/cli-installation-guide.md | CLI installation and authentication guide |
| references/known-issues.md | Known issues and workarounds |
--cli-jsonInput--cli-jsonInput@{"body": {...}}ShowObsUrlOfTrainingJobLogscreatingwaitingrunningSee references/known-issues.md for full details.
{region}project_id--cli-jsonInput