Quick Start

This document aims to help new users quickly understand how to deploy inference services in Alauda AI. By deploying a simple "text generation" inference service and experiencing it, you can quickly grasp the main features and usage methods of the platform.

Estimated Reading Time

It is estimated that completing the reading and operations in this document will take approximately 20 minutes.

Notes

This document only demonstrates the basic process. For detailed parameter configurations, please refer to the complete documentation.

Prerequisites

  • You already have a platform administrator account (used to create and manage namespaces).
  • You have prepared the model file to be deployed (you can download it in advance from websites such as Hugging Face or ModelScope).
  • If you need to use GPU inference, please ensure that the GPU plugin is installed. If not, please install the GPU plugin in the platform management plugin center.
  • You understand the basic concepts of Kubernetes and machine learning models.

Step Overview

StepOperationDescriptionNotes
1Create NamespaceCreate a namespace in Alauda AI or the container platformSkip this step if you already have a namespace
2Manage Namespace and Add UserInclude the namespace in Alauda AI management and add users to the namespaceSkip this step if the namespace is already managed and user permissions are configured
3Prepare and Register ModelStore the model in S3, PVC, or OCI storage and register its Model URI, or use a platform-shared Model Catalog entrySkip this step if you already have a registered model or are using a catalog model
4Publish Inference ServicePublish the model as an online inference service
5Invoke Inference ServiceInvoke the inference service via API or the "Experience" feature

Operation Steps

Step 1: Create Namespace

Note:Skip this step if you already have a namespace

Namespaces are the foundation for multi-tenant isolation in Alauda AI, and each project should use an independent namespace. You can create a namespace directly in Alauda AI or import an existing namespace from the container platform.

  1. Enter Alauda AI and switch to Admin View from the top navigation.
  2. Click Namespaces in the left navigation bar.
  3. Click Create Namespace and enter a name, such as "text-classification-demo".
  4. Click Create to complete the namespace creation.

If the namespace already exists in the container platform, click Import Namespace on the Namespaces page and select the namespace to import it into Alauda AI.

Step 2: Manage Namespace and Add User

Note:Skip this step if the namespace is already managed and user permissions are configured

Include the created namespace in Alauda AI management and add users to the namespace:

  1. Enter Alauda AI and switch to Admin View from the top navigation.
  2. Click Namespaces in the left navigation bar.
  3. If the namespace is not managed by Alauda AI, click Import Namespace, select the newly created "text-classification-demo" namespace, and complete the import.
  4. Open the namespace edit page and click Member Management.
  5. Import the user who needs to use this namespace and assign the user one of the following roles:
    • Owner: Can manage the namespace and import other members as editors or viewers. An owner cannot import another owner.
    • Editor: Can use the namespace to create and manage AI resources.
    • Viewer: Can view resources in the namespace.

Step 3: Prepare and Register Model

Note:Skip this step if you already have a registered model or are using a platform-shared Model Catalog entry

Store the text classification model in a supported backend and register it:

  1. Enter Alauda AI, select User View in the top navigation, and select the managed namespace from the previous step.
  2. Store the model in S3, an attached PVC, or an OCI registry. Record its Model URI, for example s3://models/Meta-Llama-3-8B-Instruct.
  3. Open AI Hub > Model Registry, select Register Model, choose a Model Registry, enter the model name and version, and provide the Model URI.
  4. Set the model task and framework in the registry metadata when needed. Most popular open-source LLMs use the transformers framework and the text-generation task.
  5. If the model is already available in AI Hub > Model Catalog, open its catalog details instead and use Create Inference API or Register Model.

For Workbench upload instructions, see Upload Models Using a Workbench. For registration, see Model Registry.

Step 4: Publish Inference Service

Publish the model as an online inference service:

  1. On the model details page, click Create Inference API. For a Model Registry model, select the active Version; for a catalog model, the catalog artifact is selected automatically.
  2. Configure service parameters:
    • Name: meta-llama-3-8b-service
    • Model Source: Model Catalog or Model Registry
    • Model: Meta-Llama-3-8B-Instruct
    • Version: Version 1 (when using Model Registry)
    • Inference Runtimes: Needs to be selected based on the cuda version installed in the GPU node. For example,if cuda12.6 or later is installed, select "vllm-cuda12.6-x86".
    • Resource Requests: 2CPU/20Gi Memory
    • Resource Limits: 2CPU/20Gi Memory
    • GPU Acceleration: HAMi NVIDIA
      • gpu number: 1
      • vgpu cores: 50
      • GPU vmemory: 23552
    • Storage: Use the artifact's configured storage or mount an existing PVC
    • Auto Scaling: Off
    • Number of instances: 1
  3. Click Publish and wait for the service to start.
  4. View the service status on the Inference Services page.

Step 5: Invoke Inference Service

Test the published inference service:

  1. Click Inference Services in the left navigation bar, click the name of the "Published Inference Service", and click Experience on the inference service details page.
  2. Enter the test text, such as "Recommend a few good books".
  3. View the generated text and generation parameters returned by the model.