Download Model Version Image


After a model version is staged through AI Hub, the AI Studio administrator or AI Studio operation personnel can export the model version image for deploying the model on devices or in new environments.

Prerequisites


You have completed staging a model version through AI Hub and copied the image URL on the Model Version Details page. See the following example.


Procedure


Take the following steps to download the model version image with Docker commands.

  1. Open the list of notebook instances in AI Lab and select the Enter icon of the target notebook instance to open JupyterLab.

  2. In the Launcher page, open a Terminal.

  3. In the Terminal, enter the following command to pull the model version image file.

    sudo podman pull harbor-ppe1.eniot.io/eap-model/model/mmc-dw4pdv-o15960025444321/demo01:v210521-0145-e363
    
  4. After pulling the model version image file, use the docker images command to view the running result.

  5. Enter the following command to save the image file.

    sudo podman save harbor-ppe1.eniot.io/eap-model/model/mmc-dw4pdv-o15960025444321/demo01:v210521-0145-e363 >demo01:v210521-0145-e363.tar
    
  6. After saving the image file, use the ls command to view the local image file.

(Optional) Load Model Image into New Environment


  1. Enter the following command to load the image file into the repository of the new environment.

    docker load < demo01:v210521-0145-e363.tar
    

    Or

    sudo podman load < demo01:v210521-0145-e363.tar
    
  2. Use the docker images command to view the loaded image in the new environment.