更新时间:2024-06-06 GMT+08:00

使用ma-cli ma-job get-flavor命令查询ModelArts训练资源规格

执行ma-cli ma-job get-flavor命令查询ModelArts训练的资源规格。

$ ma-cli ma-job get-flavor -h
Usage: ma-cli ma-job get-flavor [OPTIONS]

  Get job flavor info.

  Example:

  # Get training job flavors
  ma-cli ma-job get-flavor

Options:
  -t, --flavor-type [CPU|GPU|Ascend]
                                  Type of training job flavor.
  -v, --verbose                   Show detailed information about training flavors.
  -C, --config-file TEXT          Configure file path for authorization.
  -D, --debug                     Debug Mode. Shows full stack trace when error occurs.
  -P, --profile TEXT              CLI connection profile to use. The default profile is "DEFAULT".
  -H, -h, --help                  Show this message and exit.
表1 参数说明

参数名

参数类型

是否必选

参数说明

-t / --flavor-type

String

资源规格类型,如果不指定默认返回所有的资源规格。

-v / --verbose

Bool

显示详细的信息开关,默认关闭。

示例

查看训练作业的资源规格及类型。

ma-cli ma-job get-flavor