Updated on 2024-12-31 GMT+08:00

(Optional) Configuring Image Pre-provisioning

Lite Cluster resource pools enable image pre-provisioning, which pulls images from nodes in the pools beforehand, accelerating image pulling during inference and large-scale distributed training.

Procedure

  1. In the navigation pane of the ModelArts console, choose Resource Management > AI Dedicated Resource Pools > Elastic Clusters. In the ModelArts Lite tab, click the target resource pool to access its details page.
  2. Click Configuration Management on the left.

    Figure 1 Configuration Management

  3. In Pre-provision Image, click and configure parameters.

    Table 1 Parameters

    Parameter

    Description

    Image Source

    Select Preset or Custom.

    • Preset: Select an image on SWR or a shared image.
    • Custom: Enter an image path.

    Image Key

    To pre-provision an image that you do not have permissions on, you will need to add an image key. Once enabled, select the namespace and key. For details about how to create a key, see Creating a Secret. The key type must be kubernetes.io/dockerconfigjson.

    To add multiple keys, click +.

    Add

    To add multiple images, click this button.

    Figure 2 Pre-provisioning a preset image

    Figure 3 Selecting a preset image
    Figure 4 Pre-provisioning a custom image

    To create a key, refer to the tenant's SWR login command for the repository address, username, and password.

    Figure 5 Login Command

    The preceding figure shows a temporary login command. To obtain a long-term valid login command, click Learn how to obtain a long-term login command.

  4. Click OK. Then, you can see the information about the image that is pre-provisioned.

    If pre-provisioning an image failed, check whether the image path and key are correct.