archdb

LLM architectures and pretraining recipes, with sources.

Hy3-preview-Base

Tencent · base checkpoint

Open in the comparison table Hugging Face ↗

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-04-23

Source: model-card · README.md; News
[2026-04-23] 🔥 We open-source Hy3 preview model weights

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 (Tencent Hy Community License Agreement)

Source: model-card · README.md; License
Hy3 preview is released under the Tencent Hy Community License Agreement

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: config · config.json architectures
HYV3ForCausalLM

The card states no modality; the config class HYV3ForCausalLM has no vision or audio tower.

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

295B parameters

Source: model-card · README.md; Model Introduction
is a 295B-parameter Mixture-of-Experts (MoE) model with 21B active parameters and 3.8B MTP layer parameters

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

Active params

21B parameters

Source: model-card · README.md; Model Introduction
is a 295B-parameter Mixture-of-Experts (MoE) model with 21B active parameters and 3.8B MTP layer parameters

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

295B parameters

Calculated: embedding + output head + all experts + other weights, tencent/Hy3-preview-Base@54a62bb 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

989.9M parameters

Calculated: input embedding + output head, tencent/Hy3-preview-Base@54a62bb safetensors headers

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

Non-emb. params (counted)

294B parameters

Calculated: dense + routed backbone weights; excludes input embedding, output head, lookup tables, MTP and other modalities, tencent/Hy3-preview-Base@54a62bb 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)

3.719B parameters

Calculated: max(sum of dense and routed weights sharing a full layers.<index> tensor path), all experts included, tencent/Hy3-preview-Base@54a62bb 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)

19.69B parameters

Calculated: non-expert weights + routed experts × 8/192, excluding embedding and output head, tencent/Hy3-preview-Base@54a62bb 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

Excludes the 3.8B MTP layer, which the card lists separately (checkpoint index total_size 597.6 GB in BF16 ≈ 298.8B).

Source: model-card · README.md; Model Introduction
is a 295B-parameter Mixture-of-Experts (MoE) model with 21B active parameters and 3.8B MTP layer parameters

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

Shape

Layers

80

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

120,832

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

51.2

Calculated: d_model / layers

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

Attention

Token mixers

GQA

Source: model-card · README.md; Model Introduction table
Attention Heads 64 (GQA, 8 KV heads, head dim 128)

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

Global-attention layers

80

Source: config · /num_hidden_layers

Every layer is full GQA; the config has no sliding-window or linear 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 · /num_attention_heads

Query heads in the global-attention layers.

KV heads

8

Source: config · /num_key_value_heads

Key/value heads in the global-attention layers. Not applicable to MLA, whose cache is a shared latent.

Heads × head dim

8,192

Calculated: heads × head_dim

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

Q heads / KV head

8

Calculated: heads / kv_heads

attn.heads divided by attn.kv_heads in global layers.

QK head dim

128

Source: config · /head_dim

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

Positional encoding

RoPE

Source: code · modeling_hy_v3.py; HYV3Attention.forward
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin)

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

RoPE base

11,158,840

Source: config · /rope_parameters/rope_theta

RoPE base frequency of the global layers at release.

QK norm

Yes

Source: config · /qk_norm

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

QKV bias

No

Source: config · /weight_map | has self_attn.q_proj.bias

No QKV bias tensors; config omits attention_bias (transformers default false).

Query/key/value projections have bias terms.

Feed-forward

Activation

SwiGLU

Source: code · modeling_hy_v3.py; HYV3MLP.forward
down_proj = self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))

act_fn is config /hidden_act silu; routed experts compute act_fn(gate) * up.

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

Dense FFN dim

13,312

Source: config · /intermediate_size

Dense FFN in layer 0 only.

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

Dense FFN / d_model

3.25

Calculated: ffn.dim / d_model

ffn.dim divided by shape.d_model.

Mixture of experts

Routed experts

192

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

1,536

Source: config · /moe_intermediate_size

Intermediate width of one routed expert.

Shared expert dim

1,536

Inferred from the source; see the explanation below.

Source: code · modeling_hy_v3.py; HYV3MoE.__init__
shared_intermediate = config.moe_intermediate_size * config.num_shared_experts

moe_intermediate_size 1536 × num_shared_experts 1 (config).

Total intermediate width of the shared expert(s).

Leading dense layers

1

Source: config · /first_k_dense_replace

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

Router score

sigmoid

Source: code · modeling_hy_v3.py; HYV3TopKRouter.forward
routing_weights = torch.sigmoid(router_logits)

Config /moe_router_use_sigmoid true.

Gating function over expert logits (softmax, sigmoid).

Load balancing

expert bias added to selection scores (e_score_correction_bias); update rule and any aux loss not disclosed

Source: code · modeling_hy_v3.py; HYV3TopKRouter.forward; config /moe_router_enable_expert_bias
scores_for_choice = routing_weights + e_score_correction_bias

Load-balancing method, with coefficients where disclosed.

Routed scaling factor

2.826

Source: config · /router_scaling_factor

Applied to the renormalized top-k weights (modeling_hy_v3.py HYV3TopKRouter.forward).

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

Renormalize top-k

Yes

Source: code · modeling_hy_v3.py; HYV3TopKRouter.forward
top_k_weights = top_k_weights / (top_k_weights.sum(dim=-1, keepdim=True) + 1e-20)

Config /route_norm true.

Selected expert weights are renormalized to sum to 1.

Expert dim / d_model

0.375

Calculated: moe.expert_dim / d_model

moe.expert_dim divided by shape.d_model.

Sparsity (experts / top-k)

24

Calculated: experts / top_k

Routed experts divided by experts selected per token.

Active / total

0.0711864

Calculated: params.active / params.total

params.active divided by params.total.

Multi-token prediction

MTP depth

1

Source: model-card · README.md; Model Introduction table
Number of MTP Layers 1

The pre-trained base checkpoint ships the trained MTP layer.

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

enorm(embedding) and hnorm(hidden) concatenated, eh_proj 2d→d, then one GQA (QK norm) + MoE block with final RMSNorm

Inferred from the source; see the explanation below.

Source: config · model.safetensors.index.json; model.layers.80.* weights
"model.layers.80.eh_proj.weight"

From the layer-80 tensor names (enorm, hnorm, eh_proj, q/k_norm, router + 192 experts + shared_mlp, final_layernorm); transformers modeling_hy_v3.py does not implement the MTP layer.

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: config · model.safetensors.index.json; model.layers.80.mlp
"model.layers.80.mlp.router.gate.weight"

192 routed experts and a shared expert, as in the backbone.

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

MTP shares embedding/head

Yes

Inferred from the source; see the explanation below.

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

No embed_tokens or shared_head tensors under model.layers.80; the module reuses model.embed_tokens and lm_head.

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

MTP params

3.8B parameters

Source: model-card · README.md; Model Introduction
3.8B MTP layer parameters

Parameters of all MTP modules as reported by the publisher.

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.80.eh_proj.weight"

Stored as layer 80.

The released checkpoint contains the MTP module weights.

Normalization and stability

Norm

RMSNorm

Source: code · modeling_hy_v3.py; HYV3DecoderLayer.__init__
self.input_layernorm = HYV3RMSNorm(config.hidden_size, eps=config.rms_norm_eps)

Normalization layer type in the blocks.

Norm placement

pre

Source: code · modeling_hy_v3.py; HYV3DecoderLayer.forward
hidden_states = self.input_layernorm(hidden_states)

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

Norm epsilon

1e-05

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

262.1K tokens

Source: model-card · README.md; Model Introduction table; config /max_position_embeddings
Context Length 256K

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.

KV cache

KV bytes / token

327,680 bytes

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

327,680 bytes

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

15,604 bytes

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

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

KV at context / B active

2,045,222,522 bytes

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

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

KV at context

42,949,672,960 bytes

Calculated: 327680 B × 131072 (Global KV); uniform BF16, payload only; quantization overhead excluded. Global KV: 80 × (2048 × 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/hy3-preview, Wayback snapshot 2026-10-19
Hy3-preview (Reasoning) scores 23 on the Artificial Analysis Intelligence Index

Score of Hy3-preview, post-trained from this base. Variant: Hy3-preview (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