Deploy a model to PAI-EAS

Updated at:

Introduction

After completing data backfilling and model training, deploy the model to PAI-EAS for online scoring.

Procedure

  1. In DataWorks, locate the deployment script.

  2. Click Unlock to modify the script.

  3. Comment out the last line of code (the model update command) and uncomment the second-to-last line (the PAI-EAS service creation command). Run the creation command for the initial deployment. For subsequent routine scheduling, run the model update command.

  4. Click the Run button, enter the runtime parameters, and click Run.

    Note: For the Image field, select the official image: dataworks_pairec_task_pod. (The image includes feature-store-python-sdk, pyfg, and eascmd64.)

    For more information about the parameters, see EasyRec Processor.

  5. After the model is deployed, go to the PAI-EAS console to view the model service.