Skip to content
LearnAI

5.5Llama, Mistral, Gemma, GLM, gpt-oss & more

Short, verified profiles of the other open-weight families that matter, what each one is known for, and the idea it contributed.

⏱ 13 minIntermediate

A field guide, not a leaderboard

The previous three lessons went deep on three families. This one goes wide. For each family you get its arc, its newest verified release as of December 2026, and the one idea it is best known for. We stay qualitative where numbers couldn’t be confirmed against a primary source; the comparison lesson puts the verified numbers side by side.

ANALOGY· A bird-watcher's field guide

A field guide doesn’t rank birds; it teaches you to recognize them. Each entry gives you field marks (the distinguishing architecture or training idea), the habitat (what hardware and use cases the family targets) and the range map (its license and where you can legally use it).

Once you know the field marks, you’ll spot them everywhere: sliding-window attention is Gemma’s plumage, MXFP4 weights are gpt-oss’s call, and “fully open data” is OLMo’s unmistakable song.

INTERACTIVEFamily cards

Llama → Muse

Meta
Muse Spark Open (Oct 2026): 816B / 42B MoE

Made open weights mainstream; Llama 4 switched to natively multimodal MoE; the 2026 Muse line takes text, image, video and audio input.

MoEDenseMultimodal

Mistral

Mistral AI
Mistral Large 4 (Oct 2026): ~1T / 49B MoE, 1M context

Europe’s open-weight lab. Mixtral popularized open sparse MoE; Small models target one GPU; Large 3 and 4 return to frontier scale.

MoEPermissive licenseMultimodal

Gemma

Google DeepMind
Gemma 4 (Apr 2026): 31B dense and 26B-A4B MoE

Small, efficient models distilled from Gemini research. Interleaves cheap sliding-window layers with a few global ones to keep long-context KV cache small.

DenseMoESingle-GPU sizesMultimodalPermissive license

GLM

Z.ai (Zhipu AI)
GLM-5.3 (Aug 2026), same base as GLM-5.2

Agent-first MoE models with hybrid thinking; GLM-5 adopted DeepSeek Sparse Attention and trains with the open “slime” async RL framework.

MoEPermissive licenseLinear / sparse attention

gpt-oss

OpenAI
gpt-oss-120b / 20b (Aug 2025); no newer OpenAI open LLM found

Reasoning MoEs shipped with MXFP4 expert weights so the 120b fits one 80 GB GPU and the 20b fits 16 GB. Must be prompted in the “harmony” chat format.

MoEPermissive licenseSingle-GPU sizes

MiniMax

MiniMax
MiniMax-M3 / M3.1-Flash (2026): ~428B / ~23B

Pioneered linear (“lightning”) attention at scale for 1M-token context, then moved to its own sparse attention (MSA). Introduced the CISPO RL algorithm.

MoELinear / sparse attentionMultimodal

Nemotron

NVIDIA
Nemotron 3 Ultra (Jun 2026): 550B / 55B

Hybrid Mamba (state-space) + attention MoE, pretrained directly in 4-bit NVFP4, released together with large parts of its pre- and post-training data.

MoELinear / sparse attentionFully open data

OLMo

Ai2
Olmo 3 / 3.1 (Nov–Dec 2025): 7B and 32B

The reference “fully open” family: weights, training data, code, logs and intermediate checkpoints, so researchers can study every stage.

DenseFully open dataSingle-GPU sizes

Filter by a trait, then flip a card for its verified key numbers. Tags are coarse: “Single-GPU sizes” means the family includes models that fit one data-center or consumer GPU.

Filter by a trait, then press Key facts on a card to flip it to its verified numbers. Tags are coarse groupings, not rankings.

Meta: Llama, then Muse

Meta made open weights mainstream. Llama 3.1 (July 2024) topped out at 405B dense parameters with 128K context and 15.6T training tokens: for a while the largest and best open model. Llama 4 (April 2025) switched to mixture of expertsMixture of Experts (MoE)An architecture in which each token is routed to a few of many 'expert' sub-networks, so total parameters can be huge while compute per token stays small. and native multimodality, with early fusion of text and image tokens in one backbone. Scout has 109B total and 17B active parameters across 16 experts, with a claimed 10M-token context and about 40T training tokens. Maverick has 400B total and 17B active across 128 experts, 1M context and about 22T tokens. A much larger teacher model, Behemoth, was previewed but not released, and Llama 4’s reception was mixed.

Llama 4 remains the latest model under the Llama name. Meta’s newer open release carries a new brand: Muse Spark Open (15 October 2026), an 816B-total, 42B-active MoE with 256 experts (8 active), grouped-query attention with gating and QK-norm, a 1M-token context, and input of text, images, video and audio. Its Muse Model License requires a “Built with Muse Spark Open” notice and a separate agreement for Model-as-a-Service businesses above US$20M revenue in a 12-month period.

Field mark: the community license with a 700M-MAU cap and “Built with Llama”, copied by many later licenses.

Mistral AI

Paris-based Mistral proved a small lab could compete. Mixtral 8x7B (December 2023) brought sparse MoE to the open world: 8 experts with 2 active per token, 46.7B total and 12.9B active, Apache 2.0. Mistral then focused on efficient mid-size models such as the 24B Mistral Small 3 line and Magistral Small, a 24B reasoning model.

At the top end, Mistral Large 3 (December 2025) returned to frontier scale with an Apache-licensed granular MoE: 675B total and 41B active, of which the language model is 673B/39B and the rest a 2.5B vision encoder. Mistral Small 4 (March 2026) is a 119B MoE with only 6.5B active per its model card (Mistral’s announcement says 6B, or 8B with embeddings), 128 experts with 4 active, and 256K context. The newest, Mistral Large 4 (October 2026), has about 1T total and 49B active parameters (52B counting embeddings and output layer), 128 routed experts with 4 active plus 1 shared, a 1M-token context and image input. It was trained on 3,800 NVIDIA Grace Blackwell GPUs in Mistral’s own European data centers. Large 4 ships under a new “Mistral Ecosystem Open-Weight License”, a modified MIT that requires a commercial license for MaaS businesses.

Field mark: European sovereignty plus Apache-licensed MoE, now with a MaaS carve-out at the top.

Google: Gemma

Gemma is Google DeepMind’s open line, built from Gemini research and tuned for running on one accelerator or a phone. Gemma 3 (March 2025) came in 1B, 4B, 12B and 27B sizes with 128K context (32K for the 1B), image input from 4B up, 140+ languages, and up to 14T training tokens for the 27B. Its key trick is interleaved local and global attention: five sliding-window layers that only look at the last 1,024 tokens for every one global layer, which shrinks the KV cacheKV cacheStored keys and values from earlier tokens, reused during generation so they aren't recomputed at every step. dramatically (see the Math Corner). Gemma 3n targeted phones with “effective” 2B and 4B sizes, using a MatFormer design that nests a smaller model inside a larger one.

Gemma 4 (2 April 2026) launched with E2B and E4B edge models, a 31B dense model and a 26B A4B MoE (25.2B total, 3.8B active, 128 experts with 8 active plus 1 shared), with 128K context on edge sizes and 256K on the others; the model card now also lists a 12B “Unified” dense model. Its final layer is always global. Notably, Gemma 4 moved from the custom Gemma Terms of Use to Apache 2.0.

Field mark: sliding-window/global interleaving and small models that punch above their size.

Z.ai: GLM

Zhipu AI, now branded Z.ai, grew out of Tsinghua University research. GLM-4.5 (July 2025) is a 355B-total, 32B-active MoE (plus a 106B/12B “Air” version) with hybrid thinkingHybrid thinking modeOne model that can either reason step by step before answering (thinking) or answer directly (non-thinking), switched per request, e.g. Qwen3's /think and /no_think., 128K context and an MIT license, positioned for “agentic, reasoning and coding” work. GLM-5 (early 2026) scaled to 744B total and 40B active, raised pretraining from 23T to 28.5T tokens, adopted DeepSeek Sparse AttentionDeepSeek Sparse Attention (DSA)A fine-grained sparse attention introduced in DeepSeek-V3.2-Exp: a lightweight indexer scores past tokens and each query attends only to the top-scoring ones, cutting long-context cost., and was post-trained with slime, Z.ai’s open asynchronous RL framework, which keeps GPUs busy while long agent rollouts finish.

GLM-5.1, 5.2 and 5.3 keep the GLM-5 base size; GLM-5.3 (mid-2026) improves purely through post-training on the GLM-5.2 base, and its card lists a custom glm-5.3 license rather than MIT. GLM-5.4 was reportedly launched in November 2026 as an API model with open weights promised later; that could not be confirmed from Z.ai’s own pages.

Field mark: open RL infrastructure and fast adoption of DeepSeek’s sparse attention.

OpenAI: gpt-oss

In August 2025 OpenAI released its first open-weight language models since GPT-2. gpt-oss-120b has 117B total and 5.1B active parameters (36 layers, 128 experts, 4 active); gpt-oss-20b has 21B total and 3.6B active (24 layers, 32 experts, 4 active). Both have 128K context, alternate dense and locally banded sparse attention, and use grouped-query attention.

Their distinctive choice was precision: the MoE weights were post-trained in MXFP4MXFP4A 4-bit floating-point microscaling format: small blocks of FP4 values share one scale factor. gpt-oss ships its MoE weights in MXFP4., a 4-bit format, so the 120b fits on a single 80 GB GPU and the 20b runs in 16 GB of memory. They are reasoning models with adjustable effort (low, medium, high, set in the system prompt), and they only work correctly with OpenAI’s harmony chat format, which separates reasoning, tool calls and final answers into channels. Apache 2.0. Apart from the gpt-oss-safeguard safety classifiers (October 2025, fine-tunes of these two), no newer OpenAI open-weight LLM had appeared as of December 2026.

Field mark: 4-bit weights as the shipping format, not an afterthought.

MiniMax

Shanghai’s MiniMax has been the boldest experimenter with attention. MiniMax-Text-01 (456B total, 45.9B active) introduced lightning attention, a hybrid with mostly linear-attentionLinear attentionAttention variants (e.g. Gated DeltaNet, Kimi Delta Attention, lightning attention) that keep a fixed-size recurrent state instead of a growing KV cache, so cost grows linearly with sequence length. Usually mixed with a few full-attention layers. layers. MiniMax-M1 (June 2025), built on it, supported 1M-token context and introduced the CISPO RL algorithm, which clips importance-sampling weights instead of token updates; its full RL run took three weeks on 512 H800s at a reported rental cost of $534,700. MiniMax-M2 (October 2025, 230B total, 10B active) focused on coding and agents.

The newest generation, MiniMax-M3 and M3.1-Flash (2026), has roughly 428B total and 23B active parameters, a 1M-token context, text, image and video input trained from the first step, and MiniMax Sparse Attention (MSA). Licenses have shifted between versions, so check each card.

Field mark: willingness to bet the architecture on non-standard attention.

NVIDIA: Nemotron

NVIDIA’s earlier Nemotron models were mostly improved versions of other families (for example Llama-based Nemotron models). Nemotron 3 is its own architecture: a hybrid of Mamba (state-space) layers and attention inside a “LatentMoE”. Nemotron 3 Ultra (4 June 2026) has 550B total and 55B active parameters, multi-token prediction layers, up to 1M context, and was pretrained in NVFP4, NVIDIA’s 4-bit format, rather than only quantized afterwards. NVIDIA also published large parts of the pretraining and post-training data. It ships under OpenMDW-1.1, a permissive Linux Foundation license for model releases.

Field mark: 4-bit pretraining at frontier scale, plus open datasets.

Ai2: OLMo

The Allen Institute for AI’s OLMo family is the reference point for “fully open”. Ai2 releases the weights and the training data, code, logs and intermediate checkpoints, which is exactly what the OSI definitionOpen Source AI Definition (OSAID)The Open Source Initiative's definition of open-source AI (version 1.0). Besides freely licensed weights, it requires the complete training and inference code and sufficiently detailed information about the training data. asks for. Olmo 3 (November 2025) includes dense 7B and 32B Base and Think (reasoning) models plus 7B Instruct and RL-Zero variants, pretrained on a roughly 5.9T-token mix drawn from the ~9.3T-token Dolma 3 corpus (5.5T tokens for the 32B), with a 65K-token context. Olmo 3.1 (December 2025) added updated 32B Think and Instruct models. OLMo is not the strongest model in this lesson, but it is the one you can fully study, reproduce and audit.

Field mark: everything is open, so research on training dynamics can use it.

MATH CORNER · optionalTwo memory tricks: MXFP4 weights and sliding windows

1. MXFP4 for gpt-oss. MXFP4 stores each weight as a 4-bit float, and every block of 32 weights shares one 8-bit scale. Bits per weight:

4+832=4.25 bits≈0.53 bytes4 + \frac{8}{32} = 4.25 \text{ bits} \approx 0.53 \text{ bytes}

If all of gpt-oss-120b’s 117B parameters were stored that way: 117×109×0.53≈62117 \times 10^9 \times 0.53 \approx 62 GB. In BF16 it would be 117×2=234117 \times 2 = 234 GB. In reality the attention and embedding weights stay in higher precision, but since the MoE weights are the vast majority, the total stays near the low end, which is how it fits one 80 GB GPU with room for the KV cache.

2. Gemma 3’s 5:1 local/global attention. Local layers only cache the last W=1,024W = 1{,}024 tokens; global layers cache all TT. With 5 local layers per global layer, the KV cache relative to an all-global model is

16+56⋅min⁡(W,T)T\frac{1}{6} + \frac{5}{6}\cdot\frac{\min(W, T)}{T}
context TTfraction of all-global cache
1K1.00
8K0.27
32K0.19
128K0.17

At 128K context the cache is about 5.8× smaller, and the global layers still let information travel the whole sequence.

In code

Running gpt-oss-20b locally with Transformers (the chat template applies the harmony format for you):

from transformers import pipeline

pipe = pipeline("text-generation", model="openai/gpt-oss-20b",
                torch_dtype="auto", device_map="auto")

messages = [
    {"role": "system", "content": "Reasoning: low"},   # low | medium | high
    {"role": "user", "content": "Explain MXFP4 in two sentences."},
]
out = pipe(messages, max_new_tokens=256)
print(out[0]["generated_text"][-1]["content"])

The same pipeline call works for Gemma, Mistral Small, OLMo and most other families; the differences live in their chat templates and recommended sampling settings.

COMMON MISCONCEPTIONS
  • “Llama 4 is Meta’s latest open model.” It is the latest Llama. Meta’s newest open release as of late 2026 is Muse Spark Open, under a different license.
  • “Gemma is not really open.” Gemma 1–3 used custom terms with a use policy, but Gemma 4 is Apache 2.0.
  • “gpt-oss is quantized after the fact, so it must be worse than its ‘real’ version.” Its MoE weights were post-trained in MXFP4; the 4-bit model is the released model, not a degraded copy.
  • “Fully open models are just weaker open-weight models.” Their point is reproducibility: with OLMo you can trace behavior back to training data and checkpoints, which no weights-only release allows.

Check your understanding

0/4 answered
  1. Q1.Llama 4 Scout and Maverick both have 17B active parameters. What mainly differs?

  2. Q2.Why does Gemma 3's KV cache shrink so much at long context?

  3. Q3.What made gpt-oss-120b fit on a single 80 GB GPU?

  4. Q4.Which family most closely matches the OSI's Open Source AI Definition?

Further reading

Progress is saved in this browser only.
Type to search across all lessons and glossary terms.