All Products
Search
Document Center

Platform For AI:Use accelerated image in PAI

Last Updated:Jan 08, 2024

Data Accelerator for Disaggregated Infrastructure (DADI) is an image acceleration capability provided by Alibaba Cloud Container Registry. Compared with the traditional layered tar file format, the OverlayBD image format implements network-based on-demand reading so containers can start quickly. Platform for AI (PAI) integrates with DADI. You can use DADI images in Data Science Workshop (DSW) or Deep Learning Containers (DLC) to accelerate model training. This topic describes how to use DADI images in DSW and DLC.

Prerequisites

Enable image acceleration

You can enable image acceleration for a repository. This way, each image that is pushed to the repository is automatically converted to an accelerated image. The time required to convert a pushed image to an accelerated image depends on the size of the pushed image. The conversion does not affect the original image.

Note

The accelerated image resides in the same namespace and repository as the original image. The tag of the accelerated image is the tag of the original image suffixed with _accelerated.

  1. Log on to the Container Registry console.

  2. In the top navigation bar, select a region.

  3. In the left-side navigation pane, click Instances.

  4. On the Instances page, click the Enterprise Edition instance that you want to manage.

  5. In the left-side navigation pane of the management page of the Container Registry Enterprise Edition instance, choose Repository > Repositories.

  6. On the Repositories page, find the repository for which you want to enable image acceleration. Click the name of the repository or click Manage in the Actions column.

  7. On the page that appears, click Edit in the upper-left corner.

  8. In the Modify Settings dialog box, select Enable for the Accelerated Image parameter and click Confirm.

    After you enable image acceleration for the repository, each image that the system pushes to the repository is automatically converted to an accelerated image. If you want to be notified every time an image is converted to an accelerated image, you can specify an expression-based trigger for the repository. For example, you can specify _accelerated$ as the expression. For more information, see Manage triggers.

Use accelerated images in DLC or DSW

After the image is converted to an accelerated image, the namespace and repository name of the accelerated image are the same as those of the original image. The tag is the original image tag suffixed with _accelerated. You can use the accelerated image as a custom image in DLC or DSW.

Use an accelerated image to create a DLC job

Create a DLC job in the workspace. The following section describes key parameters. For more information about other parameters, see Create a training job.

  • Node Image: Select Image Address and configure the accelerated image address in the input box. The accelerated image address is the original image URL suffixed with _accelerated.

  • VPC: If you select Public Resource Group, you need to configure Virtual Private Cloud (VPC). Select the VPC network that is referenced in the Container Registry Enterprise Edition instance.

Use an accelerated image to create a DSW instance

Create a DSW instance in the workspace. The following section describes key parameters. For more information about other parameters, see Create and manage DSW instances.

  • Select Image: Click Image URL and configure the accelerated image address. The accelerated image address is the original image URL suffixed with _accelerated.

  • Networking: If you set Resource Quota to Public Resource Group, you need to configure the network. Select the VPC network that is referenced in the Container Registry Enterprise Edition instance.

References

For more information about DLC or DSW, see: