MeeDoo-OnE: A 1.8-Trillion-Parameter Multimodal Mixture-of-Experts LLM
A deep technical dive into MeeDoo-OnE, a 1.8 trillion parameter mixture-of-experts large language model with 2M token context, native multimodality, and specialized code experts.
Abstract
MeeDoo-OnE is a 1.8-trillion-parameter multimodal mixture-of-experts (MoE) large language model designed and trained entirely in Europe. It combines a massive sparse parameter count with efficient per-token activation, yielding frontier-level quality at a fraction of the inference cost of equivalent dense models. With a 2-million-token context window, native vision and audio understanding, and dedicated code-specialized experts, MeeDoo-OnE positions itself as a sovereign alternative to US frontier models. This article provides a comprehensive architectural overview, covering the MoE routing design, parameter breakdown, code expert specialization, multi-token prediction, and the specific deviations from and similarities to DeepSeek-V3.
Architecture at a Glance
The model is built as a decoder-only transformer with grouped query attention (GQA), mixture-of-experts feed-forward layers, and a multi-token prediction (MTP) head. The following table summarizes the core hyperparameters.
| Parameter | Value |
|---|---|
| Total Parameters | 1.79T |
| Active Parameters per Token | 456B |
| Number of Layers | 84 |
| Number of Experts | 48 (routed) + 2 (shared) |
| Top-k Routing | top-12 |
| Attention | GQA (56 query heads, 8 KV heads) |
| Hidden Dimension | 7168 |
| Intermediate Dimension (per expert) | 20480 |
| Head Dimension | 128 |
| Vocabulary Size | 128256 |
| Context Length | 2,097,152 (2M tokens) |
MoE Design: Grouped Top-k Routing
MeeDoo-OnE adopts the grouped top-k routing strategy popularized by DeepSeek-V3. Rather than selecting experts from a flat pool of 48, the experts are partitioned into groups, and routing operates at two levels: first selecting expert groups, then selecting individual experts within those groups. This hierarchical routing reduces the routing decision space and improves load balancing without sacrificing specialization.
A critical design choice is the inclusion of shared experts that are always active for every token. These shared experts capture common knowledge that every token needs, freeing the routed experts to specialize on narrower, more diverse patterns. In MeeDoo-OnE, 2 shared experts (implemented as 2 SwiGLU blocks) are always active alongside the 12 routed experts selected for each token.
Load balancing is maintained through two auxiliary losses:
- Auxiliary loss (weight 0.001): encourages uniform expert utilization by penalizing the divergence between expert assignment probabilities and expert importance scores.
- Z-loss (weight 0.0001): regularizes the router logits to prevent large magnitude values, stabilizing training and preventing router collapse.
The router computes per-expert affinity scores, applies a softmax over each group, and selects the top-12 experts. The gating weights are multiplied with expert outputs and summed. The full routing computation is as follows:
# Grouped top-k routing (DeepSeek-V3 style)
# 48 experts partitioned into 8 groups of 6
scores = router(hidden_states) # [batch, seq, 48]
group_scores = scores.view(batch, seq, 8, 6).softmax(dim=-1)
expert_scores = scores.softmax(dim=-1)
# Select top-12 experts across all groups
topk_vals, topk_idx = expert_scores.topk(12, dim=-1)
topk_weights = topk_vals / topk_vals.sum(dim=-1, keepdim=True)
# Shared expert always active
shared_output = shared_expert(hidden_states)
# Routed expert output
routed_output = sum(
topk_weights[..., i:i+1] * experts[topk_idx[..., i]](hidden_states)
for i in range(12)
)
output = routed_output + shared_output
Parameter Breakdown
Understanding where parameters are allocated is essential for grasping both the model capacity and its inference characteristics. The vast majority of parameters reside in the MoE expert layers, while the active parameter count per token remains manageable.
| Component | Total Parameters | Active per Token |
|---|---|---|
| Embeddings | 0.92B | 0.92B |
| LM Head (tied) | 0.92B | 0.92B |
| Attention Layers | 9.87B | 9.87B |
| MoE Routed Experts (48) | 1775.70B | 443.93B (top-12) |
| Shared Experts (2) | 17.18B | 17.18B |
| Total | 1787.43B (~1.79T) | 455.63B (~456B) |
The key insight is that while 1.79T parameters are stored in memory, only ~456B are activated for any single token. This 3.9x sparsity ratio is what makes the model efficient: inference cost scales with active parameters, not total parameters, while model capacity scales with total parameters.
Active Parameters Per Token
For any given forward pass, the model activates the following components:
- Embeddings: 0.92B — the input embedding lookup for the current token
- LM Head: 0.92B — the output projection (weight-tied with embeddings)
- Attention: 9.87B — GQA attention across all 84 layers (56 query heads, 8 KV heads)
- Routed Experts: 443.93B — the top-12 experts selected by the router, across all layers
- Shared Experts: 17.18B — the 2 always-active shared experts across all layers
Summing these yields 455.63B active parameters, which determines the FLOPs per token and the memory bandwidth requirements during inference.
Code-Specialized Experts
One of the most distinctive features of MeeDoo-OnE is the dedication of 8 out of 48 routed experts specifically to code and programming tasks. This design choice reflects the observation that code generation and understanding require fundamentally different reasoning patterns than natural language, and specialized experts can dramatically improve performance on code benchmarks without degrading general capabilities.
The code expert specialization is implemented through several mechanisms:
- Routing bias: a +2.0 bias is added to the router logits for code-specialized experts when the current token falls within a code region. This ensures code tokens are preferentially routed to code experts without hard enforcement.
- Automatic code detection: the model uses
<code>and</code>special tokens to delimit code regions. When the token position falls between these delimiters, the routing bias is applied. - Training data composition: 35% of training tokens come from code, spanning 78+ programming languages. This ensures code experts have sufficient data to specialize effectively.
- Fill-in-the-Middle (FIM) training: 50% of code training examples use FIM format, where the model must predict code in the middle of a file given both prefix and suffix context. This is critical for practical IDE integration.
The routing bias mechanism is surprisingly elegant. Rather than hard-routing code tokens to code experts (which would defeat the purpose of learned routing), the bias simply shifts the probability distribution. If a code expert genuinely has the best affinity for a token, the bias ensures it is selected. If a general expert is better, the softmax can still overcome the bias. This soft approach preserves routing flexibility while strongly encouraging code specialization.
Comparison with DeepSeek-V3
MeeDoo-OnE draws heavy inspiration from DeepSeek-V3 but introduces several key innovations. The following table highlights what is shared and what differs.
| Feature | DeepSeek-V3 | MeeDoo-OnE | Same / Different |
|---|---|---|---|
| Grouped top-k routing | Yes | Yes | Same |
| Shared expert | Yes (1) | Yes (2) | Same (concept) |
| Attention mechanism | MLA (Multi-head Latent Attention) | GQA (Grouped-Query Attention) | Different |
| Code-specialized experts | No | Yes (8/48) | Different |
| Sliding window attention | No | Yes (128K window + sinks) | Different |
| Multimodal inputs | No | Yes (vision + audio + speech) | Different |
| FIM tokens | No | Yes (prefix, middle, suffix, FIM start) | Different |
| Repo context tokens | No | Yes (repo start, repo end) | Different |
| MTP head | Yes | Yes | Same |
| Context length | 128K | 2M | Different |
Multi-Token Prediction (MTP)
MeeDoo-OnE includes a Multi-Token Prediction head, a lightweight auxiliary module that predicts multiple future tokens in a single forward pass. During training, the MTP head is trained to predict the next 2-3 tokens given the current hidden state, providing a richer learning signal that improves the quality of the main model. During inference, the MTP head serves as a built-in draft model for speculative decoding: it proposes candidate tokens that are verified by the main model in a single forward pass, yielding 2-3x inference speedup without any quality degradation.
The MTP head is a single transformer layer that takes the main model hidden state and produces a probability distribution over the vocabulary for the next token, then iteratively predicts additional tokens. Because it shares the backbone hidden states, it adds minimal overhead during inference.
Post-Norm Architecture
Unlike the pre-norm pattern used in most modern LLMs (where RMSNorm is applied before attention and feed-forward), MeeDoo-OnE uses a post-norm pattern with 4 normalization points per layer:
- input_norm: normalizes the input to the attention block
- post_attn_norm: normalizes the attention output before the residual addition
- pre_moe_norm: normalizes the input to the MoE layer
- post_moe_norm: normalizes the MoE output before the residual addition
This 4-norm pattern provides finer control over the magnitude of activations and gradients, which is particularly important at the 1.8T parameter scale where training stability is a primary concern. The additional normalization points prevent activation magnitude drift through the deep 84-layer stack.
YaRN RoPE Scaling
To achieve the 2M token context window, MeeDoo-OnE uses YaRN (Yet another RoPE extensioN) scaling on top of Rotary Position Embeddings (RoPE). The specific YaRN configuration is:
| Parameter | Value |
|---|---|
| rope_theta (base frequency) | 500,000 |
| Scaling factor | 256 (extends 8K to 2M) |
| mscale (attention scaling) | 0.707 (1/sqrt(256)) |
| beta_fast | 32 |
| beta_slow | 1.0 |
YaRN operates by dividing RoPE frequency dimensions into three bands: low frequencies use extrapolation (no scaling), high frequencies use interpolation (full scaling), and a transition band smoothly blends between the two. The beta_fast and beta_slow parameters control the boundaries of these bands. The mscale factor of 0.707 (= 1/sqrt(256)) corrects the attention temperature, which would otherwise increase with the scaling factor, causing attention to become too diffuse over long sequences.
The very high base frequency of 500,000 ensures that even the lowest-frequency RoPE dimensions have sufficient resolution to distinguish positions across the 2M token range. Without this high base, long-range positional signals would alias and degrade.
Conclusion
MeeDoo-OnE represents a carefully engineered frontier model that pushes the boundaries of what is possible with mixture-of-experts architectures. At 1.8T total parameters with only 456B active per token, it achieves the capacity of a massive dense model at a fraction of the inference cost. The 2M token context window, enabled by sliding window attention, YaRN scaling, and GQA, allows the model to process entire codebases, long documents, and extended conversations in a single pass. The 8 code-specialized experts with routing bias and FIM training make it a powerful tool for software engineering tasks. Native multimodality through SigLIP vision and Whisper audio encoders eliminates the need for external adapters.
Most importantly, MeeDoo-OnE is a European model, trained on European infrastructure, designed to provide sovereign AI capabilities that do not depend on US cloud providers or frontier model APIs. It demonstrates that cutting-edge AI research and engineering are not confined to a handful of US companies, and that open, transparent architectural documentation can coexist with frontier-level performance.