Routed expert

Down projection

×

Map 4,096 gated features back to 7,168 features.

Ei=hW2{\htmlData{light=output down}{E_i}}={\htmlData{light=h product}{h}}W_{2}
in
hh [B batch, T positions, 4096 expert d_ff]
out
EiE_i [B batch, T positions, 7168 d]

The fused-MoE layer holds every expert’s gate and up projections as one merged weight, w13, and its down projection as w2 (layer.py 150–151), stacked over the experts; the products run inside a fused kernel chosen by device and quantization, which the atlas does not pin.

Parameters29,360,128 × 7,424 experts

29,360,128 parameters per instance.

ComponentCalculationParameters
Weight matrix4,096 × 7,16829,360,128

This projection has no bias parameter.

One in each of 7,424 experts: 128 in each of 58 MoE layers.

Sources

Direct evidence

The routed experts are created by the fused-MoE factory: each holds a merged gate–up weight (w13) and a down weight (w2), activation silu by default, and the MoE runner orchestrates routing, the experts and the shared expert.

layer.py 88–151 ↗ · vllm-project/vllm @ 5df63a7203cd

Excerpt
def FusedMoEFactory(
    num_experts: int,  # Global number of experts
    top_k: int,
    hidden_size: int,
    intermediate_size: int,
    intermediate_pad: int | None = None,
    params_dtype: torch.dtype | None = None,
    renormalize: bool = True,
    use_grouped_topk: bool = False,
    num_expert_group: int | None = None,
    topk_group: int | None = None,
    quant_config: QuantizationConfig | None = None,
    tp_size: int | None = None,
    dp_size: int | None = None,
    pcp_size: int | None = None,
    prefix: str = "",
    custom_routing_function: Callable | None = None,
    router: FusedMoERouter | None = None,
    scoring_func: str = "softmax",
    routed_scaling_factor: float = 1.0,
    swiglu_limit: float | None = None,
    swiglu_alpha: float | None = None,
    swiglu_beta: float | None = None,
    activation_situ_beta: float | None = None,
    activation_situ_linear_beta: float | None = None,
    e_score_correction_bias: torch.Tensor | None = None,
    apply_router_weight_on_input: bool = False,
    activation: str = "silu",

… lines 116–142 omitted …

    """Factory function for creating MoE execution pipeline.

    Creates and configures a complete MoE execution pipeline including:
    - Router (for token-to-expert assignment)
    - RoutedExperts (containing expert weight parameters)
    - MoERunner (orchestrates the complete forward pass)

    The experts contain both MergedColumnParallel weights (gate_up_proj/w13)
    and RowParallelLinear weights (down_proj/w2).

The checkpoint’s quantization: compressed-tensors FP8 for every Linear, weights in 128 × 128 blocks with one scale each, activations quantized dynamically in groups of 128; the token embedding, the MLA down-projections (q_a_proj and kv_a_proj_with_mqa), the routers (gate), the output head and the vision parts are left out.

params.json 31–86 ↗ · mistralai/Mistral-Large-3-675B-Instruct-2512 @ 383ffea2c7d6

Excerpt
  "quantization_config": {
    "config_groups": {
      "FP8_BLOCK": {
        "format": "float-quantized",
        "input_activations": {
          "actorder": null,
          "block_structure": null,
          "dynamic": true,
          "group_size": 128,
          "num_bits": 8,
          "observer": null,
          "observer_kwargs": {},
          "strategy": "group",
          "symmetric": true,
          "type": "float"
        },
        "output_activations": null,
        "targets": [
          "Linear"
        ],
        "weights": {
          "actorder": null,
          "block_structure": [
            128,
            128
          ],
          "dynamic": false,
          "group_size": null,
          "num_bits": 8,
          "observer": "static_minmax",
          "observer_kwargs": {},
          "strategy": "block",
          "symmetric": true,
          "type": "float"
        }
      }
    },
    "format": "float-quantized",
    "global_compression_ratio": null,
    "ignore": [
      "model.embed_tokens",
      "re:patch_merger.*",
      "re:vision_encoder.*",
      "re:vision_language_adapter.*",
      "re:.*kv_a_proj_with_mqa$",
      "re:.*q_a_proj$",
      "re:.*gate$",
      "lm_head"
    ],
    "kv_cache_scheme": null,
    "quant_method": "compressed-tensors",
    "quantization_status": "compressed",
    "sparsity_config": {},
    "transform_config": {},
    "version": "0.12.3.dev29+g73c2cf9.d20251119"
  },