Attach an EAIS instance

Updated at:
Copy as MD

Elastic Accelerated Computing Instances (EAIS) are accelerators that you must attach to Elastic Compute Service (ECS) instances to use them. This topic describes how to attach an EAIS instance to an ECS instance.

Prerequisites

  • The EAIS instance is in the Attachable state.

  • The target ECS instance is not attached to an EAIS instance.

Limits

  • An EAIS instance can be attached to only one ECS instance.

    Note

    After an EAIS instance is attached to an ECS instance, you can change only the resource configurations of the ECS instance. For more information, see Change the instance type of a pay-as-you-go instance and Change the bandwidth of a pay-as-you-go instance.

  • The number of EAIS instances that can be attached to an ECS instance depends on the model that you use:

    • TensorFlow model: An ECS instance can be attached to only one EAIS instance.

    • PyTorch model: An ECS instance can be attached to one or more EAIS instances. You can attach a maximum of 256 EAIS instances.

      Note

      For information about how to attach multiple EAIS instances to an ECS instance, see Attach multiple EAIS instances.

Procedure

  1. Log on to the EAIS console.

  2. In the upper-left corner of the EAIS (Elastic Accelerated Computing Instances) page, select the region where the instance was created.

  3. In the instance list, find the target EAIS instance and click Attach in the Actions column.

  4. In the dialog box that appears, select the target ECS instance.

  5. Click OK.

    The EAIS instance list auto-refreshes every 15 seconds. The instance is successfully attached when its status changes from Attaching to Attached.

What to do next

After you attach an EAIS instance to an ECS instance, the next steps depend on how the EAIS instance was created.

Created in the EAIS console or by calling CreateEaisEi

If you created an EAIS instance in the EAIS console or by calling CreateEaisEi, you must start the EAIS instance after you attach it to an ECS instance. After the instance is started, you can use it on the ECS instance for AI inference or training. For more information, see Start an EAIS instance and Use an instance.

Created by calling CreateEai

If you created an EAIS instance by calling CreateEai - Create an EAIS instance, you can log on to the attached ECS instance and use the EAIS instance for AI inference or training. For more information, see Use an instance.

References