Özer Cem KELAHMETKELAHMET
Articles · Open models

How open models reach 1M tokens: Kimi K3, GLM-5.3-Flash and MiniMax-M3 compared

The leading open-weight models from Moonshot AI, Z.ai and MiniMax all accept a million tokens, but each uses a different attention design: delta attention, hybrid sparse and linear layers, or a custom sparse operator. This guide explains the designs, results, prices and licences.

Download Markdown
At a glance
Reading time
13 min
Sections
12
Code examples
2
Tables
2
Sources
9
Published
23 Nov 2026
In 30 seconds
What changed
MiniMax publishes MiniMax-M3 and its sparse attention
Why it matters
For teams that need open weights and long context, there is now real choice.
What to do
Define your context need

A year ago, a million-token context window was a feature of a few closed models. In late 2026 it is standard among the strongest open-weight models. Moonshot AI's Kimi K3, Z.ai's GLM-5.3 and GLM-5.3-Flash, and MiniMax's MiniMax-M3 all list 1M-token contexts, all publish weights, and all can be downloaded and run by anyone with enough hardware and a licence they accept.

What is interesting is that they do not get there the same way. Attention, the part of a transformer that lets each token look at earlier tokens, gets more expensive as the context grows. The three labs have each made a different bet on how to tame that cost. Moonshot mixes a fast "delta" attention with a smaller number of full attention layers. Z.ai's GLM-5.3-Flash combines sparse and linear attention. MiniMax built its own sparse attention operator.

This guide explains each design in plain terms, sets out the models' sizes, prices and licences from their official repositories and APIs, and gives a practical way to choose. It also places Google's Gemma 4 and the Allen Institute's OLMo in the picture. There was no major open-weight release from these labs in the seven days before publication, so this is a guide to the current state. For the largest models, see also our earlier article on sizing giant open MoE models.

What happened

MiniMax publishes MiniMax-M3 and its sparse attention (June 2026)

MiniMax released MiniMax-M3, "a native multimodal model with 1M context" with "~428B parameters and ~23B activated parameters", and a technical report on arXiv (2606.13392). The repository says M3 "delivers 9× prefill and 15× decode speedups compared to M2 at 1M context, reducing per-token compute to 1/20", using a new operator, MiniMax Sparse Attention (MSA).

Moonshot releases the full Kimi K3 weights (27 July 2026)

Simon Willison's link blog and several outlets reported the release of Kimi K3's weights in late July. The official repository describes "a 2.8T-parameter model built on Kimi Delta Attention (KDA) and Attention Residuals (AttnRes), with native vision capabilities and a 1-million-token context window", calling it "the world's first open 3T-class model".

Z.ai releases GLM-5.3 and GLM-5.3-Flash (26 August 2026)

MarkTechPost reported on 26 August that Z.ai released GLM-5.3-Flash, "a 320B-A18B natively multimodal MoE with a 1M-token context". The GLM-5 repository says GLM-5.3-Flash "starts from a newly trained base model" and, "for the first time in the GLM series", uses "a hybrid architecture combining sparse and linear attention". GLM-5.3, the larger sibling, "uses the same base model as GLM-5.2" with all gains from post-training.

The models side by side

The table combines each lab's repository with API prices from the labs' own platforms, as recorded in the LiteLLM catalogue.

Table 1. The models side by side
Model Total / active parameters Context Inputs Lab API price per 1M (input / output) Licence
Kimi K3 2.8T / 104B 1,048,576 Text, image $3 / $15 (Moonshot) Kimi K3 License
GLM-5.3 744B / 40B 1,000,000 Text $1.40 / $4.40 (Z.ai) See repository licence
GLM-5.3-Flash 320B / 18B 1,048,576 Text, image $0.15 / $0.50 (Z.ai) MIT, as reported at launch
MiniMax-M3 about 428B / about 23B 1,000,000 Text, image, video $0.30 / $1.20 (MiniMax) See licence file on Hugging Face
Gemma 4 31B and 26B-A4B 31B dense; 26B / 4B active 262,144 on the Gemini API Text, image Listed at no charge on the Gemini API See Gemma terms
OLMo 2 (1B to 32B) 1B, 7B, 13B, 32B dense See model cards Text Self-hosted See repository licence

Two newer variants also appear on the labs' APIs: Kimi K3.1 Pro at $2 and $10 and MiniMax-M3.1 Flash at $0.15 and $0.60. Prices from third-party hosts can be lower; FriendliAI, for example, lists GLM-5.3 at $1.26 and $3.96.

Why long context is hard

In standard attention, each new token compares itself with every earlier token. Doubling the context doubles the work for every new token and doubles the memory for the stored keys and values. At a million tokens, both become very large. Our KV cache simulation and the attention simulation show the effect.

There are three broad ways out:

  1. Keep a fixed-size summary instead of every token. This is linear attention and its relatives, including delta networks and state-space models. Cost per token stays flat, but precise recall of a specific old token is harder.
  2. Look at only some earlier tokens. This is sparse attention. A cheap selector picks the tokens that matter, and full attention runs only on those.
  3. Mix the two. Most layers use a cheap method; a few full or sparse attention layers keep exact recall.

The three labs sit at different points on that map.

Design 1: Kimi K3's delta attention with gated MLA

Kimi K3 has 93 layers. According to its model card, 69 use Kimi Delta Attention (KDA) and 24 use Gated MLA, a form of multi-head latent attention, which compresses stored keys and values. KDA belongs to the linear family: it keeps a running memory that is updated, using a "delta rule", as each token arrives.

An analogy: KDA layers are a student's running notes during a long lecture, updated and corrected as they go. The MLA layers are the occasional moments when the student flips back through the full recording to check an exact quote. With roughly three note-taking layers for every lookup layer, most of the work stays cheap.

The model is also very sparse in its feed-forward part: 896 experts, of which 16 are selected per token, plus 2 shared experts, giving 104 billion active parameters out of 2.8 trillion. It was trained with quantisation-aware training for MXFP4 weights and MXFP8 activations, so the 4-bit version is the native one, not an afterthought. At 4 bits, 2.8 trillion parameters still need about 1.4 TB of memory. Our article on NVFP4 and MXFP4 explains these formats.

Moonshot's own note on its BrowseComp result shows how context management matters: it reports using context compaction at 300K tokens, and says that "when evaluated with the full 1M-token context window and no context management, Kimi K3 achieves a score of 90.4". That is a maker-reported figure.

Design 2: GLM's sparse indexers and the Flash hybrid

Z.ai's GLM-5 integrated DeepSeek Sparse Attention, in which a lightweight "indexer" chooses which earlier tokens each new token should attend to. GLM-5.2 added IndexShare, which "reuses the same indexer across every four sparse attention layers, reducing per-token FLOPs by 2.9× at a 1M context length". If the indexer is a librarian who finds the relevant pages, IndexShare lets four readers share one librarian's list instead of each asking separately.

GLM-5.3-Flash goes further with a new base model that combines sparse and linear attention, plus Manifold-Constrained Hyper-Connections (mHC), which Z.ai says "further improve scaling efficiency", trained on "our latest 30T-token multimodal pre-training corpus". The repository does not publish the exact layer mix in the sections we read.

Maker-reported results for GLM-5.2, the base of GLM-5.3, give a sense of level: 81.0 on Terminal-Bench 2.1 against 62.0 for GLM-5.1, and 62.1 against 58.4 on SWE-bench Pro, with Z.ai noting Claude Opus 4.8 at 85.0 on Terminal-Bench 2.1. For GLM-5.3, Z.ai claims "a 50% improvement over GLM-5.2 on our in-house Z.ai Code Bench".

GLM-5.3 and GLM-5.3-Flash accept a reasoning_effort of low, high or max, defaulting to max, and their chat template sets clear_thinking to false unless told otherwise. The repository advises passing clear_thinking=true for chat use.

Design 3: MiniMax's custom sparse operator

MiniMax built MiniMax Sparse Attention (MSA) as its own operator "designed for million-token contexts", released in a separate repository. Compared with grouped-query attention (GQA), the common baseline, MiniMax says MSA "dramatically reduces the attention compute and memory footprint while preserving model quality". The headline figures, 9 times faster prefill and 15 times faster decoding than M2 at 1M tokens, are maker-reported.

With about 23 billion active parameters out of about 428 billion, M3 is the lightest of the three per token. That shows in its price: $0.30 and $1.20 per million tokens on MiniMax's API, a tenth of Kimi K3's.

Comparing the designs

Table 2. Comparing the designs
Kimi K3 GLM-5.3-Flash MiniMax-M3
Main long-context method Linear delta attention (KDA) in 69 of 93 layers, with Gated MLA Hybrid of sparse and linear attention Custom sparse operator (MSA)
Active parameters per token 104B 18B about 23B
Native precision MXFP4 weights, MXFP8 activations FP8 and BF16 checkpoints See model card
API price per 1M (input / output) $3 / $15 $0.15 / $0.50 $0.30 / $1.20
Memory for weights at 4 bits about 1.4 TB about 160 GB about 214 GB

The memory figures are simple arithmetic, total parameters times half a byte, and exclude the cache. They show why GLM-5.3-Flash and MiniMax-M3 are within reach of a single 8-GPU server, while Kimi K3 needs a cluster.

Where Gemma 4 and OLMo fit

Not every open model aims at a million tokens. Google's Gemma 4 family, supported by the gemma JAX library, includes a 31B dense model and a 26B mixture-of-experts model with 4B active parameters, both listed with a 262,144-token context and at no charge on the Gemini API. The library's example uses a small "E4B" variant for multi-turn, multimodal chat. These are models for a single GPU or a laptop rather than a cluster.

The Allen Institute's OLMo takes a different kind of openness. Its repository publishes training configurations, intermediate checkpoints, Weights & Biases logs and the random seeds used for different training runs for OLMo 2 at 1B, 7B, 13B and 32B. If you need to study how a model was trained, not just use it, OLMo is the reference. See our pages on small language models and Gemma 4.

Running one yourself

All three large models document serving with vLLM and SGLang. The GLM repository, for example, links recipes for GLM-5.3-Flash on SGLang, vLLM, TokenSpeed, Transformers, KTransformers and Unsloth. A typical OpenAI-compatible call to a self-hosted server looks like this:

from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
resp = client.chat.completions.create(
    model="zai-org/GLM-5.3-Flash",
    messages=[{"role": "user", "content": "Find every mention of liability caps in these contracts: ..."}],
    extra_body={"reasoning_effort": "high"},
)
print(resp.choices[0].message.content)

Check each model card for the exact flags, such as reasoning and tool-call parsers. Our pages on vLLM and SGLang cover serving in depth.

What it means in practice

For teams that need open weights and long context, there is now real choice. GLM-5.3-Flash and MiniMax-M3 offer 1M-token context with low active parameter counts and modest API prices. Kimi K3 is far larger and costlier, and its maker compares it directly with closed frontier models on agent benchmarks.

The designs matter beyond speed. Linear and hybrid attention can struggle with exact recall of one detail far back in the context, while sparse attention depends on its selector picking the right tokens. Test your own long-context tasks, especially "find the needle" questions and cross-document reasoning, rather than trusting a context-length number.

Licences differ sharply. Kimi K3 uses its own Kimi K3 License. GLM-5.3-Flash was reported at launch as MIT. MiniMax and Gemma use their own terms. Read each before you build a product.

What to do now

  1. Define your context need. Measure the longest prompts you really send; many teams need 128K, not 1M.
  2. Test long-context recall. Build a small set of questions whose answers sit deep in long documents and run it on each candidate.
  3. Start with the cheap API tiers. Try GLM-5.3-Flash and MiniMax-M3 through their labs' APIs before buying hardware.
  4. Size hardware from active and total parameters. Total parameters set memory; active parameters set speed.
  5. Use native low-precision checkpoints. Kimi K3's MXFP4 weights and GLM's FP8 checkpoints are the intended deployment formats.
  6. Set reasoning effort deliberately. GLM-5.3 defaults to max; lower it for routine requests to save tokens.
  7. Read every licence. Kimi K3 License, MIT, MiniMax's licence and Gemma's terms differ in what they allow.
  8. Keep an eye on smaller open options. For single-GPU deployments, compare Gemma 4 and OLMo 2 before choosing a giant model.

Risks and open questions

Most results are maker-reported. The speed-ups and benchmark scores here come from the labs. Independent long-context evaluations are scarcer than headline claims.

Context length is not context quality. A model that accepts 1M tokens may still miss details at that length. Moonshot's own use of compaction at 300K tokens for one benchmark shows the trade-off.

Licences may change between versions. Point releases such as Kimi K3.1 and MiniMax-M3.1 can ship on different terms from their predecessors, so check the licence of the exact checkpoint you deploy.

Hardware needs vary by an order of magnitude. Kimi K3 needs about 1.4 TB for weights at 4 bits; GLM-5.3-Flash about 160 GB.

Watch next: new open checkpoints from Moonshot, Z.ai and MiniMax, independent long-context benchmarks comparing linear, hybrid and sparse designs, and whether other labs adopt IndexShare or MSA.

Frequently asked questions

Which open-weight models support a 1M-token context?

Kimi K3, GLM-5.3, GLM-5.3-Flash and MiniMax-M3 all list contexts of about one million tokens in their official repositories or APIs. Gemma 4 models are listed at 262,144 tokens on the Gemini API.

What is Kimi Delta Attention?

It is the linear attention layer Moonshot AI uses in 69 of Kimi K3's 93 layers. It keeps a running memory updated with a delta rule instead of storing every past token, while the remaining 24 Gated MLA layers provide precise lookups.

Is GLM-5.3-Flash cheaper than MiniMax-M3?

On their makers' APIs, yes: GLM-5.3-Flash costs $0.15 and $0.50 per million tokens against MiniMax-M3's $0.30 and $1.20. MiniMax also offers an API-only M3.1 Flash at $0.15 and $0.60.

How much memory does Kimi K3 need?

Its 2.8 trillion parameters need about 1.4 TB at 4 bits per weight, before the attention cache. That requires a multi-node GPU cluster.

Which open model is the most transparent about training?

The Allen Institute's OLMo publishes training configurations, intermediate checkpoints, training logs and seeds for OLMo 2. NVIDIA's Nemotron models also publish recipes and much of their data.

Summary

Kimi K3 (2.8T total, 104B active), GLM-5.3-Flash (320B, 18B active) and MiniMax-M3 (about 428B, about 23B active) all offer open weights and 1M-token context, but they control attention cost differently: delta attention mixed with Gated MLA, a hybrid of sparse and linear attention, and a custom sparse operator. Their makers report large efficiency gains, and their API prices range from $0.15 to $3 per million input tokens. Licences and hardware needs differ widely. Measure the context you really need, test long-context recall on your own data, start with the cheaper APIs and read each licence before you build.

Sources

Cite this article

Kelahmet, Ö. C. (2026, November 23). How open models reach 1M tokens: Kimi K3, GLM-5.3-Flash and MiniMax-M3 compared. Özer Cem KELAHMET. https://www.ozercemkelahmet.com/articles/open-models-million-token-attention-kimi-glm

BibTeX
@online{kelahmet2026open,
  author = {Kelahmet, {\"O}zer Cem},
  title  = {{How open models reach 1M tokens: Kimi K3, GLM-5.3-Flash and MiniMax-M3 compared}},
  year   = {2026},
  month  = {nov},
  url    = {https://www.ozercemkelahmet.com/articles/open-models-million-token-attention-kimi-glm}
}
Version historyfirst version
  1. Published

Factual corrections are listed here with what changed. Wording and formatting edits are not listed.

Last updated Nov 23, 2026
Type to search.
    ↑↓ navigate↵ open