archdb

LLM architectures and pretraining recipes, with sources.

Kimi-K2.5

Moonshot AI · reasoning checkpoint

No base checkpoint is public; facts describe the released post-trained checkpoint.

Open in the comparison table Hugging Face ↗ Paper ↗

KV calculations use one sequence at 131,072 tokens and 16-bit cache elements. They include bounded sliding-window caches. This is retained cache payload, not peak prefill memory. The comparison table also offers sourced mixed-precision layouts, including quantization scales.

Release

Released

2026-01-27

Source: blog · kimi.com blog index (Wayback 2026-08-17); Kimi K2.5 entry
Kimi K2.5 2026-01-27

Date the weights (or, if earlier, the technical report) were first made public, YYYY-MM-DD, as dated by the publisher. A Hugging Face repository creation date is used only when no dated publisher page exists, with a note.

License

other (modified-mit)

Source: model-card · README.md; YAML front matter
license_name: modified-mit

License of the released weights as declared by the publisher (model card metadata or license file), e.g. apache-2.0, mit, or the name of a custom license.

Input modalities

text + image + video

Source: model-card · §6 Model Usage; Chat Completion with visual content
K2.5 supports Image and Video input.

Input modalities of the released checkpoint as the publisher states them, from: text, image, video, audio, joined with ' + ' in that order ("text", "text + image + video").

Parameters

Total params

1T parameters

Source: model-card · README.md; 2. Model Summary
Total Parameters | 1T

Total parameter count as reported by the publisher. See params.note for whether embeddings, MTP heads or vision towers are included.

Active params

32B parameters

Source: model-card · README.md; 2. Model Summary
Activated Parameters | 32B

Parameters used per token in the forward pass, as reported by the publisher.

Active non-embedding (stated)

Not disclosed

Active parameters excluding the input embedding and the output head (unembedding). Stated by the publisher, or computed from params.active by subtracting vocab × d_model for each of the embedding and output head that params.active is stated to include (basis inferred, note with the arithmetic). Not disclosed when the scope of params.active is not stated.

Counted total params

1.026T parameters

Calculated: embedding + output head + all experts + other weights, moonshotai/Kimi-K2.5@4d01dfe safetensors headers; reproduces stated total (backbone) and active (with output head)

Parameters of the text backbone counted from the released checkpoint's safetensors headers (embedding, output head, all experts and other weights; excluding MTP modules, vision/audio towers and n-gram lookup tables). Shown only when the counts reproduce the publisher's stated total and active parameters within 5% under some scope.

Counted embedding + head

2.349B parameters

Calculated: input embedding + output head, moonshotai/Kimi-K2.5@4d01dfe safetensors headers

Input embedding plus output head (once if tied), counted from the checkpoint.

Non-emb. params (counted)

1.024T parameters

Calculated: dense + routed backbone weights; excludes input embedding, output head, lookup tables, MTP and other modalities, moonshotai/Kimi-K2.5@4d01dfe safetensors headers; reproduces stated total (backbone) and active (with output head)

Language backbone weights excluding input embeddings, output head, lookup/Engram tables, MTP modules and vision/audio towers. Equals params.counted_total minus params.counted_embedding. Same validation as params.counted_total.

Largest layer (counted)

17.06B parameters

Calculated: max(sum of dense and routed weights sharing a full layers.<index> tensor path), all experts included, moonshotai/Kimi-K2.5@4d01dfe safetensors headers

Largest group of language-backbone weights sharing a full layers.<index> tensor path, including every routed expert. Excludes lookup/Engram tables, embeddings, output head, MTP and other modalities. Hybrid checkpoints may store mixers and FFNs as separate layers. All-gather volume also depends on wrapping, sharding and dtype.

Active non-emb. (counted)

30.51B parameters

Calculated: non-expert weights + routed experts × 8/384, excluding embedding and output head, moonshotai/Kimi-K2.5@4d01dfe safetensors headers; reproduces stated total (backbone) and active (with output head)

Active parameters per token excluding the input embedding and output head, counted from the checkpoint as all non-expert weights plus routed-expert weights × top_k / experts. Same validation as params.counted_total.

Counting scope

Rounded card figures; whether they include the 400M MoonViT encoder is not stated.

Source: model-card · README.md; 2. Model Summary
Parameters of Vision Encoder | 400M

What the publisher's counts include or exclude (MTP modules, embeddings, vision encoder, n-gram tables).

Shape

Layers

61

Source: config · /text_config/num_hidden_layers

Number of transformer blocks in the main backbone (attention or token mixer plus FFN), excluding MTP modules.

d_model

7,168

Source: config · /text_config/hidden_size

Residual stream width.

Vocab

163,840

Source: config · /text_config/vocab_size

Embedding table rows (vocab_size in config, may include padding).

Tied embeddings

No

Source: config · /text_config/tie_word_embeddings

Input embedding and output head share weights.

d_model / layers

117.508

Calculated: d_model / layers

Width-to-depth ratio, d_model divided by the number of blocks.

Attention

Token mixers

MLA

Source: model-card · README.md; 2. Model Summary
Attention Mechanism | MLA

Token-mixing layer types in the backbone, e.g. GQA, MLA, SWA, Gated DeltaNet, Mamba-2, DSA (DeepSeek sparse attention).

Layer layout

61 MLA

Source: model-card · README.md; 2. Model Summary
Number of Layers (Dense layer included) | 61

Token-mixer order, summarized as a pattern or layer positions. The fact's optional sequence lists each mixer in order; a ratio alone does not establish the order. Auxiliary prediction modules and standalone FFNs are excluded.

Global-attention layers

61

Source: config · /text_config/num_hidden_layers

Layers whose KV cache grows with full context (dense or sparse global attention, MLA). Excludes sliding-window and linear/recurrent layers.

Query heads

64

Source: config · /text_config/num_attention_heads

Query heads in the global-attention layers.

Heads × head dim

12,288

Calculated: heads × head_dim

attn.heads × attn.head_dim, the query projection width of global layers.

QK head dim

192

Source: config · /text_config/qk_nope_head_dim + /text_config/qk_rope_head_dim

Query/key dimension per head in global-attention layers (for MLA, nope + rope dims).

V head dim

128

Source: config · /text_config/v_head_dim

Value dimension per head in global layers (MLA v_head_dim; stated for MLA even when equal to the QK head dim).

MLA KV latent

512

Source: config · /text_config/kv_lora_rank

Width of the compressed KV latent that MLA caches per token per layer.

MLA Q latent

1,536

Source: config · /text_config/q_lora_rank

Width of the low-rank query projection in MLA; 0 when queries use a full-rank projection.

Decoupled RoPE dim

64

Source: config · /text_config/qk_rope_head_dim

Width of the shared positional key that MLA caches next to the latent.

Positional encoding

partial RoPE (MLA decoupled, 64 of 192 QK dims)

Source: code · modeling_deepseek.py; DeepseekV3Attention.forward
q_pe, k_pe = apply_rotary_pos_emb(q_pe, k_pe, cos, sin, position_ids)

Positional scheme in global layers: RoPE, partial RoPE, NoPE, or mixed per layer type.

RoPE base

50,000

Source: config · /text_config/rope_theta

RoPE base frequency of the global layers at release.

QK norm

No

Source: code · modeling_deepseek.py; DeepseekV3Attention.forward
q = self.q_b_proj(self.q_a_layernorm(self.q_a_proj(hidden_states)))

RMSNorm only on the Q and KV latents before up-projection; no per-head Q/K norm.

Queries and keys are normalized per head before the dot product.

QKV bias

No

Source: config · /text_config/attention_bias

Query/key/value projections have bias terms.

Feed-forward

Activation

SwiGLU

Source: code · modeling_deepseek.py; DeepseekV3MLP.forward
self.act_fn(self.gate_proj(x)) * self.up_proj(x))

act_fn is SiLU (config /text_config/hidden_act).

FFN activation (SwiGLU, GeGLU, ...).

Dense FFN dim

18,432

Source: config · /text_config/intermediate_size

Intermediate width of the dense FFN layers that are actually executed.

Dense FFN / d_model

2.57143

Calculated: ffn.dim / d_model

ffn.dim divided by shape.d_model.

Mixture of experts

Routed experts

384

Source: config · /text_config/n_routed_experts

Routed experts per MoE layer.

Experts per token

8

Source: config · /text_config/num_experts_per_tok

Routed experts selected per token.

Shared experts

1

Source: config · /text_config/n_shared_experts

Always-on experts per MoE layer.

Expert dim

2,048

Source: config · /text_config/moe_intermediate_size

Intermediate width of one routed expert.

Shared expert dim

2,048

Inferred from the source; see the explanation below.

Source: code · modeling_deepseek.py; DeepseekV3MoE.__init__
intermediate_size = config.moe_intermediate_size * config.n_shared_experts

2048 × 1 shared expert.

Total intermediate width of the shared expert(s).

Leading dense layers

1

Source: config · /text_config/first_k_dense_replace

moe_layer_freq = 1.

Number of initial blocks that use a dense FFN instead of MoE.

Router score

sigmoid

Source: config · /text_config/scoring_func

Gating function over expert logits (softmax, sigmoid).

Load balancing

aux-loss-free selection bias (e_score_correction_bias added to sigmoid scores for top-k only)

Source: code · modeling_deepseek.py; MoEGate.forward
bsz * seq_len, -1) + self.e_score_correction_bias.unsqueeze(0)

config topk_method = noaux_tc; the report does not describe the bias update rule or any auxiliary loss.

Load-balancing method, with coefficients where disclosed.

Routed scaling factor

2.827

Source: config · /text_config/routed_scaling_factor

Multiplier applied to the combined routed-expert output (routed_scaling_factor).

Renormalize top-k

Yes

Source: config · /text_config/norm_topk_prob

Selected expert weights are renormalized to sum to 1.

Group-limited routing

none

Source: config · config.json text_config.n_group, topk_group
"n_group": 1,

n_group = topk_group = 1.

Expert groups and groups selected per token, or node-limited routing, when used.

Expert dim / d_model

0.285714

Calculated: moe.expert_dim / d_model

moe.expert_dim divided by shape.d_model.

Sparsity (experts / top-k)

48

Calculated: experts / top_k

Routed experts divided by experts selected per token.

Active / total

0.032

Calculated: params.active / params.total

params.active divided by params.total.

Multi-token prediction

MTP depth

Not disclosed

Additional future tokens predicted during pretraining (0 when the model was trained without MTP).

MTP weights released

No

Source: config · /weight_map | has eh_proj

Backbone layers 0–60 only; config /text_config/num_nextn_predict_layers 0.

The released checkpoint contains the MTP module weights.

Normalization and stability

Norm

RMSNorm

Source: code · modeling_deepseek.py; DeepseekV3DecoderLayer.__init__
self.input_layernorm = DeepseekV3RMSNorm(

Normalization layer type in the blocks.

Norm placement

pre

Source: code · modeling_deepseek.py; DeepseekV3DecoderLayer.forward
hidden_states = self.input_layernorm(hidden_states)

Pre-norm, post-norm, or sandwich (pre and post).

Norm epsilon

1e-05

Source: config · /text_config/rms_norm_eps

Epsilon of the block normalization layers.

Context length

Pretraining context

4.096K tokens

Source: paper · p.8 §4.3
The joint pre-training stage continues from a near-end Kimi K2 checkpoint over additional 15T vision-text tokens at 4K sequence length.

Sequence length of the main pretraining stage.

Trained context

262.1K tokens

Source: paper · p.7 Table 3
32768→262144

Longest sequence length trained on after context extension.

Advertised context

262.1K tokens

Source: config · /text_config/max_position_embeddings

Longest context the publisher says the model supports, possibly beyond trained length via RoPE scaling.

Extension method

YaRN, 32K → 256K during long-context mid-training (500B → 200B tokens)

Source: paper · p.8 §4.3
sequentially extending context length via YaRN

Release rope_scaling: type yarn, factor 64 over original_max_position_embeddings 4096, beta_fast 32, beta_slow 1, mscale = mscale_all_dim = 1.

How context was extended (stages, RoPE base change, YaRN factor).

Pretraining recipe

Pretraining tokens

15T tokens

Source: paper · p.8 §4.3
over additional 15T vision-text tokens at 4K sequence length.

Joint continued-pretraining tokens on top of Kimi K2; excludes the 1T ViT-only stage and the 500B→200B long-context mid-training.

Tokens seen in pretraining including annealing and context extension, as reported.

Optimizer

Not disclosed

Optimizer used for the bulk of parameters.

Peak LR

Not disclosed

Peak learning rate of the main pretraining stage.

Final LR

Not disclosed

Learning rate at the end of the decay.

LR schedule

Not disclosed

Learning-rate schedule shape with phase boundaries.

Warmup

Not disclosed

Warmup length in steps or tokens.

Batch size

Not disclosed

Global batch size, including any batch-size ramp: sequences × sequence length (token total), or the token total alone when only that is stated.

Weight decay

Not disclosed

Decoupled weight decay coefficient.

Adam betas

Not disclosed

(beta1, beta2) of the Adam-family optimizer or its AdamW fallback.

Grad clip

Not disclosed

Global gradient-norm clipping threshold.

Training precision

Not disclosed

Matmul precision of pretraining (BF16, FP8 recipe, NVFP4 recipe) with the scaling granularity where disclosed. Never inferred from the released checkpoint dtype.

Initialization

Language model continued from a near-end Kimi K2 checkpoint; MoonViT-3D from SigLIP-SO-400M

Source: paper · p.8 §4.3
The joint pre-training stage continues from a near-end Kimi K2 checkpoint

Weight initialization (std or scheme) as stated by the publisher; config initializer_range alone is not evidence.

Extra objectives

Joint vision-text next-token prediction with a constant vision ratio from the start of continued pretraining

Source: paper · p.2 §1
K2.5 mixes text and vision tokens with a constant ratio throughout the entire training process.

The production vision:text ratio is not disclosed.

Objectives beyond next-token prediction and MTP (fill-in-the-middle rate, distillation, multimodal tokens from the start).

Data mix

Kimi K2 distribution extended with new unique tokens, higher coding weight and per-source epoch caps, plus interleaved image, video and OS-screenshot data

Source: paper · p.8 §4.3
The data recipe extends Kimi K2’s pre-training distribution by introducing unique tokens, adjusting data proportions with increased weight on coding-related content, and controlling maximum epochs per data source.

Joint pre-training data types from Table 3 (p.7).

Pretraining data composition as disclosed (domain shares, synthetic fraction, repetition).

Hardware

NVIDIA H800, 8×400 Gbps RoCE between nodes

Source: paper · App. C
Kimi K2.5 is trained on NVIDIA H800 GPU clusters with 8×400 Gbps RoCE interconnects across nodes.

Accelerators used for pretraining, count and duration where stated.

Accelerators

H800

Source: paper · App. C
Kimi K2.5 is trained on NVIDIA H800 GPU clusters with 8×400 Gbps RoCE interconnects across nodes.

Count not stated.

Accelerator count and type for the main pretraining run, as the count with thousands separators and the chip's short name ("2,048 H800", "2,048 GH200"). A stated range or bound stays as stated ("2,048–4,096 GH200").

Parallelism

PP16 · VPP · EP16 · ZeRO-1 DP

Inferred from the source; see the explanation below.

Source: paper · p.10 §4.5.1
K2.5 seamlessly inherits the parallel strategy of K2

Degrees are Kimi K2's (K2 report §2.4.2: 16-way PP with virtual stages, 16-way EP, ZeRO-1 DP); the vision encoder is replicated on all GPUs.

Parallelism layout of the main pretraining run as stated, as degree-annotated terms in the order TP, PP, VPP, EP, CP, DP ("PP16 · EP64 · ZeRO-1 DP"); a term without a stated degree has none ("FSDP").

Stages
  • vit

    Tokens
    1000000000000
    Seq len
    4096
    Source: paper · p.7 Table 3; p.7–8 §4.3
    consuming about 1T tokens with very few training FLOPs.

    MoonViT-3D only, caption loss aligned to Moonlight-16B-A3B; then a short projector-only stage.

  • joint

    Tokens
    15000000000000
    Seq len
    4096
    Source: paper · p.7 Table 3; p.7–8 §4.3
    over additional 15T vision-text tokens at 4K sequence length.

    ViT and LLM trained.

  • long-context

    Seq len
    262144
    Source: paper · p.7 Table 3; p.7–8 §4.3
    500B→200B

    Two phases, 500B tokens at 32K then 200B at 256K; high-quality text, multimodal, long text, long video, reasoning and long-CoT data.

Source: paper · p.7 Table 3; p.7–8 §4.3

Ordered pretraining stages. Each item: name, tokens, seq_len, lr, batch_tokens, batch_sequences, steps, note, quote, and source when it differs from the fact's source.

Scaling & HP transfer

Tokens / param

15

Calculated: train.tokens / params.total

train.tokens divided by params.total.

Tokens / active param (non-embedding)

491.599

Calculated: train.tokens / params.counted_active_non_embedding

train.tokens divided by params.counted_active_non_embedding, or by the stated params.active_non_embedding when there is no validated checkpoint count.

KV cache

KV bytes / token

70,272 bytes

Calculated: kv.bytes_at_context / 131072 tokens; uniform BF16, payload only; quantization overhead excluded. Global KV: 61 × (576 × 16/8) B/entry

Retained KV cache divided by context length, including bounded SWA caches and indexer keys. Exports use uniform BF16 at 131,072 tokens. The website can select uniform payload precision (no quantization overhead) or sourced component formats (including scales and documented padding). This is cache payload, not peak prefill memory or persistent prefix storage.

Global KV bytes / token

70,272 bytes

Calculated: 70272 B / 1 tokens (Global KV); uniform BF16, payload only; quantization overhead excluded. Global KV: 61 × (576 × 16/8) B/entry

Long-context global KV bytes per token, including indexer keys; excludes bounded SWA caches. Compression rates and cross-layer cache reuse are included. Exports use uniform BF16; the website's storage selector also applies here. This is the field to compare with global-KV figures in reports, using the matching storage recipe.

KV bytes / token / B active

2,196 bytes

Calculated: kv.bytes_per_token (131072 tokens) / (params.active / 1e9); uniform BF16, payload only; quantization overhead excluded. Global KV: 61 × (576 × 16/8) B/entry

kv.bytes_per_token divided by active parameters in billions (131,072 tokens in exports).

KV at context / B active

287,834,112 bytes

Calculated: kv.bytes_at_context (131072 tokens) / (params.active / 1e9); uniform BF16, payload only; quantization overhead excluded. Global KV: 61 × (576 × 16/8) B/entry

kv.bytes_at_context divided by active parameters in billions (131,072 tokens in exports).

KV at context

9,210,691,584 bytes

Calculated: 70272 B × 131072 (Global KV); uniform BF16, payload only; quantization overhead excluded. Global KV: 61 × (576 × 16/8) B/entry

Retained KV cache for one sequence at the selected context, including SWA windows and indexer keys. Exports use uniform BF16 at 131,072 tokens. Excludes recurrent state, compressor tail state, draft/MTP caches, temporary prefill tensors, allocator metadata and persistent prefix snapshots. Does not estimate peak prefill or total serving memory.

Evaluations

AA Intelligence Index

23

Source: leaderboard · Artificial Analysis model page /models/kimi-k2-5, Wayback snapshot 2026-10-19
Kimi K2.5 (Reasoning) scores 23 on the Artificial Analysis Intelligence Index

Variant: Kimi K2.5 (Reasoning). Index v4.3.2.

Artificial Analysis Intelligence Index v4.3.2 of the post-trained model, from a dated Wayback snapshot of its Artificial Analysis page. The note names the variant (reasoning setting).

All models · Link to this model