nnterp · encyclopedia

The families

How each transformer family looks through nnterp's standard names and values: a block diagram, its quirks, and what to know before you run it.

Find a family

search by family, checkpoint, quirk or value
Org
Quirks
Vision encoders

Trinity NanoTrinity MiniTrinity Large

model_typeafmoe
vLLMyes
Sandwich normsEmbedding multiplierQuery/key normsOutput gateSliding windowBlocks without rotaryMixture of expertsDense first blocksGrouped-query attention

Apertus

model_typeapertus
vLLMyes
Query/key normsLearned activationGrouped-query attention

Arcee AFM

model_typearcee
vLLMyes
Squared ReLUGrouped-query attention

Bamba

model_typebamba
vLLMno
HybridState space (Mamba-2)Partial rotaryGrouped-query attention

BitNet b1.58

model_typebitnet
vLLMno
Quantized projectionsSub-normsSquared ReLUGrouped-query attention

BLOOMBLOOMZ

model_typebloom
vLLMyes
ALiBiBiased q, k, vLayerNorm

CodeGen

model_typecodegen
vLLMno
Parallel blockPartial rotaryInterleaved rotaryLayerNorm

Command RCommand R+

model_typecohere
vLLMyes
Parallel blockLayerNormInterleaved rotaryQuery/key normsScaled logitsGrouped-query attention

Command R7BCommand A

model_typecohere2
visionSigLIP
vLLMyes
Parallel blockLayerNormSliding windowBlocks without rotaryInterleaved rotaryScaled logitsGrouped-query attentionVision-language

DBRX

model_typedbrx
vLLMyes
LayerNormMixture of expertsGrouped-query attention

DeepSeek-V2DeepSeek-Coder-V2

model_typedeepseek_v2
vLLMyes
Latent attentionInterleaved rotaryMixture of expertsUnnormalized routingDense first blocks

DeepSeek-V3DeepSeek-R1Moonlight

model_typedeepseek_v3
vLLMyes
Latent attentionInterleaved rotaryMixture of expertsDense first blocks

DeepSeek-V3.2

model_typedeepseek_v32
vLLMno
Latent attentionSparse attentionInterleaved rotaryMixture of expertsDense first blocks

DeepSeek-V4

model_typedeepseek_v4
vLLMno
Hyper-connectionsAttention sinkSliding windowSparse attentionInterleaved rotaryMixture of expertsHash routingMulti-query attention

Doge

model_typedoge
vLLMno
Scaled residual addsQuery/key normsDynamic maskGrouped-query attentionMulti-query attention

dots.llm1

model_typedots1
vLLMno
Query/key normsMixture of expertsDense first blocks

ERNIE 4.5

model_typeernie4_5
vLLMyes
Interleaved rotaryGrouped-query attention

ERNIE 4.5 MoE

model_typeernie4_5_moe
vLLMyes
Interleaved rotaryMixture of expertsDense first blocksGrouped-query attention

EXAONE 4.0

model_typeexaone4
vLLMyes
Post-norms onlyQuery/key normsSliding windowBlocks without rotaryGrouped-query attention

Falcon

model_typefalcon
vLLMyes
Parallel blockBiased q, k, vLayerNormALiBiGrouped-query attentionMulti-query attention

Falcon-H1

model_typefalcon_h1
vLLMno
Parallel mixersState space (Mamba-2)Scaled residual addsEmbedding multiplierScaled logitsGrouped-query attention

Falcon-MambaFalcon3-Mamba

model_typefalcon_mamba
vLLMno
Selective scan (Mamba-1)

FlexOlmo

model_typeflex_olmo
vLLMyes
Post-norms onlyQuery/key normsMixture of experts

GemmaPaliGemma

model_typegemma
visionSigLIP
vLLMyes
Scaled embeddings1 + weight norm gainMulti-query attentionVision-language

Gemma 2PaliGemma 2

model_typegemma2
visionSigLIP
vLLMyes
Sandwich normsSoftcapped logitsSliding windowScaled embeddings1 + weight norm gainGrouped-query attentionVision-language

Gemma 3

model_typegemma3_text
visionSigLIP
vLLMyes
Sandwich normsQuery/key normsSliding windowScaled embeddings1 + weight norm gainGrouped-query attentionMulti-query attentionVision-language

Gemma 4

model_typegemma4_text
visionGemma 4 ViT
vLLMno
Sandwich normsPer-block sizesScaled residual addsQuery/key normsSliding windowProportional rotaryBorrowed keys and valuesMixture of expertsScaled embeddingsSoftcapped logitsGrouped-query attentionMulti-query attentionVision-language

Gemma 4 unified

model_typegemma4_unified_text
visionGemma 4 unified embedder
vLLMno
Sandwich normsPer-block sizesScaled residual addsQuery/key normsSliding windowProportional rotaryScaled embeddingsSoftcapped logitsGrouped-query attentionVision-language

GLM-4GLM-Edge

model_typeglm
vLLMyes
Biased q, k, vPartial rotaryInterleaved rotaryGrouped-query attention

GLM-4-0414GLM-Z1

model_typeglm4
vLLMno
Sandwich normsBiased q, k, vPartial rotaryInterleaved rotaryGrouped-query attention

GLM-4.5GLM-4.6GLM-4.7

model_typeglm4_moe
vLLMyes
Mixture of expertsDense first blocksBiased q, k, vQuery/key normsPartial rotaryGrouped-query attention

GLM-4.7-Flash

model_typeglm4_moe_lite
vLLMyes
Latent attentionInterleaved rotaryMixture of expertsDense first blocks

GLM-5

model_typeglm_moe_dsa
vLLMno
Latent attentionSparse attentionInterleaved rotaryMixture of expertsDense first blocks

GPT-2

model_typegpt2
vLLMyes
Position embeddingsLayerNorm

StarCoderSantaCoder

model_typegpt_bigcode
vLLMyes
Position embeddingsLayerNormMulti-query attention

GPT-NeoTinyStories

model_typegpt_neo
vLLMno
Sliding windowPosition embeddingsLayerNorm

GPT-NeoX

model_typegpt_neox
vLLMyes
Parallel blockPartial rotaryLayerNorm

GPT-NeoX-Japanese

model_typegpt_neox_japanese
vLLMno
LayerNorm

GPT-OSS

model_typegpt_oss
vLLMyes
Attention sinkSliding windowMixture of expertsBiased q, k, vGrouped-query attention

GPT-J

model_typegptj
vLLMyes
Parallel blockPartial rotaryInterleaved rotaryLayerNorm

Granite

model_typegranite
vLLMyes
Scaled residual addsEmbedding multiplierScaled logitsGrouped-query attention

Granite Swash

model_typegranite_swa
vLLMno
Scaled residual addsSliding windowSink-scaled headsEmbedding multiplierScaled logitsGrouped-query attention

GraniteMoE

model_typegranitemoe
vLLMyes
Scaled residual addsMixture of expertsEmbedding multiplierScaled logitsGrouped-query attention

Granite Swash MoE

model_typegranitemoe_swa
vLLMno
Scaled residual addsSliding windowSink-scaled headsMixture of expertsEmbedding multiplierScaled logitsGrouped-query attention

Granite 4.0

model_typegranitemoehybrid
vLLMno
Scaled residual addsHybridState space (Mamba-2)Blocks without rotaryMixture of expertsEmbedding multiplierScaled logitsGrouped-query attention

GraniteMoE-Shared

model_typegranitemoeshared
vLLMno
Scaled residual addsMixture of expertsEmbedding multiplierScaled logitsGrouped-query attention

Helium

model_typehelium
vLLMno
Interleaved rotary

Hunyuan

model_typehunyuan_v1_dense
vLLMyes
Query/key normsGrouped-query attention

Hunyuan-A13B

model_typehunyuan_v1_moe
vLLMyes
Query/key normsMixture of expertsGrouped-query attention

HyperCLOVA X

model_typehyperclovax
visionQwen ViT
vLLMyes
Sandwich normsEmbedding multiplierScaled logitsGrouped-query attentionVision-language

JambaJamba 1.5–1.7Jamba2

model_typejamba
vLLMno
HybridSelective scan (Mamba-1)Blocks without rotaryMixture of expertsUnnormalized routingGrouped-query attentionMulti-query attention

JetMoE

model_typejetmoe
vLLMno
Attention expertsMixture of expertsGrouped-query attention

Kimi K2

model_typekimi_k2
vLLMyes
Latent attentionInterleaved rotaryMixture of expertsDense first blocks

Kimi-Linear

model_typekimi_linear
vLLMno
HybridLatent attentionBlocks without rotaryMixture of expertsDense first blocks

Laguna XSLaguna SLaguna M

model_typelaguna
vLLMyes
Per-block sizesQuery/key normsOutput gateSliding windowPartial rotaryMixture of expertsDense first blocksGrouped-query attention

Llama

model_typellama
visionCLIP · SigLIP
vLLMyes
Grouped-query attentionVision-language

Llama 4

model_typellama4_text
visionLlama 4 ViT
vLLMyes
Query/key normsBlocks without rotaryChunked attentionMixture of expertsInterleaved mixtureGrouped-query attentionVision-language

Mamba

model_typemamba
vLLMno
Selective scan (Mamba-1)

Mamba-2

model_typemamba2
vLLMno
State space (Mamba-2)One sublayer per block

MiMo-V2-Flash

model_typemimo_v2_flash
vLLMyes
Attention sinkPer-block sizesSliding windowPartial rotaryMixture of expertsDense first blocksGrouped-query attention

MiniMax-M2MiniMax-M2.1MiniMax-M2.5MiniMax-M2.7

model_typeminimax_m2
vLLMyes
Query/key normsMixture of expertsPartial rotaryGrouped-query attention

Ministral

model_typeministral
vLLMno
Sliding windowGrouped-query attention

Ministral 3

model_typeministral3
visionPixtral
vLLMyes
Grouped-query attentionVision-language

MistralMistral NemoMistral Small

model_typemistral
visionPixtral · CLIP
vLLMyes
Sliding windowGrouped-query attentionVision-language

Mixtral

model_typemixtral
vLLMyes
Mixture of expertsGrouped-query attention

MPT

model_typempt
vLLMno
ALiBiLayerNorm

Nemotron-4Minitron

model_typenemotron
vLLMyes
LayerNorm1 + weight norm gainPartial rotarySquared ReLUGrouped-query attention

Nemotron-HNemotron Nano 2Nemotron 3

model_typenemotron_h
vLLMno
One sublayer per blockHybridState space (Mamba-2)Blocks without rotarySquared ReLUMixture of expertsGrouped-query attention

OLMoOLMo 0424OLMo 0724

model_typeolmo
vLLMyes
LayerNorm

OLMo 2

model_typeolmo2
vLLMyes
Post-norms onlyQuery/key normsGrouped-query attention

OLMo 3OLMo 3.1

model_typeolmo3
vLLMyes
Post-norms onlyQuery/key normsSliding windowGrouped-query attention

OLMo-Hybrid

model_typeolmo_hybrid
vLLMno
HybridPost-norms onlyQuery/key normsBlocks without rotary

OLMoE

model_typeolmoe
vLLMyes
Query/key normsMixture of expertsUnnormalized routing

OPT

model_typeopt
vLLMyes
No MLP modulePosition embeddingsLayerNormBiased q, k, vPost-LN

Persimmon

model_typepersimmon
vLLMno
Biased q, k, vQuery/key normsPartial rotarySquared ReLULayerNorm

Phi-1Phi-1.5Phi-2

model_typephi
vLLMyes
Parallel blockPartial rotaryBiased q, k, vLayerNorm

Phi-3Phi-3.5Phi-4

model_typephi3
vLLMyes
Sliding windowPartial rotaryGrouped-query attention

Phi-3.5-MoE

model_typephimoe
vLLMyes
Mixture of expertsBiased q, k, vLayerNormSliding windowGrouped-query attention

Qwen2Qwen2.5

model_typeqwen2
visionSigLIP
vLLMyes
Biased q, k, vGrouped-query attentionVision-language

Qwen2.5-VL

model_typeqwen2_5_vl_text
visionQwen ViT
vLLMyes
Biased q, k, vMultimodal rotaryGrouped-query attentionVision-language

Qwen1.5-MoEQwen2-MoE

model_typeqwen2_moe
vLLMyes
Biased q, k, vMixture of expertsUnnormalized routingGrouped-query attention

Qwen2-VL

model_typeqwen2_vl_text
visionQwen ViT
vLLMyes
Biased q, k, vMultimodal rotaryGrouped-query attentionVision-language

Qwen3

model_typeqwen3
vLLMyes
Query/key normsGrouped-query attention

Qwen3.5-MoEQwen3.6-MoE

model_typeqwen3_5_moe_text
visionQwen ViT
vLLMno
HybridGated queryMixture of expertsQuery/key normsPartial rotary1 + weight norm gainMultimodal rotaryGrouped-query attentionVision-language

Qwen3.5Qwen3.6

model_typeqwen3_5_text
visionQwen ViT
vLLMno
HybridGated queryQuery/key normsPartial rotary1 + weight norm gainMultimodal rotaryGrouped-query attentionVision-language

Qwen3-MoE

model_typeqwen3_moe
vLLMyes
Query/key normsMixture of expertsGrouped-query attention

Qwen3-NextQwen3-Coder-Next

model_typeqwen3_next
vLLMno
HybridGated queryMixture of expertsQuery/key normsPartial rotary1 + weight norm gainGrouped-query attention

Qwen3-VL-MoE

model_typeqwen3_vl_moe_text
visionQwen ViT
vLLMno
Query/key normsMultimodal rotaryMixture of expertsGrouped-query attentionVision-language

Qwen3-VL

model_typeqwen3_vl_text
visionQwen ViT
vLLMyes
Query/key normsMultimodal rotaryGrouped-query attentionVision-language

Seed-OSS

model_typeseed_oss
vLLMyes
Biased q, k, vGrouped-query attention

SmolLM3

model_typesmollm3
vLLMyes
Blocks without rotaryGrouped-query attention

Solar Open

model_typesolar_open
vLLMno
Mixture of expertsGrouped-query attention

StableLM 2StableLM-3B

model_typestablelm
vLLMyes
LayerNormPartial rotaryBiased q, k, vParallel blockQuery/key normsGrouped-query attention

StarCoder2

model_typestarcoder2
vLLMyes
LayerNormBiased q, k, vSliding windowGrouped-query attention

VaultGemma

model_typevaultgemma
vLLMno
Scaled embeddings1 + weight norm gain

XGLM

model_typexglm
vLLMno
No MLP moduleScaled embeddingsPosition embeddingsLayerNormBiased q, k, v

Youtu-LLM

model_typeyoutu
vLLMno
Latent attentionInterleaved rotary

ZAYA1

model_typezaya
vLLMno
Scaled residual addsEmbedding multiplierPartial rotaryConvolved queries and keysSliding windowMixture of expertsUnnormalized routingGrouped-query attention

kimi_k25

nnterp.families.kimi_k25 · page not written yet