TechDec 4, 20260G Labs

0GM-2.0: an AI model with 120M tokens of memory

0GM-2.0 keeps up to 120 million tokens of memory inside the model, per account, and it is live today on pc.0g.ai.

Every AI model has a point where it starts to forget. The context window fills up, the oldest messages fall out, and you paste the backstory in again.

The usual fix is retrieval. A separate system stores your history, searches it and hands the model a few passages it hopes are the right ones. That works when the answer sits in one place. It breaks when the answer depends on two details that were mentioned months apart, or when the search never surfaces the passage that mattered.

0GM-2.0 takes a different route. It is a 35-billion-parameter model from 0G Labs with long-term memory built in: it keeps up to 120 million tokens of memory per account inside the model itself, and decides on its own when to look back. It follows 0GM-1.0, which launched in May.

"Every AI model today has a point where it starts to forget, and people end up repeating themselves and recreating much needed context from scratch," said Michael Heinrich, Co-Founder and CEO of 0G Labs. "With 0GM-2.0, we've pushed the current normal limit by 120x, even at 35 billion parameters." He is comparing it with the 1 million-token context windows of today's leading models.

What's launching

0GM-2.0 is available from today at pc.0g.ai, through the chat playground and through an OpenAI-compatible API. For the first week it is only available there.

SpecificationValue
Model0GM-2.0 (memory system: 0GM-CMSA)
ArchitectureMixture of Experts, built on Qwen3.6-35B-A3B
Total parameters35 billion
Active per tokenAbout 3 billion
Context window262,144 tokens per request
Max output65,535 tokens per request
MemoryUp to 120 million tokens per account
Memory lifetimeRenews each time you use the model, expires after 30 days without use
TrainingRecursive self-improvement (RSI), about 20,000 GPU hours of post-training
Accesspc.0g.ai only for the first week
WeightsHugging Face, after the first week

Two numbers in that table get mixed up, so here they are side by side. The context window is what one request can hold: 262,144 tokens. The memory is what the model can keep across all your requests and sessions: up to 120 million tokens. Nobody sends 120 million tokens in one go. The memory builds up as long conversations are saved.

Memory that lives in the model

The technique is called Conversational Memory Sparse Attention (CMSA). Instead of relying only on an external search system, CMSA gives the model a built-in memory it can read from selectively. As a conversation grows, earlier turns are saved into that memory. When a later question needs something from them, the model decides to look back and pulls in the relevant pieces. On your side there is no vector database to host and no index to build.

Diagram with two blocks: a small one labeled context window, 262K tokens per request, and a much larger one labeled memory, up to 120M tokens per account. An arrow shows conversation turns being saved into memory, and another shows the model reading back from it
One request holds 262K tokens. The model's memory holds up to 120M and grows as you work

CMSA builds on Memory Sparse Attention (MSA), a method published by EverMind researchers in March 2026 and tested there at 4 billion parameters. 0G Labs rebuilt it at 35 billion parameters, nearly nine times larger, and adapted it for conversations: memory grows as you talk, and the model decides when to look back.

Scaling was not a given. The original MSA model, at 4 billion parameters, scored 2.69 out of 5 on MuSiQue, a test where each answer needs two to four separate facts connected. 0GM-2.0 scores 4.48. Scores went up on all ten tests, and MuSiQue moved the most.

"Scaling an attention mechanism rarely comes for free. What surprised us is that at 35 billion parameters, Conversational Memory Sparse Attention didn't just hold up, it got sharper on exactly the questions that are hardest for any model to get right, the ones that require stringing several facts together rather than finding one answer in isolation," said Ming Wu, Co-Founder and CTO of 0G Labs.

0GM-2.0 was trained with recursive self-improvement (RSI). Post-training took about 20,000 GPU hours, roughly $85K of compute.

How it compares

0G Labs tested 0GM-2.0 and nine other models on ten long-memory tests, on data sets from about 300,000 tokens to 120 million tokens. Answers are scored from 0 to 5. The other models used the same retrieval setup to search each data set. 0GM-2.0 used its own memory. These are internal 0G Labs evaluations, not third-party results, and the tables combine several evaluation runs, so read small gaps as indications.

Start with the hardest comparison: the three flagship models.

Test (data set size)0GM-2.0Claude Fable 5.2Claude Opus 5.5GPT-6 Astra
2WikiMultiHopQA (0.8M)4.904.744.624.63
Natural Questions (1.6M)4.864.534.454.35
DuReader (0.3M)4.834.614.434.51
HotpotQA (1.48M)4.804.754.724.69
MS MARCO-0G (120M)4.664.264.284.20
MuSiQue (1.57M)4.484.003.813.69
MS-MARCO-2.1 (100M)4.433.833.893.80
TriviaQA (10M)4.804.974.934.95
NarrativeQA (0.59M)4.114.524.214.11
PopQA (1.29M)4.094.484.444.21
Average of the eight tests up to 10M4.614.584.454.39

Source: internal 0G Labs evaluations, full-set runs, 0-5 scale. The average leaves out the 100M and 120M tests.

0GM-2.0 has the top score on seven of the ten tests, ahead of all three flagship models on each one. It also has the highest average of the four across the eight tests up to 10 million tokens: 4.61, against 4.58 for Claude Fable 5.2, 4.45 for Claude Opus 5.5 and 4.39 for GPT-6 Astra. The seven are the three tests that connect facts across documents (2WikiMultiHopQA, HotpotQA and MuSiQue), two open-domain question sets (Natural Questions and DuReader), and the two largest data sets.

Chart of ten long-memory tests comparing 0GM-2.0 with the best score among Claude Fable 5.2, Claude Opus 5.5 and GPT-6 Astra. 0GM-2.0 is ahead on seven rows and behind on TriviaQA, NarrativeQA and PopQA
0GM-2.0 leads on seven of ten long-memory tests. Claude Fable 5.2 leads the other three

Against Claude Sonnet 5.5 and GPT-6.1 Terra, 0GM-2.0 is ahead on nine of ten tests. The widest gap is MuSiQue, at 4.48 against 3.80 and 3.63. The one miss is TriviaQA.

Against Claude Haiku 5.5, DeepSeek V4.1 Flash, GLM 5.3 Flash and MiMo 2.6 Flash it is ahead on all ten, including 4.48 against 3.30 for DeepSeek V4.1 Flash on MuSiQue. Three of those four models are much larger, from about 9 times to more than 15 times its parameter count.

The 120M-token test

One test deserves its own paragraph. MS MARCO-0G (120M) puts ten models in front of the same document set, nominally 120 million tokens, and asks 192 questions about it. 0GM-2.0 scored 4.66. Claude Fable 5.2, Claude Opus 5.5 and GPT-6 Astra scored between 4.20 and 4.28. The other six models, scored in separate runs on the same set, landed between 4.39 and 4.54, with Claude Sonnet 5.5 the closest.

Bar chart of four models on the MS MARCO-0G 120M-token test. 0GM-2.0 is highest at 4.66, followed by Claude Opus 5.5 at 4.28, Claude Fable 5.2 at 4.26 and GPT-6 Astra at 4.20. The axis runs from 3 to 5
On the 120M-token test 0GM-2.0 scores 4.66. The three flagship models score 4.20 to 4.28

0G Labs built this test set by extending EverMind's 100M-token benchmark with 20 million more tokens. The documents and the questions are public on Hugging Face, so anyone can inspect what was asked. Twelve of the 192 questions are about 0G.

Where it falls short

A model built around memory is not the best model at everything, and the same table shows it.

Three of the ten tests go to Claude Fable 5.2. On TriviaQA, a trivia lookup, all three flagship models are ahead of it, and so are Claude Sonnet 5.5 and GPT-6.1 Terra. PopQA and NarrativeQA show the widest gaps. Those two lean on what a model already learned in training more than on connecting facts across a document, and a 35-billion-parameter model does not out-know a flagship model there.

The lead is narrow in places. The eight-test average is 4.61 against 4.58 for Fable 5.2, and HotpotQA is 4.80 against 4.75.

External memory layers hold their own, especially on shorter histories. On BEAM, a long-conversation benchmark, 0GM-2.0 and Mem0 paired with GPT-5 scored close to each other at 10 million tokens, and Mem0 was slightly ahead at 1 million.

Two practical limits matter if you build on it:

  • Memory belongs to one account. It is tied to your account's wallet, and everything saved under it can show up in any answer from it. Use one account per project. If your app serves many users from a single account, their memories would mix. 0GM-2.0 does not separate users inside one account today.
  • Recall is strong, not perfect. A score of 4.66 out of 5 on the 120M test still leaves questions it gets wrong. Ask one specific question at a time and check anything that matters.

How to use it

Chat with it in the playground at pc.0g.ai, or call it through the API. The endpoint follows the OpenAI format, so existing code needs a new base URL, a key and the model name:

curl "https://router-api.0g.ai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -d '{"model": "0GM-2.0", "messages": [{"role": "user", "content": "Hello!"}]}'

A few things are worth knowing before you build on it. Memory is saved from long conversations: as a conversation grows, the model saves the earlier turns into your account's memory, and later sessions can draw on them. A two-line chat stays in its own session. Each time you use the model, your memory is renewed for another 30 days, and after 30 days without use it expires.

To wipe it yourself, send <<MSA_CLEAR_MEMORY>> as the entire message. The model deletes everything saved under that account.

For coding agents

Coding agents start every session blank. The reason a port was moved or an approach was dropped lives in a session that is gone.

The 0GM-2.0 memory plugin fixes that without changing which model your agent runs on. It saves finished Claude Code, Codex, OpenCode and Hermes sessions into your account's memory, and adds an ask_memory tool that returns the relevant past messages word for word, with their dates. Your agent keeps its own model and reasons over the quotes. Cursor, Cline and other MCP clients can ask the memory too.

Install it from github.com/0gfoundation/0gm-memory.

Pricing

List prices, in USD:

ItemPriceTerms
Input$2.00 per 1M tokens
Output$12.00 per 1M tokens
Cache read$0.40 per 1M tokens
Memory write$3.00 per 1M new tokensCharged once when saved, includes the first 30 days
Memory renewal$3.00 per 1M tokens per 30 daysProrated. Using the model renews memory to a full 30 days
Memory retrievalFreeIncluded in inference

The current prices are always on the model's page at pc.0g.ai.

What comes next

The model weights and the model card go up on Hugging Face after the first week. From there, 0G Labs plans to extend CMSA to larger foundation models and to test how far in-model memory can go on harder, longer tasks, the kind agents run into when work unfolds over weeks.

Frequently asked questions

Is the 120 million tokens a context window?

No. A single request to 0GM-2.0 takes up to 262,144 tokens. The 120 million tokens are the model's memory, which builds up across your requests and sessions. The model reads from that memory when a question needs it.

How is 0GM-2.0 different from RAG?

RAG stores your data in a separate system and searches it before each request. 0GM-2.0 keeps conversation history in a memory inside the model, and the model decides when to look back. On your side there is no vector database to host and no index to build.

Where can I use 0GM-2.0?

At pc.0g.ai, in the chat playground or through the OpenAI-compatible API. For the first week it is only available there. The model weights follow on Hugging Face after that.

How do I delete what 0GM-2.0 remembers?

Send <<MSA_CLEAR_MEMORY>> as the entire message. The model deletes all memory saved under that account. Memory also expires on its own after 30 days without use.

What is 0G?

0G is the frontier superintelligence lab solving AI privacy, safety, verifiability, and sovereignty.

Where can I get 0G?

get.0g.ai is the interactive guide on how and where to acquire 0G tokens, with options for developers, investors, and ecosystem participants.

Where can I build on 0G?

Start at build.0g.ai for docs, starter kits, and the latest SDK. Visit 0g.ai/partners to browse the projects already shipping on the network.

Try it

Sources:

Latest from 0G: