Updated on 2024-10-29 GMT+08:00

Using TMS Tags to Manage Resources by Group

ModelArts can work with Tag Management Service (TMS). When creating resource-consuming tasks in ModelArts, for example, training jobs, configure tags for these tasks so that ModelArts can use tags to manage resources by group.

ModelArts allows you to configure tags when you create training jobs, notebook instances, or real-time inference services.

Step 1 Create Predefined Tags on TMS

Log in to the TMS console and create tags on the Predefined Tags page. The created tags are global and can be used in all Huawei Cloud regions.

Step 2 Add a Tag to a ModelArts Task

When creating a notebook instance, training job, or real-time inference services in ModelArts, configure a tag for the task.

  • Add a tag to a ModelArts notebook instance.

    Add a tag when you create a notebook instance. Alternatively, after creating a notebook instance, add a tag on the Tags tab on the instance details page.

  • Add a tag to a ModelArts training job.

    Add a tag when you create a training job. Alternatively, after creating a training job, add a tag on the Tags tab on the job details page.

  • Add a tag to a ModelArts real-time service.

    Add a tag when you create a real-time service. Alternatively, after creating a real-time service, add a tag on the Tags tab on the service details page.

Figure 1 Adding a Label

When adding a tag to a ModelArts task, you can create new tags by specifying the keys and values of the new tags. The created tags are available for only the current project.

Step 3 Obtain ModelArts Resource Usage by Resource Type in TMS

Log in to the TMS console. On the Resources Tag page, view resource tasks in specified regions based on resource types and tags.

  • Region: For details about Huawei Cloud regions, see What Are Regions and AZs?
  • Resource Type: Table 1 lists the resource types that can be viewed on ModelArts.
  • Resource Tag: If no tag is specified, all resources are displayed, regardless of whether the resources are configured with tags. One or multiple tags can be selected to obtain resource usage.
Table 1 Resource types that can be viewed on ModelArts

Resource Type

Description

ModelArts-Notebook

Notebook instances in ModelArts DevEnviron

ModelArts-TrainingJob

ModelArts training jobs

ModelArts-RealtimeService

ModelArts real-time inference services

ModelArts-ResourcePool

ModelArts dedicated resource pools

If your organization has configured tag policies for ModelArts, add tags to resources based on the policies. If a tag does not comply with the tag policies, resource creation may fail. Contact your organization administrator to learn more about tag policies.