Deploying vLLM-Ascend on Huawei Cloud ModelArts: a skill for model prototype validation

A deployment skill maps four workflow layers and three topologies to ModelArts, with 28 local checks and API or console deployment. The official 70–100-minute estimate excludes downloads and covers prototype validation; resource and topology decisions still require confirmation.
Editor's check: In this article, “0-day” means adaptation and validation on the day a model is released. Huawei Cloud's official case limits the solution to functional validation and prototype testing, with an estimated 70–100 minutes excluding model-weight and image downloads. A single conversation does not mean unconditional production readiness. The current case requires a complete single-node, eight-NPU server; TP does not equal the number of allocated cards. Models, chips, and parameters must match the relevant versions. The memory-headroom formula below is only an initial screening rule: passing it does not guarantee the model will still run after accounting for the KV cache, activations, and temporary workspaces.
This article describes an open-source model deployment skill for Huawei Cloud ModelArts and Ascend NPUs. Its four-layer workflow, three topology mappings, 28 local checks, and two deployment channels assist functional validation. “One conversation” still involves human confirmation, resource preparation, and runtime waits; it does not imply direct production readiness.

As open-source large-model families such as GLM, Qwen, DeepSeek, and Llama move to weekly iteration, the greatest obstacle for enterprise AI infrastructure teams is often no longer compute supply itself. It is the engineering delay between a model's release and the scheduled work needed to adapt deployment scripts.
Although community adaptation tools keep improving, frontline engineers still face a lengthy adaptation process between reading model documentation and starting an accessible online service in the cloud.
The problem is a long, fragmented engineering chain. A single open-source model family can split into seven or eight variants—BF16, W8A8, experimental branches, and more—with different weight formats, container-image tags, and launch parameters. Choosing one incorrectly can mean starting again. Single-node, multi-node, and prefill/decode-disaggregated deployment each have their own boundaries, while node counts, card counts, and parallelism must be calculated against available memory. Platform differences are even more troublesome: technical documentation often provides bare-metal commands, but moving them to the cloud introduces constraints involving service-port alignment, health-probe policies, rank-table role identification, multiple network interfaces, and instance startup order. Add uploads of weights to OBS, image transfers to SWR, API-parameter validation, and post-failure log analysis, and manually bringing a new model online for validation has typically taken days or even a week. With the deployment skill introduced here, the official case estimates a total duration, excluding model-weight and image downloads, of 70–100 minutes. The initial model startup—including torch.compile compilation and Ascend ACLGraph capture—takes approximately 10–20 minutes, greatly reducing time spent on repetitive troubleshooting.
Breaking the work down shows that, regardless of model iteration, the engineering steps remain highly structured: selection and sizing, resource preparation, script adaptation, service creation, and availability validation. Platform constraints involving ports, probes, and memory calculations also generally have a single prescribed configuration. Only a few business trade-offs vary by scenario and require a human decision. Following this pattern, the Huawei Cloud team separated deterministic rules from business judgment and distilled organizational deployment experience into a workflow skill executable by an AI agent—huawei-cloud-modelarts-vllm-ascend-model-deploy (the “deployment skill” below). It aims to move open-source model adaptation on ModelArts and Ascend NPUs from scheduled engineering work toward same-day, or “0-day,” validation.
Access and installation: Search Huawei Cloud's Skill marketplace for huawei-cloud-modelarts-vllm-ascend-model-deploy. Three activation paths are available: enter Huawei Cloud AI Shell from the skill's detail page for automatic installation, or use Developer > AI Developer Space to install manually; install it in a local agent such as OpenCode, OpenClaw, or Hermes; or deploy it in ModelArts Notebook through JupyterLab → ModelArts Launcher > AI Agent > OpenClaw.
Beyond a universal script: four layers and three principles define the engineering boundaries
When automating deployment, many teams write a supposedly universal script packed with conditional branches, using environment variables to support single-node, multi-node, and prefill/decode-disaggregated topologies at once. In practice, these forms differ greatly in port allocation, probe paths, and master/worker startup. As runtime branching expands, finding hidden errors can cost more than writing the scripts manually.
The deployment skill instead separates responsibilities across four layers: decision-making (L1), resource preparation (L2), artifact generation (L3), and deployment validation (L4). The upper layer decides the plan; lower layers produce deterministic artifacts according to that plan. No layer guesses on behalf of the one above it, as Figure 1 shows.

Figure 1. The deployment skill's four-layer architecture: L1 makes planning decisions; L2 prepares weights and images; L3 generates deterministic artifacts; L4 offers both API and console deployment channels.
Three mandatory engineering principles organize this four-layer pipeline.
1.1 Topology: decide upfront and generate dedicated artifacts
Deployment topology is a planning decision, not a runtime branch. Once single-node, multi-node, or prefill/decode-disaggregated deployment is confirmed, the system selects a dedicated launch script from its template library. That script contains no topology-switching logic and instead fixes the appropriate default ports and probe policy, preventing complexity from growing out of control. ModelArts injects instance indices for multi-node deployment and node roles for prefill/decode disaggregation. These are instance attributes within a topology and do not compromise the template's single responsibility.
1.2 Parameters: trace deterministic values to their sources
Image tags, tensor parallelism (TP), launch parameters, port mappings, and even probe retry thresholds must be taken directly from the official vLLM-Ascend model-adaptation documentation (https://docs.vllm.ai/projects/ascend/) or the skill's built-in knowledge base whenever a prescribed value exists. Agents must not guess from experience.
Consider health checks. Left to general development experience or old memories, an agent might use Kubernetes' default three-failure threshold or the probe.sh filename from an older tutorial. But a large model's initial startup in ModelArts inference requires weight loading and computation-graph compilation. According to the technical documentation and knowledge-base rules, the health check must therefore use a 300-second initial delay, a 60-second readiness timeout, and a 300-failure tolerance; deployment timeout is set to deploy_timeout_minutes=300, and the probe script must be named health_check.sh. These settings prevent a container from being repeatedly restarted after a premature failure diagnosis before weights finish loading. If official documentation is temporarily unavailable, the workflow first investigates certificate and network problems, then asks the user for the official page, and finally discloses the uncertainty. Scattered forum posts never substitute for official evidence.
1.3 Business decisions: confirm critical choices interactively
Ambiguous model selection, quantization variants, TP levels, deployment topology, and whether the system should push the image are all presented to engineers through an interactive question-and-answer component for explicit confirmation. Models marked experimentally supported trigger an additional risk notice. Much rework in large-model deployment comes from execution incorrectly guessing the developer's intent, rather than technical infeasibility. Making decisions explicit upfront shifts that cost from cloud troubleshooting to a confirmation click before work begins.
For delivery, the four layers become a standardized six-step workflow, shown in Figure 2. L1/L2 correspond to steps 1–2, preparing model weights and images; L3 corresponds to step 3, filling templates and running 28 local checks; L4 covers steps 4–6, creating the service through either channel, polling its status, and validating an OpenAI-compatible API. An exception at any stage returns the workflow to the diagnostic and repair loop.

Figure 2. The skill's six-step workflow covers model weights, deployment images, script preparation, online deployment, readiness validation, and invocation validation in a closed loop.
Mapping three topologies into ModelArts inference units
The vLLM-Ascend community offers various configurations for distributed model startup. To keep cloud compute scheduling consistent, the deployment skill consolidates these into single-node, multi-node, and prefill/decode-disaggregated forms, all mapped into ModelArts' single deployment-unit framework. Several relationships need to be clear: one deployment unit represents a complete online service replica, containing one to three inference units (groups 0, 1, and 2, respectively). Each inference unit starts the configured number of instances; in single-node deployment, one inference unit equals one instance. Replica count, representing high-availability capacity, is thereby decoupled from instance count, representing the compute available to one replica. The table below summarizes the differences among the three forms.

2.1 Single-node deployment: a first choice for smaller models and quick validation
For small or medium models and rapid prototyping, single-node deployment is the most compact structure. The service has one inference unit—group 0—with one instance. The container starts inference on port 8080 and probes its local health endpoint, giving the shortest path and greatest stability, as Figure 3 shows.

Figure 3. Single-node deployment: one inference unit handles all traffic, with weights mounted or prewarmed and code mounted.
2.2 Multi-node deployment: master/worker roles and a single traffic entry point
When a model exceeds one server's memory capacity, or data parallelism (DP) is needed to improve concurrent throughput, deployment expands to master and worker nodes, as Figure 4 shows. This is also the stage most prone to failures when manually adapting bare-metal documentation. Under the new ModelArts online-service architecture, all external requests go to the first inference unit, group 0. Group 0 must therefore be a master unit with exactly one instance, receiving external traffic. The remaining N−1 nodes belong to group 1 as workers. They start in headless mode (--headless), expose no external API, and focus on distributed computation.

Figure 4. Multi-node master/worker structure: the group-0 master exclusively receives requests; headless workers join the same TP/DP domain.
Directly reusing bare-metal scripts for multi-node deployment commonly causes three failures: workers misidentify themselves and claim rank 0, stalling initialization; workers lack a local external-facing port, so health checks keep failing; and collective communication uses the wrong network plane in a multi-interface environment, causing HCCL connection timeouts. The skill's multi-node template addresses all three upfront. It parses the platform-injected global rank table and compares instance IPs to identify master/worker roles and starting data-parallel ranks dynamically. Every worker probe checks the master's health endpoint, anchoring worker readiness to master availability. The communication layer derives the actual interface name from the instance IP for HCCL and GLOO binding. ModelArts supernode affinity is enabled with affinity-group instance count N, placing instances on the same supernode to obtain stable RDMA bandwidth.
2.3 Prefill/decode disaggregation: three roles and the group-0 rule
For very large models such as DeepSeek, compute-intensive prefill and memory-access-intensive decode have markedly different resource requirements. Separating them becomes an important route to better cluster utilization. The vLLM-Ascend community divides this architecture into Proxy, Prefill, and Decode roles, using Mooncake to transfer the KV cache, as Figure 5 illustrates.

Figure 5. Three roles and KV transfer in prefill/decode disaggregation: group 0 is a zero-card Proxy; groups 1 and 2 are Prefill and Decode. Decode pulls the KV cache through Mooncake.
On ModelArts, one deployment unit contains three inference units, corresponding to groups 0, 1, and 2. Group 0 contains one Proxy request orchestrator using no NPU compute: a custom zero-card specification in a dedicated pool, or a preset CPU specification in a public pool. Group 1 contains Prefill, and group 2 contains Decode, listening on port 7100. They share a code directory and use the platform-injected VLLM_ROLE environment variable to perform their respective roles. The Proxy first sends an inference request to Prefill to compute the first token and return KV metadata. Decode then actively pulls the KV cache through Mooncake to continue generation, leaving the Proxy free of data-plane forwarding. Startup strictly follows Prefill → Decode → Proxy, opening the entry point only after both backends are ready. This avoids health-check failures from starting the Proxy prematurely. The kv_port is also deliberately kept outside the random-port range used by Mooncake's transport layer.
This yields a ModelArts topology rule: group 0 must never contain a worker or Decode instance; it must be the master or Proxy receiving external traffic. Violating this rule does not cause a parameter error when the task is created. Instead, it produces a silent failure in which the service says RUNNING but every request fails, making online troubleshooting extremely costly.
Turning past failures into mandatory checks: local validation, two deployment channels, and security
Whether an automation tool can enter engineering practice depends on its ability to catch configuration mistakes before requests reach the cloud. This deployment skill connects the six-step workflow and turns real adaptation experience into 28 mandatory self-check gates.
After filling the scripts but before uploading to OBS, the workflow checks local artifacts as its first defense against taking problems into the cloud. Hard availability checks cover consistent ports across launch scripts, probes, and platform configuration; read-only mount paths; template-role matching; memory budget, requiring per-card memory × gpu_memory_utilization − weight GB / TP ≥ 1 GB; and rank-table dependencies. Any failure blocks uploading and provides correction guidance. Soft performance checks offer tuning suggestions based on memory utilization and context length, reducing a cloud-failure/log-inspection/script-revision loop that used to take more than ten minutes to a local check taking seconds.
Frequent failures involving hardware specifications and image compatibility are likewise converted into computable constraints and mandatory checks. To choose tensor parallelism TP, the system takes the intersection of divisors of the attention-head count, hardware card-count options, the official minimum TP, and what fits in each card's memory. Any option leaving negative KV-cache space is removed. Differences in per-card memory and launch parameters between Ascend variants such as 950DT and 950PR must be explicitly checked during planning. Container-image pulls enforce ARM64 architecture to prevent instruction-set incompatibility. Where the community supplies multiple distribution tags, an openEuler image matching the resource pool's operating-system baseline is selected by default. Service-creation requests also include async_scheduling=true by default to handle resource-pool queues during peak periods.
For the final cloud-deployment step, the skill accommodates both automation-oriented developers and console-oriented operations engineers, using the same validated artifacts. Channel 1: automated API deployment serves teams familiar with API calls. Scripts call the new CreateInferService API directly. Local request-body prevalidation aligns the top-level placement of workspace_id, OBS delegated-authentication type agency, a 300-second request timeout, and the standard http inference prefix. This catches locally the 400 parameter errors that would otherwise appear only after submission:

Channel 2: manual console deployment serves engineers who prefer a graphical interface. They follow the skill's generated nine-step checklist, already filled with actual parameter values: ① create an online service; ② select inference-unit specifications; ③ configure the image address; ④ set up model mounts; ⑤ configure the startup command; ⑥ configure environment variables; ⑦ configure health checks; ⑧ configure the replica count; ⑨ confirm and submit. The new online-service version also supports direct creation using an SWR image plus OBS mounts, without creating an AI application first, subject to the current version.
Security controls are embedded in the execution engine. External requests are restricted to an allowlist of official and cloud domains. User-supplied parameters are validated before concatenation and are never rewritten without the user's knowledge. AK/SK credentials, IAM passwords, and authentication tokens must never be echoed or exposed as command-line plaintext; they may pass only through environment variables, permission-restricted files, or standard input. Runtime temporary files go into a separate isolated directory under /tmp, preferably with 700 permissions and cleanup on exit, keeping the skill's own environment clean.
A one-conversation walkthrough: accumulating reusable organizational deployment knowledge
Consider deployment in an Ascend 910B3 resource pool with 64 GB per card. This example uses TP=4; the current official case requires a complete eight-NPU server, and TP does not equal the server’s card count to deploy Qwen3.8-27B. This is an anonymized demonstration in the report; support must be checked against the official model list for the relevant version. The workflow groups human interaction into four types of business confirmation, as Figure 6 shows. This does not mean environment preparation or failure troubleshooting needs no human involvement.

Figure 6. Deployment in one conversation: from model selection, TP and memory calculations, and topology confirmation to validation of an OpenAI-compatible API call.
In this working model, engineers make four decisions: model selection, specification confirmation, topology choice, and resource designation. Documentation retrieval, parameter calculation, template adaptation, request construction, and status polling then follow the rule-based loop. Deployment capability moves out of individual memory and becomes a reusable team asset. Each newly diagnosed error can feed back into the knowledge base through an added validation rule. This provides a lower-friction engineering path between the fast-moving open-source model ecosystem and the Huawei Cloud ModelArts × Ascend NPU platform, aiming to make new-model adaptation testable on release day.
As engineering practice develops, the skill is being extended in three directions. First, more accurate structured parsing of official model documentation should reduce manual confirmations and align chip-specific parameters automatically. Second, capacity-planning calculations should extend to combined topologies such as prefill/decode disaggregation with multiple replicas, or multiple nodes with multiple instances, directly recommending node and card counts. Third, a baseline library should incorporate time to first token (TTFT), time per output token (TPOT), and measured throughput under different hardware configurations, helping teams understand performance and resource requirements before deployment begins.
Disclaimer: This solution uses models and images supplied by the open-source vLLM-Ascend community and focuses on functional validation, technical adaptation, and prototype testing. Do not use it directly for production workloads requiring high availability and disaster recovery, security and compliance, observability, or operational controls. Specific model capabilities and inference performance depend on the relevant community version. Model names, specifications, paths, and parameters in this article are anonymized demonstration examples. Safeguard AK/SK credentials and authentication tokens during practical use, and never disclose them publicly.
References
1. Official vLLM-Ascend model-adaptation documentation: https://docs.vllm.ai/projects/ascend/
2. Huawei Cloud best practice, “Deploying vLLM-Ascend Community Models to ModelArts Using a Skill”: https://support.huaweicloud.com/bestpractice-modelarts/modelarts_10_0080.html
3. Huawei Cloud ModelArts new online-service deployment guide: https://support.huaweicloud.com/inference-modelarts/inference2.0-modelarts-0004.html
4. Huawei Cloud ModelArts API reference overview: https://support.huaweicloud.com/api-modelarts/modelarts_03_0002.html
This article comes from “CSDN” and is authored by “CSDN”.
Related topics
After reading
Join the AINRK community
Read how to join the community and connect with people working in AI.




