Ling-3.1-flash
inclusionAI · 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-10-14
Source: paper · Ling-3.1 TDS summary, §1.2 Date of placement of the model on the Union market
2026-10-14
Hugging Face repository created 2026-10-13.
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
mit
Source: model-card · README.md; YAML front matter
license: 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
Inferred from the source; see the explanation below.
Source: model-card · README front matter
pipeline_tag: text-generation
Card tags the checkpoint text-generation; config declares no vision or audio tower, and the TDS summary ticks only Text as a training-data modality.
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
560B parameters
Source: model-card · README.md; Introduction
With 560B total parameters, 25B active parameters per token
Total parameter count as reported by the publisher. See params.note for whether embeddings, MTP heads or vision towers are included.
- Active params
25B parameters
Source: model-card · README.md; Introduction
With 560B total parameters, 25B active parameters per token
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
563.9B parameters
Calculated: embedding + output head + all experts + other weights, inclusionAI/Ling-3.1-flash@a4ccd6b safetensors headers; reproduces stated total (backbone) and active (with embedding and 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
1.288B parameters
Calculated: input embedding + output head, inclusionAI/Ling-3.1-flash@a4ccd6b safetensors headers
Input embedding plus output head (once if tied), counted from the checkpoint.
- Non-emb. params (counted)
562.7B parameters
Calculated: dense + routed backbone weights; excludes input embedding, output head, lookup tables, MTP and other modalities, inclusionAI/Ling-3.1-flash@a4ccd6b safetensors headers; reproduces stated total (backbone) and active (with embedding and 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)
8.273B parameters
Calculated: max(sum of dense and routed weights sharing a full layers.<index> tensor path), all experts included, inclusionAI/Ling-3.1-flash@a4ccd6b 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)
23.61B parameters
Calculated: non-expert weights + routed experts × 8/512, excluding embedding and output head, inclusionAI/Ling-3.1-flash@a4ccd6b safetensors headers; reproduces stated total (backbone) and active (with embedding and 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 publisher figures; whether the MTP layer is counted is not stated.
Source: model-card · README.md; Model Overview
Parameter Scale Total 560B, Activated 25B
What the publisher's counts include or exclude (MTP modules, embeddings, vision encoder, n-gram tables).
Shape
- Layers
72
Source: config · /num_hidden_layers
Number of transformer blocks in the main backbone (attention or token mixer plus FFN), excluding MTP modules.
- d_model
4,096
Source: config · /hidden_size
Residual stream width.
- Vocab
157,184
Source: config · /vocab_size
Embedding table rows (vocab_size in config, may include padding).
- Tied embeddings
No
Source: config · /tie_word_embeddings
Input embedding and output head share weights.
- d_model / layers
56.8889
Calculated: d_model / layers
Width-to-depth ratio, d_model divided by the number of blocks.
Attention
- Token mixers
KDA, MLA
Source: model-card · README.md; Model Overview
Transformer Layers 63 KDA + 9 Gated MLA (7:1)
Token-mixing layer types in the backbone, e.g. GQA, MLA, SWA, Gated DeltaNet, Mamba-2, DSA (DeepSeek sparse attention).
- Layer layout
7 KDA : 1 MLA
Inferred from the source; see the explanation below.
Source: code · modeling_bailing_moe_v3.py; DecoderLayer.__init__
if (layer_idx + 1) % config.layer_group_size == 0
/layer_group_size = 8: MLA at layers 7, 15, …, 71. Ordered from that conditional with /layer_group_size=8; the implementation also makes any incomplete final group global.
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
9
Source: model-card · README.md; Model Overview
Transformer Layers 63 KDA + 9 Gated MLA (7:1)
Layers whose KV cache grows with full context (dense or sparse global attention, MLA). Excludes sliding-window and linear/recurrent layers.
- Linear : global
7
Calculated: attn.linear_layers / attn.global_layers
attn.linear_layers divided by attn.global_layers (3 for '3 Gated DeltaNet : 1 GQA').
- Linear / SSM layers
63
Source: model-card · README.md; Model Overview
Transformer Layers 63 KDA + 9 Gated MLA (7:1)
Layers with a fixed-size recurrent state (linear attention, DeltaNet variants, Mamba).
- Query heads
64
Source: 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 · /qk_nope_head_dim + /qk_rope_head_dim
MLA layers (= /qk_head_dim). /head_dim=128 is the KDA head size.
Query/key dimension per head in global-attention layers (for MLA, nope + rope dims).
- V head dim
128
Source: 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 · /kv_lora_rank
Width of the compressed KV latent that MLA caches per token per layer.
- MLA Q latent
1,536
Source: 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 · /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, interleaved), NoPE (KDA)
Source: code · modeling_bailing_moe_v3.py; BailingMoeV3MultiLatentAttention.forward
q_rot, k_rot = apply_rotary_pos_emb_interleave(q_rot, k_rot, cos, sin)
The rotary embedding overrides /partial_rotary_factor=0.5 with 1.0 over the 64 qk_rope_head_dim dims; interleaved per /rope_interleave.
Positional scheme in global layers: RoPE, partial RoPE, NoPE, or mixed per layer type.
- RoPE base
6,000,000
Source: config · /rope_theta
RoPE base frequency of the global layers at release.
- QK norm
No
Source: code · modeling_bailing_moe_v3.py; BailingMoeV3MultiLatentAttention.forward
key_states = torch.cat((k_pass, k_rot), dim=-1)
MLA layers: RMSNorm only on the Q and KV latents; no per-head Q/K norm, and /use_qk_norm is not read. KDA layers L2-normalize q and k.
Queries and keys are normalized per head before the dot product.
- Output gate
head-wise sigmoid on the MLA output, before the output projection
Source: code · modeling_bailing_moe_v3.py; BailingMoeV3MultiLatentAttention.forward
gate = F.sigmoid(gate.float()).type_as(hidden_states)
/gated_attention_proj_granularity_type = head_wise. KDA layers have their own sigmoid-gated output norm.
Gate applied to the attention output before the output projection, with its placement.
- QKV bias
No
Source: config · /use_qkv_bias
Query/key/value projections have bias terms.
- Linear-mixer details
KDA: 64 heads × 128, short conv 4 + SiLU on q/k/v, L2-normed q/k, full-rank decay and output-gate projections, safe gate with lower bound −5, sigmoid-gated RMSNorm on output
Source: config · config.json kda_lower_bound, kda_safe_gate, no_kda_lora
"kda_lower_bound": -5.0, "kda_safe_gate": true,
no_kda_lora = true selects full-rank f_proj/g_proj in BailingMoeV3KimiDeltaAttention.
Configuration of the linear / SSM layers (e.g. Gated DeltaNet heads and dims, Mamba-2 state size), as one string.
- Linear-mixer heads
64
Source: config · /num_attention_heads
BailingMoeV3KimiDeltaAttention sets num_heads = num_attention_heads.
Value heads (or SSM heads) in the linear / SSM layers.
- Linear-mixer head dim
128
Source: config · /head_dim
BailingMoeV3KimiDeltaAttention uses /head_dim for both key and value heads.
Head dimension of the linear / SSM layers (value head dim for DeltaNet variants, head_dim for Mamba-2).
- Short conv kernel
4
Source: config · /short_conv_kernel_size
Kernel size of the causal short convolution in linear / SSM layers or attention projections.
Feed-forward
- Activation
SwiGLU
Source: code · modeling_bailing_moe_v3.py; BailingMoeV3MLP.forward
return self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
act_fn = ACT2FN[/hidden_act] = silu; used for dense, shared and routed FFNs. Config expert_swiglu_limit_list (10 on layers 65–71) and share_expert_swiglu_limit_list (10 on layers 64–71) are not read by the modeling code.
FFN activation (SwiGLU, GeGLU, ...).
- Dense FFN dim
10,240
Source: config · /intermediate_size
Intermediate width of the dense FFN layers that are actually executed.
- FFN bias
No
Source: code · modeling_bailing_moe_v3.py; BailingMoeV3MLP.__init__
self.gate_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
FFN projections have bias terms.
- Dense FFN / d_model
2.5
Calculated: ffn.dim / d_model
ffn.dim divided by shape.d_model.
Mixture of experts
- Routed experts
512
Source: config · /num_experts
Routed experts per MoE layer.
- Experts per token
8
Source: config · /num_experts_per_tok
Routed experts selected per token.
- Expert dim
1,280
Source: config · /moe_intermediate_size
Intermediate width of one routed expert.
- Leading dense layers
4
Source: config · /first_k_dense_replace
Number of initial blocks that use a dense FFN instead of MoE.
- Router score
sigmoid
Source: code · modeling_bailing_moe_v3.py; BailingMoeV3Gate.forward; config /score_function, /scoring_func
scores = torch.sigmoid(logits.float()).type_as(logits)
Router logits computed in FP32 (/router_dtype fp32).
Gating function over expert logits (softmax, sigmoid).
- Load balancing
aux-loss-free expert bias added to routing scores (noaux_tc)
Source: code · modeling_bailing_moe_v3.py; BailingMoeV3Gate.forward; config /moe_router_enable_expert_bias, /topk_method
scores_for_routing = scores + self.expert_bias
Bias update rate not disclosed.
Load-balancing method, with coefficients where disclosed.
- Routed scaling factor
2.5
Source: config · /routed_scaling_factor
Multiplied into the renormalized top-k weights in BailingMoeV3Gate.forward.
Multiplier applied to the combined routed-expert output (routed_scaling_factor).
- Renormalize top-k
Yes
Source: code · modeling_bailing_moe_v3.py; BailingMoeV3Gate.forward; config /norm_topk_prob
topk_weight = scores / (scores.sum(dim=-1, keepdim=True) + 1e-20) if self.top_k > 1 else scores
Selected expert weights are renormalized to sum to 1.
- Group-limited routing
8 groups, top-4 groups per token
Source: config · config.json n_group, topk_group
"n_group": 8,
/topk_group = 4; groups ranked by the sum of their top-2 biased scores (BailingMoeV3Gate.group_limited_topk).
Expert groups and groups selected per token, or node-limited routing, when used.
- Expert dim / d_model
0.3125
Calculated: moe.expert_dim / d_model
moe.expert_dim divided by shape.d_model.
- Sparsity (experts / top-k)
64
Calculated: experts / top_k
Routed experts divided by experts selected per token.
- Active / total
0.0446429
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
Yes
Source: config · model.safetensors.index.json; weight_map
"model.layers.72.eh_proj.weight"
One MTP layer (MLA + MoE, /num_nextn_predict_layers = 1). Use in pretraining is not disclosed; the released config sets mtp_loss_scaling_factor to 0.
The released checkpoint contains the MTP module weights.
Normalization and stability
- Norm
RMSNorm
Source: code · modeling_bailing_moe_v3.py; BailingMoeV3DecoderLayer.__init__
self.input_layernorm = BailingMoeV3RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
Normalization layer type in the blocks.
- Norm placement
pre
Source: code · modeling_bailing_moe_v3.py; BailingMoeV3DecoderLayer.forward
hidden_states = self.input_layernorm(hidden_states)
Pre-norm, post-norm, or sandwich (pre and post).
- Norm epsilon
1e-06
Source: config · /rms_norm_eps
Epsilon of the block normalization layers.
Context length
- Pretraining context
Not disclosed
Sequence length of the main pretraining stage.
- Trained context
Not disclosed
Longest sequence length trained on after context extension.
- Advertised context
1.049M tokens
Source: model-card · README.md; Introduction
a 1M-token context window
Config max_position_embeddings is 262144 with rope_scaling null.
Longest context the publisher says the model supports, possibly beyond trained length via RoPE scaling.
Pretraining recipe
- Pretraining tokens
Not disclosed
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.
- Data mix
>10T text tokens; multilingual (mainly English and Chinese) web incl. Common Crawl, academic papers, code and developer Q&A, licensed text, own crawl (Ant Spider), synthetic data from Ling-2.6 models
Source: paper · Ling-3.1 TDS summary, §1.3 and §2
More than 10 trillions tokens
Overall training-data size after pre-processing, not tokens seen; the summary covers all training, not only pretraining.
Pretraining data composition as disclosed (domain shares, synthetic fraction, repetition).
- Data cutoff
approximately July 2026
Source: paper · Ling-3.1 TDS summary, §1.3
Approximately July 2026.
Latest date of data acquisition/collection for model training, as stated in the EU AI Act training-content summary.
Pretraining data cutoff date.
KV cache
- KV bytes / token
10,368 bytes
Calculated: kv.bytes_at_context / 131072 tokens; uniform BF16, payload only; quantization overhead excluded. Global KV: 9 × (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
10,368 bytes
Calculated: 10368 B / 1 tokens (Global KV); uniform BF16, payload only; quantization overhead excluded. Global KV: 9 × (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
415 bytes
Calculated: kv.bytes_per_token (131072 tokens) / (params.active / 1e9); uniform BF16, payload only; quantization overhead excluded. Global KV: 9 × (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
54,358,180 bytes
Calculated: kv.bytes_at_context (131072 tokens) / (params.active / 1e9); uniform BF16, payload only; quantization overhead excluded. Global KV: 9 × (576 × 16/8) B/entry
kv.bytes_at_context divided by active parameters in billions (131,072 tokens in exports).
- KV at context
1,358,954,496 bytes
Calculated: 10368 B × 131072 (Global KV); uniform BF16, payload only; quantization overhead excluded. Global KV: 9 × (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
41
Source: leaderboard · Artificial Analysis model page /models/ling-3-1-flash, Wayback snapshot 2026-10-19
Ling 3.1 Flash scores 41 on the Artificial Analysis Intelligence Index
Variant: Ling 3.1 Flash. 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).