vllm-ascend/recipes
~/browse/DeepSeek

DeepSeek-V4-Flash

DeepSeek V4 MoE model with hybrid CSA+HCA attention, manifold-constrained hyper-connections, and three-tier reasoning (Non-think / Think High / Think Max).

MoE284B/13B1M ctxtextvLLM v0.23.0rc1Difficulty: advanced

Compact 284B/13B V4 sibling — single-node 1M-context serving with W8A8 weights and MTP

Added: 2026-08-03·Updated: 2026-11-07·[ edit ]

Preparation

DeepSeek-V4-Flash is a 284B-total / 13B-active MoE model in the V4 preview family.
It pairs a hybrid attention stack — Compressed Sparse Attention (CSA) + Heavily
Compressed Attention (HCA) — with Manifold-Constrained Hyper-Connections (mHC) to
reach 27% of V3.2's per-token inference FLOPs and 10% of V3.2's KV cache at 1M
context. Pre-trained on 32T+ tokens; post-training is a two-stage pipeline (domain-
specific expert cultivation + unified consolidation via on-policy distillation).

Deployment Guide

Select NPU type and deployment options to view the corresponding deployment instructions.

Verification

Once your server is started, you can query the model with input prompts:

In :, use the IP address and port number of the primary node. If the primary and standby nodes are separated, use the IP address and port number of the proxy node.

curl http://<node0_ip>:<port>/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
        "model": "dsv4",
        "messages": [
            {
                "role": "user",
                "content": "Who are you?"
            }
        ],
        "max_tokens": 256,
        "temperature": 0
    }'

Expected Result:

The service returns HTTP 200 OK with a JSON response containing the choices field.

More Info

Accuracy

Using AISBench

1. Refer to Using AISBench for details.

2. After execution, you can get the result.

datasetversionmetricmodevllm-api-general-chatnote
GPQA-accuracygen88.171 Atlas 800 A3 (128G × 8)
GSM8K-accuracygen96.441 Atlas 800 A3 (128G × 8)

Accuracy

Here are two accuracy evaluation methods.

Using AISBench

1. Refer to Using AISBench for details.

2. After execution, you can get the result.

datasetversionmetricmodevllm-api-general-chatnote
GPQA-accuracygen88.171 Atlas 800 A3 (128G × 8)
GSM8K-accuracygen96.441 Atlas 800 A3 (128G × 8)

Benchmark

Recommended Configurations

Note: The following configurations are validated in specific test environments and are for reference only. The optimal configuration depends on factors such as maximum input/output length, prefix cache hit rate, precision requirements, and deployment machine ratios. It is recommended to refer to Section 9.2 for tuning based on actual conditions.

Table 1: Scenario Overview

*Total NPUs indicates the total number of NPUs used across all nodes.
ScenarioDeployment Mode*Total NPUsWeight VersionKey Considerations
High ThroughputSingle-Node Mixed16 (A3)DeepSeek-V4-Flash-w8a8-mtpUse dp4 tp4 to balance memory capacity and compute efficiency
High Throughput1P1D deployment32 (A3)DeepSeek-V4-Flash-w8a8-mtpdp16 tp1 on both P and D nodes; balanced latency and throughput
Long Context (1M)Single-Node (A3)8 (A3)DeepSeek-V4-Flash-w8a8-mtpUse dp4 tp4 to balance memory capacity and compute efficiency
Long Context (1M)1P1D deployment32 (A3)DeepSeek-V4-Flash-w8a8-mtpdp16 tp1 on both P and D nodes; balanced latency and throughput

Table 2: Detailed Node Configuration

A3 Configurations

ModelProduct ComboScenarioDeviceNetworkingTotal NPUsData FormatContext LengthAverage InputAverage Output
deepseek V4 flashA3 PD separationHigh ThroughputAtlas 800I A3 560T3*1P + 1*1D (EP16)
4 machines
32W8A8C161M8K1K
deepseek V4 flashA3 PD separationLow LatencyAtlas 800I A3 560T3*1P + 1*1D (EP16)
4 machines
32W8A8C161M8K1K
deepseek V4 flashA3 PD separationHigh ThroughputAtlas 800I A3 560T3*1P + 1*1D (EP16)
4 machines
32W8A8C161M32K1K
deepseek V4 flashA3 PD separationLow LatencyAtlas 800I A3 560T3*1P + 1*1D (EP16)
4 machines
32W8A8C161M32K1K
deepseek V4 flashA3 PD separationHigh ThroughputAtlas 800I A3 560T3*1P + 1*1D (EP16)
4 machines
32W8A8C161M128K1K
deepseek V4 flashA3 PD separationLow LatencyAtlas 800I A3 560T3*1P + 1*1D (EP16)
4 machines
32W8A8C161M128K1K
deepseek V4 flashA3 PD separationLong ContextAtlas 800I A3 560T3*1P + 1*1D (EP16)
4 machines
32W8A8C161M1M1K
deepseek V4 flashA3 single-node mixedHigh ThroughputAtlas 800I A3 560TSingle-node mixed EP16
1 machine
8W8A8C161M8K1K
deepseek V4 flashA3 single-node mixedLow LatencyAtlas 800I A3 560TSingle-node mixed EP16
1 machine
8W8A8C161M8K1K
deepseek V4 flashA3 single-node mixedHigh ThroughputAtlas 800I A3 560TSingle-node mixed EP16
1 machine
8W8A8C161M32K1K
deepseek V4 flashA3 single-node mixedLow LatencyAtlas 800I A3 560TSingle-node mixed EP16
1 machine
8W8A8C161M32K1K
deepseek V4 flashA3 single-node mixedHigh ThroughputAtlas 800I A3 560TSingle-node mixed EP16
1 machine
8W8A8C161M128K1K
deepseek V4 flashA3 single-node mixedLow LatencyAtlas 800I A3 560TSingle-node mixed EP16
1 machine
8W8A8C161M128K1K
deepseek V4 flashA3 single-node mixedLong ContextAtlas 800I A3 560TSingle-node mixed EP16
1 machine
8W8A8C161M1M1K

A2 Configurations

ModelProduct ComboScenarioDeviceNetworkingTotal NPUsData FormatContext LengthAverage InputAverage Output
deepseek V4 flashA2 single-node mixedHigh ThroughputAtlas 800I A2 280TA2 single-node mixed8W8A8C161330728K1K
deepseek V4 flashA2 single-node mixedLow LatencyAtlas 800I A2 280TA2 single-node mixed8W8A8C161330728K1K
deepseek V4 flashA2 single-node mixedHigh ThroughputAtlas 800I A2 280TA2 single-node mixed8W8A8C1613307232K1K
deepseek V4 flashA2 single-node mixedLow LatencyAtlas 800I A2 280TA2 single-node mixed8W8A8C1613307232K1K
deepseek V4 flashA2 single-node mixedHigh ThroughputAtlas 800I A2 280TA2 single-node mixed8W8A8C16133072128K1K
deepseek V4 flashA2 single-node mixedLow LatencyAtlas 800I A2 280TA2 single-node mixed8W8A8C16133072128K1K
deepseek V4 flashA2 single-node mixedLong ContextAtlas 800I A2 280TA2 single-node mixed8W8A8C161M1020K1K
deepseek V4 flashA2 8-machine PD separationHigh ThroughputAtlas 800I A2 280T4*1P + 1*4D
8 machines
64W8A8C161330728K1K
deepseek V4 flashA2 8-machine PD separationLow LatencyAtlas 800I A2 280T4*1P + 1*4D
8 machines
64W8A8C161330728K1K
deepseek V4 flashA2 8-machine PD separationHigh ThroughputAtlas 800I A2 280T4*1P + 1*4D
8 machines
64W8A8C1613307232K1K
deepseek V4 flashA2 8-machine PD separationLow LatencyAtlas 800I A2 280T4*1P + 1*4D
8 machines
64W8A8C1613307232K1K
deepseek V4 flashA2 8-machine PD separationHigh ThroughputAtlas 800I A2 280T4*1P + 1*4D
8 machines
64W8A8C16133072128K1K
deepseek V4 flashA2 8-machine PD separationLow LatencyAtlas 800I A2 280T4*1P + 1*4D
8 machines
64W8A8C16133072128K1K
deepseek V4 flashA2 8-machine PD separationLong ContextAtlas 800I A2 280T4*1P + 1*4D
8 machines
64W8A8C161M1M1K
For complete startup commands and parameter descriptions, please refer to the deployment examples in Chapter 5.

Notice:

max-model-len and max-num-seqs need to be set according to the actual usage scenario. For other settings, please refer to the Deployment chapter.

Currently, we support 4K prefix cache hit in an experimental manner. You only need to change the value of --block-size from 128 to 32 in the service.

Benchmark

Using AISBench

Refer to Using AISBench for performance evaluation for details.

Using vLLM Benchmark

Refer to vllm benchmark for more details.