320B Sparse MoE Model: Technical Breakdown of How It Approaches Frontier Closed-Source Models
This technical breakdown covers a sparse Mixture-of-Experts (MoE) model with 320B total parameters and 18B active parameters. It explains the model's anonymous testing period and key specifications, including its 1M-token context window. It also examines the trade-offs of sparse MoE, the hybrid attention design for long context, native multimodal support, configurable thinking budgets, and results on coding and agent benchmarks. The article closes with deployment considerations for capacity planning, long-context management, and compliance and security.
1. Behind the Buzz: Why Anonymous Testing Drew Attention
Public reports indicate that a sparse MoE model at the 320B scale was tested anonymously on several open model routing platforms and AI coding tools before its official launch. During the testing period, it quickly became one of the most popular models of the week, and its call volume reached a new high on the relevant platforms. Its traffic was served on domestic AI compute in China. After the official release, the model’s core specifications became public: 320B total parameters, 18B active parameters, native multimodal support, a 1,048,576-token context window, and a permissive open-source license with open weights. The base model was trained from scratch on roughly 30T tokens of pretraining data.
These specifications are worth examining not because the parameter count is large, but because the model aims to approach the coding and agent performance of frontier closed-source models while keeping inference activation costs lower. Public materials report a score of 57 on a public intelligence index, which places the model in the global frontier range, on par with a leading closed-source frontier model. Its performance on an in-house coding benchmark is reported as comparable, and its pricing is about one-tenth of its predecessor’s. The testing period also disclosed several task results:
| Task Category | This Model | Predecessor | Frontier Closed-Source Reference |
|---|---|---|---|
| Terminal task benchmark | 84.3 | — | About 85.0 |
| Software engineering benchmark | 63.4 | 46.2 | — |
| Automation task benchmark | 48.8 | — | — |
| Tool-calling composite benchmark | 78.4 | — | — |
These numbers should be read with care. Benchmarks measure capability on a specific task distribution and do not directly predict production performance. Still, they point to a clear trend. When sparse MoE, hybrid attention, long context, and inference budget control are combined, models with a smaller active parameter count can noticeably narrow the gap with frontier closed-source models on high-value tasks.
2. 320B Total Parameters and 18B Active Parameters: The Trade-offs of Sparse MoE
The core idea of sparse MoE is to decouple total parameter capacity from the compute required per token. The model holds 320B parameters in total, but each token activates only about 18B of them. The model stores knowledge in a large pool of experts. A router then selects a small number of experts for each token, so inference costs stay close to those of an 18B dense model.
The basic computation can be expressed as follows:
gates = router(token)topk_experts, weights = select_topk(gates, k)output = sum(weight_i * expert_i(token) for i in topk_experts)
This design offers three benefits. First, a larger set of experts can hold more knowledge and support a wider range of capabilities. Second, the compute per token is bounded by the active parameter count, so inference throughput is more predictable. Third, experts can specialize by task or modality, which creates finer capability partitions for coding, image understanding, and tool calling.
The costs are also clear. Even when stored at low precision, 320B parameters require hundreds of GB of GPU or host memory. Expert parallelism introduces cross-device communication. Imbalanced routing can overload popular experts. In batched processing, tokens routed to different experts reduce hardware utilization. As a result, the engineering challenge of sparse MoE lies less in whether the model can run and more in whether it can serve large-scale online traffic stably, efficiently, and cheaply. Compared with a larger model of roughly 744B total parameters and 40B active parameters, the reduction to 320B and 18B rebalances the capability ceiling, memory requirements, communication overhead, and deployment cost.
3. 3:1 Hybrid Attention: A Cost-Effective Approach to Long Context
With standard full attention, a 1M-token context window would cause the KV cache and attention computation to grow rapidly. The model uses a hybrid attention design at a ratio of roughly 3:1. About 34 layers use a linear attention variant, and about 11 layers use multi-head latent attention or sparse attention. Linear attention compresses long context efficiently and lowers compute and cache costs. A small number of latent or sparse attention layers preserve precise long-range recall.
The layer routing can be expressed in pseudocode:
for layer in model.layers:if layer.type == "linear":x, state = linear_attention(x, state)else:x = sparse_or_latent_attention(x, topk_indices)
Linear attention reduces the quadratic cost along the sequence dimension to roughly linear, compressing history through a recurrent state or kernel approximation. Its weakness is weak precise recall, so key details in long documents may be lost during compression. Sparse attention performs exact interactions on a subset of tokens or latent representations. This preserves recall over long distances but costs more. In the hybrid design, most layers take the low-cost path, while a few layers handle exact retrieval. This balances throughput and accuracy in long-context scenarios. Public data reports that, compared with the predecessor, attention computation is reduced by about 3x and KV cache size is reduced by about 4.4x.
For engineering teams, long-context serving cannot be judged by window size alone. Cache management matters just as much. Paged attention, prefix cache reuse, segment summarization, retrieval augmentation, and cache eviction policies need to work together. Without them, a 1M-token window still brings high memory usage and high time-to-first-token latency.
