Deploying a model to Cloudera AI Gateway and Inference using the UI
Deploy registered models to Cloudera AI Gateway and Inference using the user interface to serve real-time model deployment with autoscaling and GPU acceleration.
- Select Cloudera AI Gateway and Inference in the left navigation pane under DATA APPLICATIONS on the Anywhere Cloud Console.
-
Click on the name of the required instance.
The Cloudera AI Gateway and Inference home page is displayed.
-
Click Model deployments in the left navigation menu.
The Model deployments page is displayed.
- Click Deploy model.
-
Configure the Deployment details.
The Deployment details page displays the deployment running within the selected Cloudera AI Gateway and Inference instance.
- Enter a unique Name for the model deployment.
- Optional: Provide a short description of the Model deployment in the Description field. The description must be fewer than 256 characters.
- Click Next.
-
Specify the configuration on the Model builder page.
- In the Model drop-down list, select the registered model you want to deploy.
- Select the specific Version of the model.
- Select the Task the model is required for.
- Click Next.
-
Configure the Access and rate limit details.
- For the Rate limit field, select Per second or Per minute to define the unit of measurement for the rate limit.
- In the Request limit field define the maximum number of requests.
- Click Next.
-
Configure the Resource Profile.
Configure the minimum resource requests for the Model deployment. In multi-replica Model deployments, the requested resources are allocated to each replica. For optimized models, do not modify the GPU allocation.
- In the GPU model field, select the GPU model type from the drop-down list.
- Provide the GPU requirements in the GPU field.
- Specify the required CPU in vCPU and Memory in GiB.
- In the Autoscale Range section, specify the Minimum and Maximum number of replicas for the Model deployment. Based on the selected autoscaling parameter, the system scales the number of replicas to handle the incoming load.
-
Select one of the following Autoscale Metric Types in
Other Settings:
- Select Request Per Second (RPS) to scale based on the number of requests per second per replica.
- Select Concurrency to scales based on the number of concurrent requests per replica.
If you select to scale as per Request Per Second (RPS) and the Target Metric Value is set to200, the system automatically adds a new replica when a single replica is handling 200 or more requests per second. If the RPS falls below 200, the system scales down the Model deployment by terminating a replica. - In the Target Metric Value field enter the threshold that triggers a scaling event.
- Click Next.
-
Configure the Advanced configuration section.
Configure environment variables in case of NIM models, vLLM arguments if Hugging Face model or a vLLM model is used, logging, and other advanced settings for the Model deployment.
- If you are using a Hugging Face model, in the vLLM arguments field, enter arguments for Hugging Face models. If you are using NIM models, in the Environment variables field, enter the variables.
-
Enable I/O logging if required.
I/O logging captures and stores model transaction payloads consisting of incoming request inputs and outgoing model responses.
- Enable Cache model weights on a persistent volume if required.
- In the Tags section, provide the Key and Value pair.
- Click Next.
-
Review and Create the Model
Deployment.
- Verify all selected details, including the environment, model version, resource allocation, and scaling range.
-
Click Deploy to begin the deployment.
It can take tens of minutes for the model deployment to become ready. The deployment time depends on the following factors:
- The time required to pull the necessary container images.
- The time required to download model artifacts to the cluster nodes from Cloudera AI Registry.
The model deployment is for the instruct variant of Llama 3.1 8B, which is
optimized to run on two NVIDIA A10G GPUs per replica. Because the AWS cluster node group
consists of g5.12xlarge instances For NVIDIA NIM models that specify GPU models and
count, the UI automatically populates the GPU field on the resource
configuration page.
