Deploying the Cloudera AI Workbench model

Deploy a Cloudera AI Workbench model following the instructions.

  1. Select Deployed Experiences in the left navigation pane on the Anywhere Cloud Console.

    The list of deployed experiences is displayed.

  2. Search for the required Cloudera AI instance.

    Ensure that the status of the instance is Deployed.

  3. Click on the URL under the UI URL column.

    The authentication window for the Cloudera AI UI opens.

  4. Provide the required credentials and log in to the Cloudera AI UI.

    The Cloudera AI home page is displayed.

  5. Click Project in the left navigation pane.
  6. Go to the Project Overview page.
  7. Select New Model.
  8. Give the model a Name and a Description.
  9. In Deploy Model as, if the model is to be deployed in a service account, select Service Account and choose the account from the dropdown menu.
  10. Deploy a model by setting the following details.

    File: launch_model.py

    Function: api_wrapper

    Example input:
    {
      "prompt": "How are you?",
      "max_length": 64,
      "temperature": "0.7"
    }
    
    Figure 1. Deploy a model
  11. In ML Runtime: Use a GPU edition Runtime.
  12. In Resource Profile select at least 1 GPU. Use a CPU/MEM profile suitable for your LLM size. This is required to load the LLM into GPU VRAM.
  13. In the Environment Variables: Add HF_TOKEN if the model you are using has an access gate on Huggingface hub.
  14. Click Deploy Model.

After successfully deploying the Cloudera AI Workbench model, you can find examples of how to access it and run a test inference on the Project Overview tab.