archdb

LLM architectures and pretraining recipes, with sources.

Ling-3.0-flash-base

inclusionAI · base 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-08-12

Source: api · Hugging Face commit history; 'Initial model release' 4489af0
"date":"2026-08-12T13:55:51.000Z"

Date of the first commit with weights; no dated publisher page exists for the base weights, and when the repository became public is not recorded.

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

124B parameters

Source: model-card · README.md; Model Overview table
Totoal 124B, Activated 5.1B (Non-emb)

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

Active params

5.1B parameters

Source: model-card · README.md; Model Overview table
Totoal 124B, Activated 5.1B (Non-emb)

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

Active non-embedding (stated)

5.1B parameters

Source: model-card · README.md; Model Overview, Key features
activating just 5.1B (Non-emb) parameters per token

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

124.4B parameters

Calculated: embedding + output head + all experts + other weights, inclusionAI/Ling-3.0-flash-base@0a96b0a 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

804.8M parameters

Calculated: input embedding + output head, inclusionAI/Ling-3.0-flash-base@0a96b0a safetensors headers

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

Non-emb. params (counted)

123.6B parameters

Calculated: dense + routed backbone weights; excludes input embedding, output head, lookup tables, MTP and other modalities, inclusionAI/Ling-3.0-flash-base@0a96b0a 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)

3.09B parameters

Calculated: max(sum of dense and routed weights sharing a full layers.<index> tensor path), all experts included, inclusionAI/Ling-3.0-flash-base@0a96b0a 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)

4.701B parameters

Calculated: non-expert weights + routed experts × 8/512, excluding embedding and output head, inclusionAI/Ling-3.0-flash-base@0a96b0a 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 publisher figures; active count excludes embeddings. Whether the MTP layer is counted is not stated; the checkpoint index (254.97 GB in BF16, ≈127.5B parameters) includes it.

Source: model-card · README.md; Model Overview, Key features
activating just 5.1B (Non-emb) parameters per token

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

Shape

Layers

42

Source: config · /num_hidden_layers

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

d_model

2,560

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

60.9524

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 table
35 KDA + 7 Gated MLA (5:1)

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

Layer layout

5 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 = 6: MLA at layers 5, 11, …, 41. Ordered from that conditional with /layer_group_size=6; 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

7

Source: model-card · README.md; Model Overview table
35 KDA + 7 Gated MLA (5:1)

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

Linear : global

5

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

35

Source: model-card · README.md; Model Overview table
35 KDA + 7 Gated MLA (5:1)

Layers with a fixed-size recurrent state (linear attention, DeltaNet variants, Mamba).

Query heads

32

Source: config · /num_attention_heads

Query heads in the global-attention layers.

Heads × head dim

6,144

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

0

Source: code · modeling_bailing_moe_v3.py; BailingMoeV3MultiLatentAttention.__init__
self.q_proj = nn.Linear(config.hidden_size, self.num_heads * self.qk_head_dim, bias=False)

/q_lora_rank is null: full-rank query projection, no Q latent.

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

The pretrained-only 30T checkpoint config has rope_theta 10000 and max_position_embeddings 8192.

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 KV latent (/q_lora_rank is null, so queries are a direct projection); 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: 32 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

32

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 / share_expert_swiglu_limit_list are not read by the modeling code.

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

Dense FFN dim

6,144

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.4

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.

Shared experts

1

Source: config · /num_shared_experts

Always-on experts per MoE layer.

Expert dim

768

Source: config · /moe_intermediate_size

Intermediate width of one routed expert.

Shared expert dim

768

Source: config · /moe_shared_expert_intermediate_size

Total intermediate width of the shared expert(s).

Leading dense layers

2

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). BailingMoeV3Gate adds an expert_bias buffer (/moe_router_enable_expert_bias, /topk_method noaux_tc) to the scores for top-k selection only; how it was updated is not stated.

Gating function over expert logits (softmax, sigmoid).

Load balancing

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.3

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.041129

Calculated: params.active / params.total

params.active divided by params.total.

Multi-token prediction

MTP depth

1

Inferred from the source; see the explanation below.

Source: config · Ling-3.0-flash-base-30T model.safetensors.index.json; weight_map
"model.layers.42.eh_proj.weight"

The pretrained-only checkpoint (before mid-training) already carries one MTP layer (/num_nextn_predict_layers = 1); the depth used in pretraining is not stated in text.

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

MTP modules

1

Source: config · /num_nextn_predict_layers

MTP modules with distinct weights. 1 with mtp.depth > 1 means one module is applied recursively.

MTP module

RMSNorm(embedding of token t+1) and RMSNorm(hidden) concatenated, eh_proj 2d→d, then one gated MLA + MoE block with final RMSNorm

Source: code · modeling_bailing_moe_v3.py; BailingMoeV3MTPLayer
hidden_states = self.eh_proj(torch.cat([input_embeds, hidden_states], dim=-1))

Contents of one MTP module (mixer and FFN type, norms, how the previous hidden state and next-token embedding are combined).

MTP FFN

MoE

Source: code · modeling_bailing_moe_v3.py; BailingMoeV3MTPLayer.__init__
self.mlp = BailingMoeV3SparseMoeBlock(config)

FFN in the MTP module: 'dense' or 'MoE', with its width when it differs from the backbone.

MTP shares embedding/head

Yes

Source: code · modeling_bailing_moe_v3.py; BailingMoeV3ForCausalLM.forward
mtp_logits = self.lm_head(mtp_hidden_states).float()

Input embedding is also the shared word_embeddings (BailingMoeV3Model.forward).

MTP modules use the main model's input embedding and output head.

MTP loss weight

Not disclosed

Weight of the MTP loss, including its schedule.

MTP weights released

Yes

Source: config · model.safetensors.index.json; weight_map
"model.layers.42.eh_proj.weight"

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

8.192K tokens

Source: config · /max_position_embeddings

Config of the pretrained-only checkpoint; the Ling-3.0-flash card gives the schedule as '8K -> 32K -> 256K'.

Sequence length of the main pretraining stage.

Trained context

262.1K tokens

Source: model-card · Ling-3.0-flash README.md; Model Overview table
Context Training Schedule 8K -> 32K -> 256K

Longest sequence length trained on after context extension.

Advertised context

262.1K tokens

Source: config · /max_position_embeddings

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

Extension method

8K → 32K → 256K; RoPE base 10,000 in the pretrained-only checkpoint, 6,000,000 after mid-training

Source: model-card · Ling-3.0-flash README.md; Model Overview table
Context Training Schedule 8K -> 32K -> 256K

RoPE bases from the -base-30T and -base-midtrain/-base configs; the stage boundaries relative to mid-training are not stated.

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

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

Warmup-Stable and Merge (WSM): warmup, stable LR, no decay phase; checkpoint merging replaces decay

Source: model-card · README.md; Model Overview, Key features
By eliminating the decay phase, our Base Model is better suited for continual pretraining and dynamic data expansion

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; mainly English and Chinese: Common Crawl, academic papers, developer Q&A and code, licensed text, own crawl (Ant Spider), synthetic data from Ling-2.6 models

Source: paper · Ling-3.0 LLM TDS summary, §1.3 and §2
More than 10 trillions tokens

Training-data size, not tokens seen; the EU AI Act summary covers all training (pre- and post-) of Ling-3.0-flash, -tiny and -flash-fin.

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

Data cutoff

~2025-10

Source: paper · Ling-3.0 LLM TDS summary, §1.3; latest date of data acquisition
Approximately October 2025.

Covers all Ling-3.0 LLM training data, pre- and post-training.

Pretraining data cutoff date.

Checkpoint averaging

WSM: weighted checkpoint merging of mid-training checkpoints replaces LR decay

Source: model-card · README.md; Model Overview, Key features
We replace conventional learning-rate decay with weighted checkpoint merging.

EMA or checkpoint merging applied to produce the released base weights.

Stages
  • pretraining

    Seq len
    8192
    Source: model-card · README.md; Introduction
    Pretrained checkpoint have completed large-scale pretraining but have not undergone mid-training, WSM merging (or learning-rate decay), or post-training.

    Released as Ling-3.0-flash-base-30T; seq_len from that checkpoint's config (max_position_embeddings 8192).

  • mid-training

    Source: model-card · README.md; Introduction
    Mid-trained checkpoint have completed mid-training but have not undergone WSM merging (or learning-rate decay) or post-training.

    Released as Ling-3.0-flash-base-midtrain; its config has max_position_embeddings 262144 and rope_theta 6,000,000.

  • WSM merge

    Source: model-card · README.md; Introduction
    Merged checkpoints have undergone

    Checkpoint merge in place of LR decay; released as Ling-3.0-flash-base.

Source: model-card · README.md; Introduction

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.

KV cache

KV bytes / token

8,064 bytes

Calculated: kv.bytes_at_context / 131072 tokens; uniform BF16, payload only; quantization overhead excluded. Global KV: 7 × (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

8,064 bytes

Calculated: 8064 B / 1 tokens (Global KV); uniform BF16, payload only; quantization overhead excluded. Global KV: 7 × (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

1,581 bytes

Calculated: kv.bytes_per_token (131072 tokens) / (params.active / 1e9); uniform BF16, payload only; quantization overhead excluded. Global KV: 7 × (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

207,247,962 bytes

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

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

KV at context

1,056,964,608 bytes

Calculated: 8064 B × 131072 (Global KV); uniform BF16, payload only; quantization overhead excluded. Global KV: 7 × (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

20

Source: leaderboard · Artificial Analysis model page /models/ling-3-0-flash, Wayback snapshot 2026-10-19
Ling 3.0 Flash scores 20 on the Artificial Analysis Intelligence Index

Score of Ling-3.0-flash, post-trained from this base. Variant: Ling 3.0 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).

All models · Link to this model