Kimi · 2025-02 · Sparse MoE

Moonlight 16B

Moonlight 16B is a multi-head latent attention (MLA) transformer released by Kimi in 2025-02, with 27 layers, hidden size 2048 and a context window of 8,192 tokens.

Layer stack

Attention ×27 · Layers 27

Key facts

FamilyKimi
Released2025-02
Params15.8 B
Active2.8 B
Context8,192 tokens
AttentionMLA · kv_lora_rank 512
Layers27
Hidden2,048
Heads16
Vocab163,840
PositionRoPE
NormRMSNorm
Activationsilu
Dtypebf16
Architecture classDeepseekV3ForCausalLM

Architecture overview

t₁ t₂ t₃ t₄ input tokens Embedding · Vocab 163,840 → Hidden 2,048 Q · 16 Wᴰᴷⱽ ↓ c_KV · 512 kᴿ · RoPE 64 Wᵁᴷ/Wᵁⱽ ↑ ⊕kᴿ Attention KV cache/token ≈ 512+64 vs dense 2·2,048 → ≈ 1/7.1 Router E1 E2 E3 E4 E5 E6 E7 E8 +56… Shared expert ×2 top-6 of 64 experts · ≈ 2.8B params active per token × 27 transformer block Attention Feed-forward / MoE RMSNorm pre-norm Final norm · RMSNorm LM head → Vocab 163,840 p p p → next token Position RoPE Dtype BF16 Context 8K tok
Drawn from the shipped config.json · 27 layers / width 2,048 / context 8,192. Original diagram by this atlas.

Attention

multi-head latent attention (MLA). kv_lora_rank=512. RoPE θ=50,000.

Feed-forward / MoE

It is a sparse mixture-of-experts with 64 routed experts and top-6 routing; about 2.8B parameters are active per token.

Field-level comparison

Compared against the previous model of the same lab; where none exists, against the structurally closest model. The ratio column is this model divided by the comparison model.

Full-field comparison vs most-similar DeepSeek-V2 Lite
ModelMoonlight 16BDeepSeek-V2 LiteRatio
model_typedeepseek_v3deepseek_v2
architecturesDeepseekV3ForCausalLMDeepseekV2ForCausalLM
hidden_size20482048≈1
num_hidden_layers2727≈1
num_attention_heads1616≈1
num_key_value_heads1616≈1
intermediate_size1126410944×1.03
hidden_actsilusilu
n_routed_experts6464≈1
num_experts_per_tok66≈1
n_shared_experts22≈1
moe_intermediate_size14081408≈1
kv_lora_rank512512≈1
qk_rope_head_dim6464≈1
rope_theta5000010000×5.00
max_position_embeddings8192163840×0.050
rms_norm_eps0.000010.000001×10.00
vocab_size163840102400×1.60
torch_dtypebfloat16bfloat16
num_nextn_predict_layers0
attention_biasfalsefalse
attention_dropout00
aux_loss_alpha0.0010.001≈1
bos_token_id163584100000×1.64
eos_token_id163585100001×1.64
ep_size1

Most similar architectures

Similarity values range from 0 (no shared categorical features) to 1 (identical profiles).

Raw config fields

42 fields
architecturesDeepseekV3ForCausalLM
attention_biasfalse
attention_dropout0
aux_loss_alpha0.001
bos_token_id163584
eos_token_id163585
ep_size1
first_k_dense_replace1
hidden_actsilu
hidden_size2048
initializer_range0.02
intermediate_size11264
kv_lora_rank512
max_position_embeddings8192
model_typedeepseek_v3
moe_intermediate_size1408
moe_layer_freq1
n_group1
n_routed_experts64
n_shared_experts2
norm_topk_probtrue
num_attention_heads16
num_experts_per_tok6
num_hidden_layers27
num_key_value_heads16
num_nextn_predict_layers0
pretraining_tp1
qk_nope_head_dim128
qk_rope_head_dim64
rms_norm_eps0.00001
rope_theta50000
routed_scaling_factor2.446
scoring_funcsigmoid
seq_auxtrue
tie_word_embeddingsfalse
topk_group1
topk_methodnoaux_tc
torch_dtypebfloat16
transformers_version4.46.3
use_cachetrue
v_head_dim128
vocab_size163840