Million-Token Context MoE Models: Architecture, Attention, and Compute Adaptation
This article analyzes a publicly described ultra-large mixture-of-experts model series with Pro and Flash versions, both offering a native 1-million-token context window. It reviews the two variants’ parameter and activation profiles, hierarchical hybrid attention, the Muon optimizer, heterogeneous NPU adaptation, and a practical pre-deployment checklist. It also flags where source figures lack baselines or measurement conditions and should be validated on local data and hardware.
1. Why Cost Has Become the Focus of Model Competition
Competition among large language models is shifting from leaderboard scores to engineering deployment. At equal capability, inference cost determines whether a model can support large-scale user requests. Therefore, when judging whether a new model deserves attention, it is not enough to look at benchmark scores. It is also necessary to examine how much compute each call consumes, how much memory it occupies, and whether it can run stably in real business workloads.
This article is based on public introductory material for a recent ultra-large mixture-of-experts (MoE) model series. The parameters, layer counts, and context lengths cited here are taken from the original introduction; before formal selection, the official technical report should be treated as authoritative.
2. Positioning of the Two Versions
The series provides two versions for different workloads.
| Item | Pro | Flash |
|---|---|---|
| Total parameters | ~1.6 trillion | ~284 billion |
| Activated parameters per inference | ~49 billion | ~13 billion |
| Network layers | 61 | Not specified in source |
| Native context length | 1 million tokens | 1 million tokens |
| Typical scenarios | Complex reasoning, deep code generation | High-concurrency, low-latency real-time interaction |
The Pro version has a large total parameter count but activates only about 3% of its parameters per inference, so its compute volume is far below what the total parameter scale might suggest. The Flash version has fewer parameters and fewer activated parameters, resulting in lower per-inference cost and making it suitable for services sensitive to latency and unit price.
“Native support for 1 million tokens” refers to the model’s context window length. How much text the window can hold is a different question from whether the model can accurately use every piece of information within it. Detail retrieval precision, memory usage, and inference latency in long documents all change as context length grows. Selection should be based on tests with your own data, not only on the upper limit of the window.
3. The Idea Behind Hierarchical Hybrid Attention
Standard self-attention computes the relevance between each token and all tokens in the context. Compute grows quadratically with sequence length, denoted as O(n²). When sequences reach the million-token level, both compute and memory usage expand rapidly.
The series uses hierarchical hybrid attention, splitting the task into two steps. The first step is global skimming: every 128 tokens are compressed into one topic unit, and the full text is scanned quickly to locate potentially relevant passages. The second step is local close reading: every 4 tokens are compressed into one summary unit, and fine-grained computation is performed only within the selected passages. After combining the two steps, the sequence length directly involved in attention computation is significantly reduced.
The 4 and 128 above are the compression granularities given in the source. Whether they are optimal across different tasks needs to be confirmed through experiments.
The source also gives relative compute and memory reductions compared with the previous generation, but it does not specify the comparison baseline, sequence length, hardware platform, or measurement method. Without these conditions, the percentages cannot be directly cited or compared, so this article does not use specific numbers.
The pseudocode below is only intended to illustrate the flow and cannot be run directly. Here, query is the user question and local_threshold is the switching threshold; the source does not give its value.
def hybrid_attention(tokens, query, local_threshold):if len(tokens) <= local_threshold:return standard_attention(tokens, query)# 1. Global skimming: compress every 128 tokens into a topic unittopic_units = compress(tokens, block_size=128)# 2. Retrieve relevant passages based on the queryselected_blocks = retrieve(topic_units, query)# 3. Local close reading: compress every 4 tokens into a summary unitdetail_units = compress(selected_blocks, block_size=4)return generate(detail_units, query)
4. Muon Optimizer: How It Differs from Adam
The optimizer determines how parameters are updated during training. Adam maintains first-order and second-order moments for each parameter and adaptively adjusts the learning rate accordingly. It is widely used and is a common default choice in the industry.
Muon takes a different approach. For two-dimensional weight matrices in neural networks, Muon first accumulates momentum and then approximately orthogonalizes the update matrix, making the singular directions of the update more uniform and preventing a few directions from dominating the update. Orthogonalization is usually approximated through Newton-Schulz iteration. In practice, Muon is generally used only for two-dimensional weight matrices, while embedding layers, normalization layers, and other parameters are still updated by Adam-like optimizers.
The source argues that Adam causes update direction coupling in ultra-large-scale training, which in turn leads to loss oscillation, and summarizes Muon as allowing each parameter to adjust independently. The latter statement does not match Muon’s actual mechanism, so this article does not adopt it. The former is a view from the source, and the source does not provide training comparison data for this model. Whether Muon can stably support ultra-large MoE training requires examining the loss curves and ablation experiments in the official report. Expert routing and load balancing in MoE training also affect stability; the optimizer alone cannot determine the overall effect.
5. Heterogeneous Compute Adaptation: Progress and Boundaries
The source mentions that the team extended optimization and validation work to a domestically developed NPU and its software stack. This has practical significance for reducing dependence on a single hardware ecosystem. Large models have previously been optimized mainly around specific international GPUs and the CUDA ecosystem, while cross-platform adaptation requires operator rewriting, graph compilation, communication library adjustments, and numerical precision alignment.
The source does not provide the software versions used for adaptation, the validation tasks, the conditions for performance comparison, or data on the supply of domestically developed chips. Therefore, “adaptation” in this article refers only to the validation work described in the source and does not mean that all scenarios can achieve equivalent performance. When evaluating it, consider the following:
- Whether the target chip and software stack versions match the official documentation;
- The throughput, latency, and precision comparison baselines for training and inference;
- Memory and communication overhead in long-context scenarios;
- Whether third parties can reproduce key results.
Heterogeneous compute instances offered by cloud platforms can serve as test resources for cross-platform deployment. Whether to adopt them depends on cost, availability, and data compliance requirements.
6. Pre-Deployment Checklist
- Test retrieval and question answering with your own long documents, record the recall rate of key information, and observe whether missed detections occur in the middle of documents.
- Stress test at the target concurrency level, and record time to first token, throughput, and peak memory usage.
- Compare Pro and Flash on quality and per-call cost for your own tasks, and decide whether routing by request difficulty is needed.
- Check the parameters, training setup, and evaluation conditions in the official technical report, and distinguish confirmed information from speculation.
- When processing long text inputs, pay attention to the truncation strategy and place key instructions in clear positions.
7. Conclusion
The model series considers ultra-long context and cost control as parts of the same engineering problem. The division of labor between the two versions, the compression approach of hierarchical attention, and the application of the Muon optimizer are all worth attention. However, many numbers in the currently public materials lack baselines and measurement definitions, and details of the domestically developed compute adaptation still need to be supplemented. Readers should treat the conclusions in this article as directions for validation and complete testing on their own data and hardware before making decisions.
