Long-Context Architecture of a Next-Generation Ultra-Large MoE Model Explained
This article explains the long-context architecture of a next-generation ultra-large MoE model. It covers how the parameter increase affects memory and compute, how sparse attention with indexer reuse handles 1M-token contexts, and how routing and residual design affect parameter efficiency. It also covers the native MTP draft layer, MXFP8 deployment, and how to evaluate benchmarks and check deployment metrics before choosing a model.
Parameter Scale Grows From 295B to 770B: What Is the Cost?
Sparse activation is the core idea of MoE models. Total parameters determine the model’s knowledge capacity, while the activated parameters for each token determine the compute cost of each inference step. According to the published specifications, the backbone’s total parameters rise from 295B to 770B, about 2.6 times. Activated parameters per token rise from 21B to 49B, about 2.3 times. Total parameters grow faster than activated parameters, which is the purpose of a sparse architecture.
Memory pressure from total parameters is immediate. At 770B parameters stored in BF16, the weights alone take about 1.54 TB (770×10⁹×2 bytes). This is far beyond the memory of a single machine, so the model must run across multiple nodes. More activated parameters also increase per-step compute and inter-node communication. When selecting a model, calculate these costs for your target hardware first, then evaluate quality.
For the network topology, the layer count drops from 80 to 78, and the hidden size increases from 4096 to 6144. The official explanation is that fewer layers reduce serial steps in the forward pass, while a wider layer improves representation capacity. A wider layer also increases the communication volume per layer. Whether fewer layers offset that overhead depends on the parallelism strategy. The published material does not include measured data on this point.
How Are Attention Memory and Compute Controlled at 1M Context?
Traditional GQA produces very large KV caches at million-token context lengths, and memory bandwidth quickly becomes the bottleneck. This model takes a different approach. A lightweight indexer first scores how relevant each historical token is to the current query. The main attention then processes only the selected Top-K positions, and K is set to 2048. As a result, the number of tokens attended to in each step no longer scales with the total context length.
The published material calls this mechanism “MLA-based gated sparse attention” and refers to its sparse selection component as DSA. The two components have different roles. MLA compresses the KV representation to reduce cache size. Sparse selection reduces the number of tokens computed in each step. The term “gating” is not defined in the published material, so readers should check the specific gating method in the official technical report.
The indexer does not run on every layer. According to the published material, 21 of the 78 layers run the full indexer, and the other 57 layers reuse indices selected by earlier layers. 21 plus 57 equals 78. The material lists key layers including 0, 1, 5, 9, and 13, then abbreviates the rest with “… 77”. The code below only illustrates the flow. The layer set is an example and does not represent the official configuration.
# Illustrative code: the layer set is for explanation only and is not the official configurationFULL_INDEXER_LAYERS = {0, 1, 5, 9, 13, 77} # Example set; the actual model has 21 full-indexer layersNUM_LAYERS = 78cached_indices = Nonefor layer_id in range(NUM_LAYERS):if layer_id in FULL_INDEXER_LAYERS:# Input: the current layer's query and all historical KV; output: Top-K position indices for each querycached_indices = run_indexer(query[layer_id], history_kv)# Other layers reuse the most recently computed indicestopk_kv = gather_topk(history_kv, cached_indices, k=2048)output[layer_id] = sparse_attention(query[layer_id], topk_kv)
Index reuse carries two risks. First, a reused index may not match the actual relevance at later layers, which can cause the model to select the wrong tokens. Validate this with long-context tasks. Second, during decoding, the history grows with each generated token, so cached indices must be updated. The published material does not describe the update frequency or the invalidation strategy. Confirm these details with the model provider before deployment.
How Do Routing and Residual Design Improve Parameter Efficiency?
The table below summarizes the routing and residual parameters disclosed in the published material.
| Item | Disclosed Value | Main Role |
|---|---|---|
| Routed experts | Increased from 192 to 256 | Expands the pool of selectable experts and raises knowledge capacity |
| Routed experts per token | Top-8 | Limits the number of experts activated in each step |
| Shared experts | One added | Carries general features shared across tasks and reduces duplicate storage |
| Residual streams | Changed from a single stream to 4-stream iHC | Adds gradient return paths and strengthens subspace fusion |
The benefit of the shared expert is that general knowledge no longer needs to be stored repeatedly across the routed experts. The cost is that every token passes through one additional expert computation. The shared expert also carries a fixed load, which may become a hotspot when the model is split across devices in parallel.
The 4-stream residual design aims to give deep networks richer paths for passing information and to reduce gradient vanishing in very large-scale training. The published material calls this the 4-stream iHC multi-path information flow, but it does not fully define iHC. Each additional stream increases activation memory and communication volume, and training stability needs dedicated validation. Refer to the official technical report for the definition.
How Much Speedup Can the Native MTP Draft Layer Deliver?
According to the published material, the parameters of the native multi-token prediction (MTP) draft layer grow from 3.8B to 10B, and 0.7B parameters are activated per step. In speculative decoding, the draft layer proposes candidate tokens, and the main model verifies them. A more accurate draft layer produces more accepted tokens and fewer rollbacks, which raises end-to-end throughput.
A larger draft layer also increases the cost of each draft step. Whether a higher acceptance rate turns into a throughput gain depends on batch size, hardware, and the inference framework’s implementation. The published material does not provide acceptance rate or speedup data. Measure both on your own workload before launch.
How Does Native MXFP8 Support Affect Deployment?
According to the published material, the model supports MXFP8 natively in addition to BF16. FP8 halves the storage size of the weights. The 770B model’s weights drop from about 1.54 TB to about 0.77 TB, which also reduces pressure on HBM bandwidth. For long-context agents, the same hardware can then serve more concurrent requests or hold a longer KV cache.
This benefit depends on three conditions. First, the hardware must support the format natively. On hardware without native support, software emulation may reduce performance. Second, lower precision can reduce quality, especially on long reasoning chains, math, and code. Use BF16 as the baseline, and compare FP8 results against it task by task. Third, prepare a fallback plan. You can keep sensitive modules in higher precision, or switch back to BF16 and add nodes if accuracy falls short.
Can Benchmark Scores Be Used Directly for Model Selection?
No. Public benchmarks may already appear in training data, which inflates their scores. Pure benchmark results also rarely reflect how a model performs in real business workflows. A more reliable approach is to build a private evaluation set from real business requests. The set should cover long-document question answering, multi-turn agent tool calls, and code modification.
Evaluations at 1M context should include two types of tasks. The first is needle-in-a-haystack retrieval, which tests whether the model can find information buried in long text. The second is cross-segment reasoning, such as answering a question that requires combining several distant passages. Retrieval tests alone cannot show whether the model works for complex tasks.
Which Metrics Should Be Checked for Model Selection and Deployment?
Check the following metrics in this order.
- Memory: Calculate the weight and KV cache usage separately, based on your target context length and batch size.
- Parallelism: Confirm that the inference framework supports your combination of expert, tensor, and pipeline parallelism.
- Inference framework: Confirm whether vLLM or another framework already supports this architecture. Sparse attention and index reuse usually require dedicated kernel implementations.
- Latency and throughput: Measure time to first token, which reflects prefill on long contexts, and per-token generation latency separately.
- Cost: Calculate the cost per million tokens from GPU-hours. Include idle resources and redundant replicas.
For infrastructure, you can use GPU instances from major cloud providers or build a heterogeneous cluster in-house. Compare options on GPU memory capacity, inter-GPU bandwidth (such as NVLink or InfiniBand), elastic scaling, and inference framework compatibility. Brand matters less than these factors.
Common mistakes include judging cost by total parameters alone, using public leaderboards in place of private evaluations, ignoring prefill latency on long contexts, and shipping FP8 without accuracy regression testing. Avoiding these mistakes is what determines whether an ultra-large MoE model actually lowers overall business costs.
