Volcengine Kubernetes EngineCloud-native AIServingKitDeploying the Al inference application through HelmQwen practicesQuickly deploying Qwen3-32B-FP8 with SGLang
Copy page
Download PDF
Qwen practices
Quickly deploying Qwen3-32B-FP8 with SGLang
Copy page
Download PDF
Quickly deploying Qwen3-32B-FP8 with SGLang
The following content introduces how to quickly deploy a Qwen3-32B-FP8 LLM based on SGLang using Volcengine Kubernetes Engine (VKE).
Solution introduction
This solution provides a quick method of deploying Qwen3-32B-FP8 LLM in a Kubernetes cluster that integrates a series of acceleration technologies that come with the Volcano Engine:
Qwen3: the latest Qwen model launched by Alibaba Cloud, which includes 2 Mixture of Experts (MoE) models and 6 Dense models, with a parameter count ranging from 0.6B to 235B to meet diverse needs.
Advantages of the solution:
Cache pooling: build a distributed cache pool by gathering the idle memory and disk of GPU clusters, overcoming the limitation of single-machine memory size.
Monitoring: Volcengine Managed Service for Prometheus (VMP) and Application Performance Management Plus (APMPlus)
Access: API Gateway (APIG)
Notes
To ensure successful deployment, which involves multiple interdependent add-ons and various configurations, you need to precisely follow the instructions in this document.
The recommended instance specification described in the Deployment information section does not include Remote Direct Memory Access (RDMA) network interface card (NIC), which indicates that GDKV is not supported. Do not edit the value.yaml file of the application template to enable GDKV.
To avoid violation of the Volcengine Kubernetes Engine limit, we recommend that you proceed based on this solution (or on the resources mentioned in the documents). If you need to change your solution, you can consult the Account Manager of the Volcano Engine.
Do not use mGPU on GPU resources.
A full deployment depends on some beta capabilities of the Volcano Engine. Contact the Account Manager of the Volcano Engine to apply for the beta trial of the following features:
Beta feature/resource
Product involved
Description
Beta feature/resource
Product involved
Description
ecs.pni3l instance family of the GPU Accelerated type
The GPU Accelerated instances, which provide computing power. The model has a large number of parameters and therefore requires a GPU instance with large memory, e.g., ecs.pni3l.11xlarge.
Prerequisites
Creating a VKE cluster
The following parameters need to be configured as described in the table when creating a cluster by using the VKE. For details on other parameters, see Creating clusters. You can also use the managed cluster template for heterogeneous computing to quickly create a VKE cluster for this scenario.
Configuration item
Description
Configuration item
Description
Cluster configuration
Kubernetes version
Select version v1.28 or later.
Pod networking model
Select VPC-CNI.
Node pool configuration
Managed node pool
Enable Managed node pool.
Instance type
Select the applied ecs.pni3l instance family of the GPU Accelerated type in beta.
Number of nodes
1 node.
data volume
You need to configure two ESSD data volumes. Select 1024 GiB and set the performance level to the default value PL0 for the two data volumes. In addition, specify /data01 as the mount directory for one of the ESSD data volumes.
warning
The data01 directory will be used as a dependency later and therefore cannot be modified.
Addon configuration
nvidia-device-plugin
(Required) The NVIDIA device driver. It allows use of management add-ons for GPUs in containers.
apig-controller
(Required) The API Gateway controller provides cloud-native AI gateway capabilities and enables intelligent load balancing for inference traffic based on different policies.
csi-ebs
(Required) It enables VKE clusters to use the standard CSI implementation for Elastic Block Storage (EBS).
prometheus-agent
(Required) Volcengine Managed Service for Prometheus (VMP) monitoring add-on collects the monitoring metrics data of the Kubernetes cluster to VMP.
apmplus-opentelemetry-collector
(Required) Collects OpenTelemetry data and Prometheus metrics, and sends them to APMPlus.
apmplus-server-agent
(Required) Collects service and host monitoring data and sends it to APMPlus.
cr-credential-controller
(Recommended) It can pull Container Registry (CR) images without passwords, which simplifies deployment operations.
keda
(Recommended) The event-driven autoscaler based on Kubernetes completes the autoscaler tasks of the inference service based on complex metrics.
vci-virtual-kubelet
(Recommended) It can deploy CPU workloads, such as system add-ons, using Volcengine Container Instance (VCI), which eliminates the need for O&M and does not consume the computing resources of GPU nodes.
Procedure
Step 1: Deploy Qwen3-32B-FP8
The VKE allows Qwen3-32B-FP8 model-based applications to run on the SGLang framework, which can be quickly realized by using the application template.
In the left navigation bar of the VKE console, select Application center > Application template.
On the Application template page, find qwen3-32b-fp8-sglang and click Deploy.
Configure qwen3-32b-fp8-sglang parameters on the Deploy application page.
Configuration item
Description
Configuration item
Description
application template
Application template
Select the latest Chart version of qwen3-32b-fp8-sglang.
Parameter configuration
The configuration method of qwen3-32b-fp8-sglang.
Name
Customize the application name according to the naming requirements prompted by the interface.
Deployment environment
Cluster
Select the VKE cluster created in Prerequisites.
Namespace
Select a namespace under the target cluster.
Protocol
Read and understand the agreement before selecting the agreement.
Click Confirm to start.
The applications that are already deployed can be found on the Helm page. Find qwen3-32b-fp8-sglang application by specifying the target project, cluster, and namespace, then click it to view detailed information about the application.
tip
The services whose names are in the format of <application name>-api-svc indicate those services that work as the external access points of their applications, and therefore are supposed to be used during routing configuration and model verification.
View the load status of qwen3-32b-fp8-sglang applications on the Deployment page of the VKE cluster.
In the left navigation bar of the VKE console, select Cluster and click the cluster name.
In the left navigation bar, select Workload > Deployment, then enter the name qwen3-32b-fp8-sglang in the search box to find it and view its status.
Step 2: Configure routing
Configure routing for the model through APIG Ingress. APIG Ingress can function as a managed cloud-native gateway based on the Volcano Engine APIG, realizing high availability and scalability in Ingress traffic management that is required in cloud-native applications.
On the left navigation bar on the cluster management page, select Services and Ingresses > Ingress, and click Create Ingress. Use API Gateway to expose the model service externally in the cluster. The parameters mentioned below need to be configured as described. Other parameters can be configured by referring to the Creating APIG Ingress through the console.
Configuration item
Description
Configuration item
Description
Basic configuration
Namespace
Select the namespace in which the qwen3-32b-fp8-sglang application template is deployed. It is used to associate the service that is supposed to be exposed for its application.
Ingress configuration
Ingress type
Select cloud-native API Gateway.
APIG specification settings
Gateway specifications
You can select Automatically create, or select Use existing.
tip
When you are using APIG to expose the model service in the clusters, we recommend that you configure the following parameters or features (Some parameters can only be configured in the APIG console, and cannot be configured in the VKE console):
Instance specification: We recommend that you select 4c8g, with two availability zones to realize high availability by default.
Bandwidth limit: This option is used to set the maximum bandwidth of the CLB instance working with the APIG instance. If more bandwidth is required, you can specify a custom CLB instance in the APIG console. For details, see Adding access entrance.
Circuit breaking: When some GPU instances malfunction, the common method is to take the faulty instances offline to eliminate failures. At the same time, it is necessary to retain the faulty instances for troubleshooting later. You can isolate the faulty instances by configuring a circuit breaking rule for the APIG instance.
Request timeout: Timeout is not applied to API Gateway by default. We recommend that you keep the default settings.If you have timeout demand, the VKE supports thatyou configure timeout in theAPI Gateway console. For details, refer to Advanced routing policy.
Observability: By default, the alerting, monitoring, and logging capabilities are disabled for APIG instances that are created via the VKE console. If needed, we recommend that you enable the logging, monitoring, and alerting capabilities of the instances in the API Gateway console.
Instance monitoring: This feature can help you to timely detect the unexpected phenomena in the chains of the whole system at the entry gateway level. For example: When the back end is unhealthy or crashes, the API Gateway will report503error code and specific errors.
Instance logs: You can view the request errors, request time consumption, and the allocation of requests in various Pods in the back end from the access logs.
Backend upstream
We recommend that you set the Load balancing algorithm parameter to Poll. It is more applicable to the scenarios of upgrading back-ends if the back-end loads are approximately balanced.
Listening configuration
Protocol
Select a protocol as needed. If HTTPS is selected, you need to configure the certificate as described in the document APIG Ingress.
Forwarding configuration
Domain name
Fill in the Ingress domain name to be exposed. The A (Address) record of this domain name needs to be configured later with the public or private IP address generated when the Ingress is successfully created.
Service
Select the service that was named in the pattern <application name>-api-svc and associated with the application created based on qwen3-32b-fp8-sglang template, and then set the port number to 8080.
Create consumer: In the left navigation bar, click Consumer Management. On the page that appears, click Create consumer.
Generate an API-KEY: In the consumer list, click the name of the target consumer, to enter the consumer details page. In the API Key information area, click Generate API Key.
In the pop-up dialog box, select Automatically create.
Click Confirm to generate API Key credential information.
Enable Key Auth add-on: in the left navigation bar, select Plugin Center > Key Auth and click Create Plugin on the page.
Effect level: select the Routing level and configure the instance, Service, and route to which the add-on belongs.
Authentication configuration: Select the header and enter the text "Authorization" in the textbox on the right side to indicate that the API Key will be included in the Authorization header of requests.
Consumer: Select the consumer created in Step 1.
Other options can remain as the default.
Obtain Ingress address.
VIP: includes both public and private IP addresses.
backend service: includes the backend service name and access domain name.
Configure domain name resolution.
To test the DNS in the local environment, you can implement a domain-to-IP resolution.
To test in the production environment, you need to register the Ingress domain name with your DNS provider and add public or private IPs correspondingly.
Step 3: Enable observability configuration
Basic observability provides the metrics for AI resources and inference services. Deep observability provides end-to-end performance monitoring services for inference applications.
Basic observability
In the left navigation bar of the cluster management page, click Cloud native observability > Overview. On the page that appears, click Enable to enable cloud native observability and VKE observability. For more configuration details, refer to Enable observability and VKE observability.
After turning on observability, the application metrics of SGLang will be collected into the Volcengine Managed Service for Prometheus (VMP). You can use Explore to query metrics in the VMP console. An example is as follows:
There is a built-in VMP dashboard that allows you to view the metrics collected from SGLang-based applications. To do that, you can go to the VMP console, select Monitoring dashboard in the left navigation bar and search for SGLang to open the dashboard as shown below:
Log in to the above Grafana and select to import the following dashboard JSON file:
SGLang Dashboard-1747206543364.json
The effect after import is shown in the figure:
Deep observability
Log in to the APMPlus console. In the left navigation bar, click Server-side Monitoring.
Search for SGlang and click the service name in the results to open the monitoring dashboard page.
View metrics.
LLM metrics
On tabs such as Service Overview, LLM Performance, and Token Usage, you can view the core metrics of the LLM service, including the number of LLM calls, token usage, response latency, TTFT, TPOT, QPS, and request error rate.
tip
TTFT and TPOT are effective only when LLMs are called with streaming-enabled requests.
The example of a streaming call is as follows:
curl localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "Qwen3-32B-FP8",
"messages": [
{
"role": "user",
"content": "hello"
}
],
"stream": true,
"stream_options": {
"include_usage": true,
"continuous_usage_stats": true
}
}'
Runtime metrics
On the Runtime monitoring tab, you can view runtime-related metrics, including CPU time, CPU usage, Memory usage, Number of GC objects, Number of threads, and Number of context switches.
View link analysis.
On the Trace analysis page of the SGLang-based applications, you can search for trace information based on different conditions. Click the ID of the target trace to go to the details page of the trace. View trace information in the list.
Model verification
Method 1: Access via Service
The service, created along with the deployment of qwen3-32b-fp8-sglang application, has a name matching the pattern <application name>-api-svc. You can use the endpoint address (port 8080) corresponding to that service name to implement a test in this method. The endpoint is OpenAPI-compatible.
The sample code is as follows.
tip
Replace******in thehttp://******with theendpoint of your <application name>-api-svc service.
The parameter contentis what you want to type to chat with LLMs.
curl http://******/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "/data/models/Qwen3-32B-FP8",
"messages": [
{
"role": "user",
"content": "Who are you?"
}
]
}'
Alternatively, you can directly log in to the pod to perform API calls. To do that, you can go to the Helm application details page of the qwen3-32b-fp8-sglang application, click the associated deployment in the Workload section, and then click Console in the upper-right corner of the new page to open the console where commands can be executed.
Method 2: Access via APIG
When enabling the authentication feature of the APIG, you need to add an authentication token in the request.
The following example is provided for reference.
tip
Replace the example.cominhttp://example.comwiththe domain name of the back-end services obtained instep 2: configure Ingress.
Replace eyJhbGciOiJSUzI******withthe API Key generated inStep 2: Configure Ingress.
The parameter contentis what you want to type to chat with LLMs.
curl http://example.com/v1/chat/completions -X POST \