Text Generation
Transformers
Safetensors
PyTorch
English
perceiver_ar
mrcogito
meridian21
custom_code
concept-memory
size-140m
budget-11.5bt
long-context
base-model
research
e38
conversational
Eval Results (legacy)
Instructions to use Meridian21Lab/concept-memory-140m-11.5bt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Meridian21Lab/concept-memory-140m-11.5bt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Meridian21Lab/concept-memory-140m-11.5bt", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Meridian21Lab/concept-memory-140m-11.5bt", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Meridian21Lab/concept-memory-140m-11.5bt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Meridian21Lab/concept-memory-140m-11.5bt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Meridian21Lab/concept-memory-140m-11.5bt", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Meridian21Lab/concept-memory-140m-11.5bt
- SGLang
How to use Meridian21Lab/concept-memory-140m-11.5bt with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Meridian21Lab/concept-memory-140m-11.5bt" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Meridian21Lab/concept-memory-140m-11.5bt", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Meridian21Lab/concept-memory-140m-11.5bt" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Meridian21Lab/concept-memory-140m-11.5bt", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Meridian21Lab/concept-memory-140m-11.5bt with Docker Model Runner:
docker model run hf.co/Meridian21Lab/concept-memory-140m-11.5bt
|
Download EVALUATION.md from Meridian21Lab/concept-memory-140m-11.5bt: direct link, hf CLI and curl.
- Browser
- Download file 42.9 kB
-
https://huggingface.co/Meridian21Lab/concept-memory-140m-11.5bt/resolve/main/EVALUATION.md
- Command line
-
hf download hf://Meridian21Lab/concept-memory-140m-11.5bt/EVALUATION.md
-
curl -L -o EVALUATION.md https://huggingface.co/Meridian21Lab/concept-memory-140m-11.5bt/resolve/main/EVALUATION.md
42.9 kB
| # concept-memory-140m-11.5bt: evaluation details | |
| The method and the full tables behind the [model card](README.md). Every number here has its raw file in this | |
| repository (`eval_results/`, `long_context/`, `ruler/`, `samples/`), and `figures/make_figures.py` draws the card's | |
| figures from those files. The results of the other models on the same data are copied here with a prefix, so every | |
| head-to-head can be recomputed from this repository alone: topic-index-140m-11.5bt `ti_`, catalogue-150m-11.5bt | |
| `ca_` and full-attention-140m-11.5bt `fa_` (section 1 lists their files). | |
| ## Contents | |
| 1. [Harness and settings](#harness-and-settings) | |
| 2. [Models on the same data](#models-on-the-same-data) | |
| 3. [Standard benchmarks](#standard-benchmarks) | |
| 4. [Tiny-ML Leaderboard](#tiny-ml-leaderboard) | |
| 5. [Data efficiency](#data-efficiency) | |
| 6. [Long documents across models](#long-documents-across-models) | |
| 7. [Our own long-context tests](#our-own-long-context-tests) | |
| 8. [RULER](#ruler) | |
| 9. [Loading with from_pretrained](#loading-with-from_pretrained) | |
| 10. [Text samples](#text-samples) | |
| 11. [What we have not measured](#what-we-have-not-measured) | |
| 12. [Training procedure](#training-procedure) | |
| 13. [Reproducibility](#reproducibility) | |
| ## Harness and settings | |
| - **Machine:** one NVIDIA RTX 3090 (24 GB) per job; runs between 2026-11-17 19:58 UTC and 2026-11-18 | |
| 13:51 UTC. The AWS tests quoted at the end of section 6 ran on the training machine (4 Γ NVIDIA L40S) on 2026-11-16. | |
| - **Benchmarks:** EleutherAI lm-evaluation-harness 0.4.11, 0-shot, all test items, max length 2,048, `acc` for | |
| every task. Our model through our adapter (`evaluation/lm_eval_perceiver_ar.py`, `--model perceiver_ar`), the | |
| others through lm-eval's stock `hf` model (`evaluation/run_lm_eval_suite.py`). | |
| - **Precision:** each model in its training precision. Ours, SmolLM2-135M, Gemma 3 270M, Granite 4.0 350M and | |
| LFM2.5-350M-Base in bf16; Pythia-160M (trained in fp16) in fp32, because bf16 costs it about 6 points of | |
| ARC-Easy (37.46 % against 43.64 %; EleutherAI publish 43.52 %). | |
| - **Start of each input:** the way each model's own tokenizer starts a text. Gemma and LFM2.5 add a start token; | |
| SmolLM2, Pythia and Granite add nothing; ours starts with `<|endoftext|>`, as every training document did. With a | |
| leading `<|end_of_text|>` Granite 4.0 350M scored 2.12 bits per byte on a book at 19.8k tokens, against 1.07 | |
| without it. | |
| - **Excluded:** LFM2-350M (its released weights are post-trained for chat; LFM2.5-350M-Base replaces it); | |
| MobileLLM-R1-140M-base (gated; the evaluation machine had no access on 2026-11-18); state-space models such as | |
| Mamba-130M (without their CUDA kernels the π€ path is too slow at 61k tokens). | |
| - **The other models on the same data** ran the same protocol on the same cards (`scripts/release_evals.sh`): | |
| [topic-index-140m-11.5bt](https://huggingface.co/Meridian21Lab/topic-index-140m-11.5bt) on 2026-11-18 15:08β16:24 | |
| UTC, [catalogue-150m-11.5bt](https://huggingface.co/Meridian21Lab/catalogue-150m-11.5bt) on 2026-11-21 14:52β16:35 | |
| UTC and [full-attention-140m-11.5bt](https://huggingface.co/Meridian21Lab/full-attention-140m-11.5bt) on 2026-11-21 | |
| 16:35β17:12 UTC. Their results are copied here with a prefix, `ti_` (`eval_results/e38_lsa150m_*`, | |
| `long_context/compare_topic_index.json`), `ca_` (`e38_cat150m_*`, `compare_catalogue.json`) and `fa_` | |
| (`e38_rope150m_*`, `compare_full_attention.json`), so every comparison below can be recomputed from this | |
| repository. | |
| - **LFM2.5-350M-Base loading:** its tokenizer config names a Transformers 5 class; on Transformers 4.57 we load the | |
| same `tokenizer.json` as a `PreTrainedTokenizerFast` (it still adds `<|startoftext|>`). Its long-document numbers | |
| are identical under Transformers 5.23. | |
| ## Models on the same data | |
| Meridian21 trains several models on the same data, in the same order, for the same budget, with the same layers, | |
| and changes only the reading layer; every model released from this set gets a column here. The four read the same | |
| shards in the same order (identical data manifests in all three stages), with the same seed, budget, optimizer, | |
| schedule and layer stack; only the reading layer differs (catalogue-150m-11.5bt: 145.6M parameters, 4.1M of them its | |
| card writer; the other three 141.5M). full-attention-140m-11.5bt rereads every earlier token (full attention with | |
| rotary positions; the memory reads use no position code), so inside its 64k training length it is the reference: the | |
| comparison with it measures what each memory read costs where full attention still fits, not a contest. | |
| | Test | Unit, direction | **concept-memory-140m-11.5bt** | full-attention-140m-11.5bt | topic-index-140m-11.5bt | catalogue-150m-11.5bt | | |
| |---|---|---:|---:|---:|---:| | |
| | RULER at 4k, mean of 13 | share found β | 0.488 | 0.459 | 0.541 | 0.433 | | |
| | RULER at 8k | share found β | 0.439 | 0.407 | 0.540 | 0.407 | | |
| | RULER at 16k | share found β | 0.373 | 0.255 | 0.439 | 0.356 | | |
| | RULER at 32k | share found β | 0.319 | 0.202 | 0.390 | 0.287 | | |
| | Long documents, 61k context, cross-model test | bits per byte β | 0.795 | 0.812 | 0.797 | 0.808 | | |
| | Same, our tokens, 64k spans (55 documents) | nats per token β | 2.293 | 2.344 | 2.299 | 2.333 | | |
| | Our tokens, 16k spans (120 documents) | nats per token β | 2.126 | 2.139 | 2.129 | 2.147 | | |
| | Our tokens, 128k spans, whole document (15) | nats per token β | 2.451 | 2.421 | 2.426 | 2.441 | | |
| | Gain from far context, 1k β 61k, cross-model test | bits per byte β | 0.051 | 0.037 | 0.049 | 0.042 | | |
| | Cost of switching the far read off, 64k | nats per token | 0.287 | β (no separate read) | 0.308 | 0.277 | | |
| | Grammar (BLiMP) | % β | 80.56 Β± 0.14 | 80.13 Β± 0.14 | 80.11 Β± 0.14 | 80.64 Β± 0.14 | | |
| | Mean of 7 core tasks | % β | 46.22 | 46.21 | 46.46 | 46.54 | | |
| | ARC-Easy (board run) | % β | 48.95 Β± 1.03 | 49.75 Β± 1.03 | 48.40 Β± 1.03 | 50.42 Β± 1.03 | | |
| | WikiText-2 | byte perplexity β | 1.950 | 1.955 | 1.950 | 1.954 | | |
| | Held-out training loss, end of stages 1 / 2 / 3 | nats per token β | 2.134 / 1.996 / 1.936 | 2.138 / 2.003 / 1.961 | 2.137 / 1.999 / 1.941 | 2.145 / 2.015 / 1.965 | | |
| **Paired differences, this model minus each other model** (95 % bootstrap over the test items: documents for long | |
| text, prompts for RULER; paired wherever both models saw the same items; + means this model is higher): | |
| | Test | Unit, direction | β full attention | β topic index | β catalogue | | |
| |---|---|---:|---:|---:| | |
| | RULER at 4k | share found β | +0.029 [+0.009, +0.050] | β0.052 [β0.071, β0.033] | +0.056 [+0.034, +0.076] | | |
| | RULER at 8k | share found β | +0.032 [+0.011, +0.054] | β0.101 [β0.120, β0.083] | +0.032 [+0.012, +0.053] | | |
| | RULER at 16k | share found β | +0.118 [+0.100, +0.137] | β0.066 [β0.084, β0.048] | +0.016 [β0.002, +0.035] | | |
| | RULER at 32k ΒΉ | share found β | +0.117 [+0.098, +0.136] | β0.072 [β0.092, β0.051] | +0.031 [+0.010, +0.052] | | |
| | Long documents, 61k, cross-model test | bits per byte β | β0.017 [β0.024, β0.011] | β0.002 [β0.003, β0.001] | β0.014 [β0.017, β0.011] | | |
| | Our tokens, 64k spans, whole span | nats per token β | β0.050 [β0.070, β0.033] | β0.005 [β0.009, β0.002] | β0.039 [β0.048, β0.032] | | |
| | Our tokens, 16k spans, whole span | nats per token β | β0.013 [β0.016, β0.010] | β0.004 [β0.006, β0.002] | β0.022 [β0.025, β0.019] | | |
| | Our tokens, 128k spans, whole document | nats per token β | +0.031 [+0.010, +0.051] | +0.025 [+0.017, +0.034] | +0.010 [β0.001, +0.020] | | |
| ΒΉ At 32k the three later runs (topic-index-140m-11.5bt, catalogue-150m-11.5bt, full-attention-140m-11.5bt) drew | |
| different needles from this model's run for 8 of the 13 tasks (the seven needle tasks other than the UUID multi-key, | |
| and variable tracking): none of their 100 expected answers match. All runs used the same three task groups; the | |
| needle generator draws from Python's shared random state, and something in the runtime changed that state between | |
| the runs (cause not found). Those 8 tasks are two separate 100-prompt draws, compared unpaired (each model's prompts | |
| resampled on their own); the other 5 tasks at 32k, and every task at 4k, 8k and 16k, match prompt by prompt and are | |
| paired. | |
| **Reading it.** On ordinary text the concept memory and the topic index tie, with a consistent 0.2 % edge to this | |
| model up to the training length; catalogue-150m-11.5bt is 1.7 % behind this model on 64k documents, and | |
| full-attention-140m-11.5bt 2 % behind (0.017 bits per byte) while level on the short tests, so inside 64k the memory | |
| costs nothing against full attention. Past 64k (128k) the topic index and full attention hold up better than this | |
| model. On retrieval topic-index-140m-11.5bt is clearly ahead, and the gain is concentrated: several values or keys | |
| at once (+0.12 to +0.34 for it by length), counting words (+0.11 to +0.25), questions (+0.03 to +0.06); single | |
| needles tie and this model leads on needles among distractor keys at 8kβ16k. A plausible reading: LSA spends its 512 | |
| opened tokens on the best-matching buckets only, while the concept memory spends part of its read on summaries of | |
| every group; when several separate facts must be copied out, opened tokens win. This model is above the catalogue | |
| at every length but 16k (interval touching zero) and above full attention at every length, by 0.03 at 4kβ8k and | |
| 0.12 at 16kβ32k, where full attention falls further on distractor keys and word counting. This is one seed of each | |
| model. | |
| ## Standard benchmarks | |
| Accuracy in %, higher is better, Β± standard error from the harness. In brackets: EleutherAI's own published | |
| zero-shot results for Pythia-160M (step 143000, `evals/pythia-v1/pythia-160m` in their GitHub repository, quoted; | |
| the remaining gaps of 1β2.5 points fit the change of harness version). | |
| | Benchmark | Chance | **concept-memory-140m-11.5bt** Β· 11.5B | full-attention-140m-11.5bt Β· 11.5B | SmolLM2-135M Β· 252B | SmolLM2-135M Β· β2T (final) | Pythia-160M Β· 300B | LFM2.5-350M-Base Β· 28T | | |
| |---|---:|---:|---:|---:|---:|---:|---:| | |
| | BLiMP, 67 sets | 50 | **80.56** Β± 0.14 | 80.13 Β± 0.14 | 79.72 Β± 0.14 | 80.15 Β± 0.14 | 77.48 | 80.17 | | |
| | ARC-Easy | 25 | 48.95 Β± 1.03 | 49.75 Β± 1.03 | 61.62 Β± 1.0 | 64.27 Β± 0.98 | 43.64 Β± 1.0 (43.52) | **70.03** Β± 0.9 | | |
| | ARC-Challenge | 25 | 21.2 Β± 1.2 | 21.0 Β± 1.2 | 27.1 Β± 1.3 | 28.0 Β± 1.3 | 19.5 Β± 1.2 (18.8) | **38.2** Β± 1.4 | | |
| | HellaSwag | 25 | 29.9 Β± 0.5 | 30.3 Β± 0.5 | 32.6 Β± 0.5 | 35.5 Β± 0.5 | 28.4 Β± 0.4 | **37.1** Β± 0.5 | | |
| | LAMBADA (OpenAI) | β0 | 33.2 Β± 0.7 | 31.3 Β± 0.6 | 35.0 Β± 0.7 | **43.0** Β± 0.7 | 35.4 Β± 0.7 (32.8) | 35.8 Β± 0.7 | | |
| | PIQA | 50 | 62.8 Β± 1.1 | 62.1 Β± 1.1 | 65.9 Β± 1.1 | **68.6** Β± 1.1 | 62.3 Β± 1.1 (62.7) | 66.6 Β± 1.1 | | |
| | SciQ | 25 | 77.0 Β± 1.3 | 78.9 Β± 1.3 | 80.4 Β± 1.3 | 84.1 Β± 1.2 | 75.4 Β± 1.4 (74.1) | **90.1** Β± 0.9 | | |
| | WinoGrande | 50 | 50.4 Β± 1.4 | 50.0 Β± 1.4 | 50.9 Β± 1.4 | 53.6 Β± 1.4 | 51.2 Β± 1.4 (53.1) | **55.6** Β± 1.4 | | |
| | **Mean of the 7 above** | 28.6 | 46.2 | 46.2 | 50.5 | 53.9 | 45.1 | **56.2** | | |
| | WikiText-2 byte perplexity β | β | 1.950 | 1.955 | 1.873 | **1.799** | 1.924 | 2.112 | | |
| | WikiText-2 bits per byte β | β | 0.964 | 0.967 | 0.905 | **0.847** | 0.944 | 1.078 | | |
| The 7-task mean uses ARC-Easy from the 7-task run (49.0 %; 48.95 % in the leaderboard run). topic-index-140m-11.5bt | |
| and catalogue-150m-11.5bt are in the table of section 2 and on their own cards. The previous generation | |
| of our model (100M concept memory, 3.4B tokens, GPT-2 tokenizer) had a 7-task mean of 41.6 %. | |
| ## Tiny-ML Leaderboard | |
| The [board](https://huggingface.co/spaces/Glint-Research/Tiny-ML-Leaderboard) takes three lm-eval 0-shot numbers | |
| (BLiMP over its 67 sets, ARC-Easy `acc`, WikiText-2 byte perplexity) and ranks by | |
| `quality Γ (1 + 0.5 Β· t)`, where quality is the mean of BLiMP, ARC-Easy and a WikiText score normalised over the | |
| board, and t is a size bonus from 0 (the largest entry) to 1 (the smallest). `evaluation/tiny_ml_board.py` | |
| reproduces the formula from the board's page (five entries match to two decimals) on the snapshot of 2026-11-14 | |
| (`evaluation/leaderboards/tiny_ml_board_20261114.json`). Board entries are the board's own runs (quoted); rows in | |
| *italics* are our runs of reference models, each placed on its own (adding a row shifts the normalisation a little). | |
| | Place | Model | Organisation | Size | Training tokens | BLiMP % β | ARC-Easy % β | WikiText-2 byte ppl β | Quality | Board score | | |
| |---:|---|---|---:|---:|---:|---:|---:|---:|---:| | |
| | 1 | Tiny Chick 10M V3 | kurcontko.dev | 9.6M | 24.6B | 77.76 | 59.60 | 2.335 | 77.8 | 87.7 | | |
| | 2 | Tiny Chick 10M V2.1 | kurcontko.dev | 9.6M | 16.3B | 76.79 | 53.79 | 2.342 | 75.5 | 85.2 | | |
| | 3 | Tiny Chick 10M V2 | kurcontko.dev | 9.6M | 16.3B | 76.99 | 50.21 | 2.364 | 74.3 | 83.8 | | |
| | 4 | Slayer139 1.02 | Fabryka AI | 139.3M | 24.0B | 79.22 | 65.91 | 1.862 | 81.7 | 83.4 | | |
| | (4) | *SmolLM2-135M, final (our run)* | | 134.5M | β2T | 80.15 | 64.27 | 1.799 | 81.5 | 83.2 | | |
| | 5 | Boris-2-Think | opencerebral | 143.7M | 200B | 82.09 | 63.93 | 1.967 | 81.7 | 83.2 | | |
| | 6 | Slayer149-ARC | Fabryka AI | 149.3M | 31B | 78.38 | 66.58 | 1.907 | 81.5 | 82.9 | | |
| | 7 | Tiny Chick 10M | kurcontko.dev | 9.6M | 8.3B | 75.12 | 48.53 | 2.287 | 73.3 | 82.7 | | |
| | 8 | Slayer139 1.01 | Fabryka AI | 139.3M | 23.7B | 79.13 | 63.09 | 1.878 | 80.7 | 82.3 | | |
| | (9) | *SmolLM2-135M, 252B checkpoint (our run)* | | 134.5M | 252B | 79.72 | 61.62 | 1.873 | 80.4 | 82.1 | | |
| | 9 | Glint-2 | glintresearch | 1.1M | β300B | 74.54 | 36.20 | 3.127 | 67.2 | 81.7 | | |
| | 10 | Boris-2 | opencerebral | 143.7M | 200B | 81.13 | 59.76 | 1.895 | 80.2 | 81.7 | | |
| | (11) | *SmolLM2-135M, 503B checkpoint (our run)* | | 134.5M | 503B | 79.62 | 59.97 | 1.861 | 79.9 | 81.6 | | |
| | 11 | JugnuLM-110M-R2+ | altslate | 110.0M | 25B | 82.52 | 55.13 | 1.873 | 79.2 | 81.5 | | |
| | 12 | GPT-X2-125M | axiomiclabs | 125.0M | 75B | 81.28 | 57.07 | 1.860 | 79.5 | 81.4 | | |
| | 13 | Haidass-143M-v1 | DALab | 143.0M | 100B | 79.05 | 60.23 | 1.889 | 79.7 | 81.2 | | |
| | 14 | Slayer149 Balanced ARC-E fine-tune | Fabryka AI | 149.3M | β | 79.98 | 59.34 | 1.897 | 79.7 | 81.0 | | |
| | 15 | Slayer139 base | Fabryka AI | 139.3M | 23.7B | 79.41 | 57.58 | 1.875 | 78.9 | 80.5 | | |
| | 16 | JugnuLM-53M | altslate | 53.0M | 12B | 78.14 | 51.43 | 2.040 | 76.0 | 80.5 | | |
| | 17 | Supra2.1-Ultra-Preview-001 | supralabs | 230.0M | 40.4B | 82.24 | 57.11 | 1.930 | 79.6 | 79.6 | | |
| | 18 | Supra-50M-Instruct | supralabs | 51.8M | 20B | 76.30 | 52.20 | 2.560 | 74.3 | 78.7 | | |
| | 19 | GoLLeM-v5 128M | Fabryka AI | 122.8M | 24.9B | 79.09 | 53.24 | 2.254 | 76.3 | 78.2 | | |
| | 20 | Glint-1.3 (merged) | glintresearch | 982K | 100B | 68.70 | 32.50 | 3.080 | 64.1 | 78.2 | | |
| | (21) | *catalogue-150m-11.5bt* | | 145.6M | 11.5B | 80.64 | 50.42 | 1.954 | 76.7 | 78.1 | | |
| | 21 | Ivme-Conversate-v3-Base | ivmelabs | 24.8M | β15B | 78.49 | 39.02 | 2.136 | 71.7 | 78.1 | | |
| | 22 | Supra-50M-Base | supralabs | 51.8M | 20B | 76.30 | 46.00 | 2.040 | 73.5 | 78.0 | | |
| | (23) | *full-attention-140m-11.5bt* | | 141.5M | 11.5B | 80.13 | 49.75 | 1.955 | 76.3 | 77.8 | | |
| | 23 | GPT-S-5M | axiomiclabs | 5.2M | 25B | 72.27 | 35.69 | 2.570 | 67.4 | 77.7 | | |
| | **24** | **concept-memory-140m-11.5bt (this model)** | **Meridian21 Lab** | **141.5M** | **11.5B** | **80.56** | **48.95** | **1.950** | **76.2** | **77.7** | | |
| | 25 | Glint-2.3 | glintresearch | 1.7M | 10B | 67.30 | 36.00 | 3.051 | 64.8 | 77.6 | | |
| | 26 | Zedev-134M-Fudas | meridianmrm | 134.0M | 20.7B | 81.69 | 46.38 | 1.880 | 76.0 | 77.6 | | |
| | (26) | *topic-index-140m-11.5bt* | | 141.5M | 11.5B | 80.11 | 48.40 | 1.950 | 75.9 | 77.4 | | |
| | 27 | Hydrion-v1-Base | opengcm | 114.1M | β2.5B | 80.08 | 47.26 | 2.040 | 75.2 | 77.4 | | |
| | 28 | GoLLeM-v5 64M | Fabryka AI | 62.9M | 24.9B | 76.16 | 48.19 | 2.347 | 73.4 | 77.2 | | |
| | 29 | Ivme-Conversate-v2-Base | ivmelabs | 23.9M | β12.85B | 75.09 | 39.98 | 2.225 | 70.6 | 77.1 | | |
| | 30 | GoLLeM-v5 64M (v1 recipe) | Fabryka AI | 62.9M | 13.1B | 75.83 | 47.94 | 2.372 | 73.1 | 77.0 | | |
| | 31 | Pollock 1.5 Mini LM 128M | Fabryka AI | 127.4M | 21.50B | 78.50 | 47.73 | 1.944 | 75.1 | 76.9 | | |
| | 32 | Glint-2.3-Mini | glintresearch | 1.1M | 10B | 62.27 | 36.20 | 3.122 | 63.1 | 76.8 | | |
| | 33 | Qielbas Tiny 6M | labqoat | 6.1M | 3B | 73.25 | 36.24 | 3.069 | 66.8 | 76.6 | | |
| | 34 | Hummingbird-V2 | juinron | 9.6M | 10B | 72.90 | 38.85 | 2.955 | 67.8 | 76.5 | | |
| | 35 | TextModel-v1 | benchlabs | 122.7M | 1.64B | 80.31 | 49.71 | 2.628 | 74.6 | 76.5 | | |
| | 36 | GoLLeM-v5 32M | Fabryka AI | 31.6M | 16B | 73.48 | 44.44 | 2.539 | 70.8 | 76.5 | | |
| | 37 | Gros-Michel-90m-Base-v2 | finnianx | 95.0M | 9B | 80.20 | 43.18 | 2.080 | 73.8 | 76.4 | | |
| | 38 | Michel-Nano-v2 | finnianx | 9.9M | 6.5B | 72.52 | 35.90 | 2.460 | 67.8 | 76.4 | | |
| | 39 | MicroSupra-1k | supralabs | 1K | β | 58.61 | 26.39 | 11.270 | 50.9 | 76.3 | | |
| | 40 | min-spark | minimalabs | 5.8M | 10B | 69.19 | 37.08 | 2.775 | 66.4 | 76.3 | | |
| | 41 | ObsidianSmall-Base | dreamw | 8.7M | 4B | 71.89 | 33.29 | 2.467 | 66.7 | 75.5 | | |
| | 42 | Gros-Michel-90m-Base | finnianx | 91.1M | 6.5B | 78.35 | 41.50 | 2.070 | 72.6 | 75.4 | | |
| | 43 | GoLLeM-v5 16M | Fabryka AI | 17.4M | 16B | 70.08 | 40.91 | 2.675 | 68.2 | 75.3 | | |
| | 44 | Cagliari-114M | meridianmrm | 114.0M | 5.24B | 80.22 | 38.30 | 1.960 | 72.5 | 74.6 | | |
| | (44) | *Pythia-160M, final (our run, fp32; over the 150M cap)* | | 162.3M | 300B | 77.48 | 43.64 | 1.924 | 73.5 | 74.5 | | |
| | 45 | KeyLM-75M-Instruct | minimalabs | 75.0M | β18B | 76.02 | 39.10 | 2.170 | 70.8 | 74.0 | | |
| | 46 | Michel-Micro | finnianx | 28.4M | 2.6B | 69.75 | 38.59 | 2.300 | 68.2 | 73.9 | | |
| The first 46 places of 101 shown (with this model added), plus our runs of other models in brackets and italics, each at the place it gets on its own; the full snapshot is in the file above. | |
| By quality alone (no size bonus) our model is 14th of 101; on grammar alone, 8th. Of the 55 entries that report | |
| 15B training tokens or fewer (ours included), three place above it. ARC-Easy is the test that moves the rank most: | |
| at 51.4 % the model would place 19th, at 60 % 12th. The other models on the same data place 21st | |
| (catalogue-150m-11.5bt), 23rd (full-attention-140m-11.5bt) and 26th (topic-index-140m-11.5bt). | |
| ## Data efficiency | |
| | Test | **concept-memory-140m-11.5bt** at 11.5B | full-attention-140m-11.5bt at 11.5B | Pythia-160M at 10.5B | at 12.6B | at 300B (final) | SmolLM2-135M at 252B | at 503B | at β2T (final) | | |
| |---|---:|---:|---:|---:|---:|---:|---:|---:| | |
| | Grammar (BLiMP) % β | **80.56** | 80.13 | 77.94 | 78.28 | 77.48 | 79.72 | 79.62 | 80.15 | | |
| | Science quiz (ARC-Easy) % β | 48.95 | 49.75 | 42.59 | 42.80 | 43.64 | 61.62 | β | **64.27** | | |
| | WikiText-2 byte perplexity β | 1.950 | 1.955 | 2.044 | 2.024 | 1.924 | 1.873 | β | **1.799** | | |
| | Mean of 7 core tasks % β | 46.2 | 46.2 | 42.1 | 43.2 | 45.1 | 50.5 | β | **53.9** | | |
| Pythia-160M checkpoints scored (fp32): steps 1,000, 2,000, 4,000, 5,000, 6,000, 10,000, 20,000 and 143,000, at | |
| 2,097,152 tokens per step (2.1B to 300B tokens). SmolLM2-135M checkpoints: `HuggingFaceTB/SmolLM2-135M-intermediate-checkpoints` | |
| branches `step-240000` and `step-480000` (1,048,576 tokens per step) and the final model. | |
| - **Same budget:** ahead of Pythia-160M at 10.5β12.6B tokens on every test. | |
| - **Tokens to match** (log-linear between Pythia's checkpoints): not reached by 300B tokens for grammar (its best | |
| 79.23 % at 42B) or the science quiz (its best 45.12 % at 42B); 36.2B tokens (3.1Γ ours) for WikiText, which is | |
| Wikipedia text, part of Pythia's training data (the Pile). | |
| - **What it shows and what it does not:** the model as trained (architecture and data together) is more | |
| data-efficient than Pythia-160M on every test and at least as efficient as SmolLM2-135M on grammar; on knowledge, | |
| SmolLM2-135M's first public checkpoint is already far ahead. Most of the gap to Pythia is probably data (Pythia read | |
| the Pile, assembled in 2020; we read 2024β2025 filtered web and educational text). Grammar also levels off early | |
| (Pythia-160M wanders between 77.5 % and 79.2 % from 10B to 300B tokens), so it is weak evidence alone. | |
| full-attention-140m-11.5bt, on our exact data and budget, lands within 0.8 points of this model on every test here | |
| (the other two memory models within 1.5), so on these tests the read neither costs nor gains measurably and the | |
| gap to Pythia comes from the data and the shared training recipe. | |
| ## Long documents across models | |
| `evaluation/long_context_compare.py` (a copy is in `long_context/`), one RTX 3090, 2026-11-18 (catalogue-150m-11.5bt | |
| and full-attention-140m-11.5bt 2026-11-21, same spans and script). **Documents:** held-out | |
| LongDocs-lite validation documents from five Common Pile sources (Gutenberg books, arXiv papers, DOAB open-access | |
| books, US GPO publications, UK Hansard debates), up to 16 per source at 64k tokens, 55 in all. **Target:** the last | |
| β16 KB of each span (its last 4,096 tokens in our tokenizer), 0.94 MB in all; the context before it is cut to each | |
| budget, counted in our tokens, so every model reads the same characters. **Unit:** bits per byte of the target | |
| (nats Γ· ln 2 Γ· UTF-8 bytes). A model that cannot take a budget is scored with sliding windows of its own maximum | |
| length ("limit"). | |
| | Model | Params | Max length | 1k | 4k | 16k | 28k | whole document | saved, 1k β most context | docs better with more | another document's far past | | |
| |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | |
| | concept-memory-140m-11.5bt (this model) | 141.5M | 65,536 | 0.846 | 0.828 | 0.816 | 0.808 | 0.795 | 0.051 [0.037, 0.067] | 96 % | 0.832 | | |
| | full-attention-140m-11.5bt | 141.5M | 65,536 | 0.849 | 0.832 | 0.821 | 0.815 | 0.812 | 0.037 [0.027, 0.049] | 100 % | 0.835 | | |
| | topic-index-140m-11.5bt | 141.5M | 65,536 | 0.845 | 0.828 | 0.816 | 0.809 | 0.797 | 0.049 [0.035, 0.065] | 93 % | 0.834 | | |
| | catalogue-150m-11.5bt | 145.6M | 65,536 | 0.850 | 0.835 | 0.825 | 0.820 | 0.808 | 0.042 [0.030, 0.056] | 93 % | 0.842 | | |
| | SmolLM2-135M at 252B tokens (step 240,000) | 134.5M | 2,048 | 0.933 (limit) | β | β | β | β | 0.000 [0.000, 0.000] | 0 % | 0.932 | | |
| | SmolLM2-135M | 134.5M | 8,192 | 0.851 | 0.835 | 0.832 (limit) | β | β | 0.018 [0.014, 0.024] | 95 % | 0.836 | | |
| | Pythia-160M | 162.3M | 2,048 | 0.942 (limit) | β | β | β | β | 0.000 [0.000, 0.000] | 0 % | 0.941 | | |
| | Gemma 3 270M | 268.1M | 32,768 | 0.843 | 0.825 | 0.812 | 0.805 | 0.805 (limit) | 0.038 [0.029, 0.049] | 96 % | 0.827 | | |
| | Granite 4.0 350M base | 352.4M | 32,768 | 0.817 | 0.797 | 0.783 | 0.776 | 0.776 (limit) | 0.041 [0.033, 0.051] | 100 % | 0.798 | | |
| | LFM2.5-350M-Base | 354.5M | 32,768 | 0.893 | 0.879 | 0.912 | 0.928 | 0.928 (limit) | β0.035 [β0.051, β0.020] | 22 % | 0.933 | | |
| Each model with the most of the document it can take, against concept-memory-140m-11.5bt (this model) with the whole document: | |
| | Model | its bits per byte | concept-memory-140m-11.5bt (this model) | difference (+ = concept-memory-140m-11.5bt (this model) better) | documents where concept-memory-140m-11.5bt (this model) is better | | |
| |---|---:|---:|---:|---:| | |
| | full-attention-140m-11.5bt | 0.812 | 0.795 | +0.017 [+0.011, +0.024] | 91 % | | |
| | topic-index-140m-11.5bt | 0.797 | 0.795 | +0.002 [+0.001, +0.003] | 62 % | | |
| | catalogue-150m-11.5bt | 0.808 | 0.795 | +0.014 [+0.011, +0.017] | 98 % | | |
| | SmolLM2-135M at 252B tokens (step 240,000) | 0.933 | 0.795 | +0.138 [+0.114, +0.164] | 98 % | | |
| | SmolLM2-135M | 0.832 | 0.795 | +0.038 [+0.020, +0.058] | 75 % | | |
| | Pythia-160M | 0.942 | 0.795 | +0.147 [+0.125, +0.171] | 96 % | | |
| | Gemma 3 270M | 0.805 | 0.795 | +0.010 [β0.006, +0.025] | 55 % | | |
| | Granite 4.0 350M base | 0.776 | 0.795 | β0.019 [β0.034, β0.003] | 29 % | | |
| | LFM2.5-350M-Base | 0.928 | 0.795 | +0.133 [+0.109, +0.158] | 93 % | | |
| LFM2.5-350M-Base at its best context (4k, 0.879) against this model with the whole document: +0.084 [0.060, 0.108], | |
| this model better on 89 % of documents. | |
| - **Scale.** On the same targets, each compressor given the rest of the document first: gzip -9 2.49 bits per byte, | |
| xz -9e 1.97, bzip2 -9 1.77; plain text 8. | |
| - **LFM2.5-350M-Base** predicts best with 4k of context; with its full 32k it is worse than with 4k on 93 % of | |
| documents and worse than with 1k on 78 %. The result is the same in fp32 and bf16, with SDPA and eager attention, | |
| and under Transformers 4.57 and 5.23 (checked on one book). Its card states a 32,768-token context; we report what | |
| we measured. | |
| - **The swapped past** helps no model. Ours, the three other models on the same data, Gemma 3 270M, Granite 4.0 | |
| 350M and SmolLM2-135M score within 0.007 of their own 4k cut, so every model that reads far is reading the content; | |
| LFM2.5-350M-Base scores like its own long input (0.933), worse than its 4k cut. | |
| - **Contamination:** our model never trained on these documents, but did on other documents of the same five | |
| sources; the reference models may have trained on these very documents (Gutenberg and arXiv are in most | |
| web-scale corpora, and Pythia's Pile includes both). The "gain" column compares each model with itself, so it is | |
| the measure least affected by this. | |
| ## Our own long-context tests | |
| The same 64k documents in our own tokens, with switches no other model has (`long_context/long_context_use.py`, | |
| one RTX 3090, 2026-11-17 19:58β20:35 UTC). Always the same target, the **last 4,096 tokens** of a 16k, 64k or 128k span. | |
| Loss in nats per token (lower is better; nats per token depend on the tokenizer, so these compare only the models | |
| on the same data, which share one tokenizer); 95 % intervals by bootstrap over documents. The other three models' | |
| values come from their own runs on the same documents. | |
| 1. **Context cut:** predict the target after 1k, 4k, 16k β¦ or all of the document before it. | |
| 2. **Swapped far past:** the document's own nearest 4k kept, everything older from a different document of the same | |
| source. | |
| 3. **Memory off:** the memory-reading layer limited to its recent window (the last 512β1,024 tokens), or only the | |
| coarse summaries removed (word-for-word reads kept). | |
| **At 64k** (55 documents): | |
| | Context before the target | Loss | Worse than full context by | Documents worse | Full attention | Topic index | Catalogue | | |
| |---|---:|---:|---:|---:|---:|---:| | |
| | **the whole document before it (61,439 tokens)** | **2.293** (0.791 bits per byte) | β | β | 2.344 | 2.299 | 2.333 | | |
| | last 16,384 tokens only | 2.354 | +0.061 [0.036, 0.088] | 84 % | 2.368 | 2.355 | 2.381 | | |
| | last 4,096 tokens only | 2.390 | +0.097 [0.065, 0.133] | 91 % | 2.402 | 2.390 | 2.410 | | |
| | last 1,024 tokens only | 2.441 | +0.148 [0.109, 0.193] | 96 % | 2.451 | 2.439 | 2.454 | | |
| | own last 4,096 + **another document's** 57k before them | 2.399 | +0.106 [0.078, 0.139] | 100 % | 2.409 | 2.406 | 2.429 | | |
| | whole document, **summaries off** | 2.361 | +0.068 [0.062, 0.073] | 100 % | β | β | β | | |
| | whole document, **memory off** | 2.580 | +0.287 [0.220, 0.364] | 100 % | β | 2.606 | 2.610 | | |
| **At 16k** (120 documents, 12,287 tokens of full context): full 2.126 (full attention 2.139, topic index 2.129, | |
| catalogue 2.147); cut to 4k +0.042 [0.034, 0.050]; cut to 1k | |
| +0.094 [0.080, 0.110] (99 % of documents worse); another document's far past +0.052 [0.043, 0.060]; summaries off | |
| +0.023; memory off +0.271. | |
| **At 128k, twice the training length** (15 documents: 4 books, 8 DOAB, 2 US GPO, 1 arXiv): | |
| | Context before the last 4,096 tokens | Loss | Against the whole document | Documents worse than whole | Full attention | Topic index | Catalogue | | |
| |---|---:|---:|---:|---:|---:|---:| | |
| | the whole document before it (126,975 tokens) | 2.451 | β | β | 2.421 | 2.426 | 2.441 | | |
| | last 61,440 tokens only | 2.391 | β0.060 [β0.077, β0.045]: better | 0 % | 2.406 | 2.395 | 2.421 | | |
| | last 16,384 tokens only | 2.409 | β0.042: better | 13 % | 2.420 | 2.410 | 2.436 | | |
| | last 4,096 tokens only | 2.441 | β0.010 [β0.047, +0.031]: a tie | 40 % | 2.452 | 2.440 | 2.459 | | |
| | own last 4,096 + another document's 123k before them | 2.533 | +0.082 [0.050, 0.115] | 93 % (of 14) | 2.613 | 2.646 | 2.666 | | |
| | whole document, memory off | 2.645 | +0.194 | 100 % | β | 2.671 | 2.675 | | |
| - **The far past is used:** the last 45k tokens of a 64k document still lower the loss on its final pages, on 84 % | |
| of documents; from 1k of context to all of it, 0.15 nats per token (about 7 % fewer bits per byte). | |
| - **It is the content:** another document's far past scores like a 4k cut, worse than the real past on 55 of 55. | |
| - **Both halves of the memory work:** removing only the summaries costs 0.068 at 64k, three times its cost at 16k | |
| (0.023); most of the gain comes from the word-for-word reads. | |
| - **The gain depends on the text:** largest where documents repeat their own terms (US government documents 2.021 β | |
| 1.642 nats per token from 1k to full context, arXiv 1.221 β 0.930), small for debates (2.593 β 2.533) and books | |
| (2.987 β 2.916). | |
| - **Past 64k:** the summaries' length scale keeps the read from collapsing (memory off is still far worse), but text | |
| beyond 64k does not improve predictions, and a long wrong past distracts more than at 64k. The other models on the | |
| same data lose less past 64k (whole 127k against the last 61k: full attention +0.014, catalogue +0.020, topic index | |
| +0.031, this model +0.060). | |
| - **"Memory off" overstates the memory's value:** the model never trained without it; the context cut is the cleaner | |
| measure. Against the bar set before training (switching the far read off should cost β₯ 0.10 nats on positions past | |
| 2k at 16k): 0.255, met. | |
| **From the AWS tests (2026-11-16):** the 64k training stage lowered the loss on tokens 32kβ64k of 64k documents by | |
| 0.11β0.16 nats per token on all seven long-document sources, against the model before that stage. Loss on positions | |
| past 2k, in bits per byte, was 0.785 at 4k, 0.750 at 16k, 0.737 at 32k, 0.717 at 64k and 0.663 at 128k, but each | |
| length used different documents; at 128k one arXiv paper drives the drop (without it, 0.735 β 0.733). The same-document | |
| test above is the one to trust. | |
| ## RULER | |
| 13 tasks, 100 prompts per task and length, greedy decoding, each task's own answer length (lm-eval's RULER configs, | |
| up to 128 tokens), every reply saved (`ruler/*_answers.jsonl`); `ruler/run_lsa_suite.py`. Score = share of the | |
| reference answers found in the reply (higher is better). **Not zero-shot for our models:** training stages 2 and 3 | |
| included planted-fact lookups of a similar shape (different wording). | |
| **Our model at every length** (RTX 3090 cards, 2026-11-18 12:40β13:51 UTC; 4k and 8k, 16k on one card each; 32k split | |
| by task over three cards). A later run of topic-index-140m-11.5bt, with the same settings and the same three 32k task | |
| groups, drew the same prompts as ours at 4k, 8k and 16k, but at 32k only for 5 tasks (UUID multi-key, both word | |
| counts, both QA); the other 8 got different needles, for a cause we have not found (RULER's needle tasks draw from | |
| Python's shared random state). catalogue-150m-11.5bt and full-attention-140m-11.5bt (2026-11-21) drew the same | |
| prompts as topic-index-140m-11.5bt at every length. Compare 32k scores across runs as two separate draws of 100 | |
| prompts, not prompt by prompt. | |
| <p align="center"><img src="figures/ruler_heat.png" width="520" alt="Heatmap of our 13 RULER tasks at 4k, 8k, 16k and 32k."></p> | |
| <details><summary>The same numbers as a table, topic-index-140m-11.5bt in brackets</summary> | |
| | RULER task | What it asks | 4k | 8k | 16k | 32k | | |
| |---|---|---:|---:|---:|---:| | |
| | single needle, noise filler | one number hidden in repeated filler | 1.00 (1.00) | 1.00 (1.00) | 1.00 (1.00) | 1.00 (1.00) | | |
| | single needle, essays | one number hidden in real essays | 1.00 (1.00) | 1.00 (1.00) | 1.00 (1.00) | 0.98 (0.98) | | |
| | single needle, UUID value | one 32-character ID hidden in essays | 0.29 (0.20) | 0.27 (0.55) | 0.07 (0.06) | 0.07 (0.13) | | |
| | multi-key 1 | one number among distractor keys | 0.99 (0.97) | 0.90 (0.95) | 0.91 (0.90) | 0.77 (0.76) | | |
| | multi-key 2 | the haystack is all similar needles | 0.92 (0.96) | 0.84 (0.77) | 0.76 (0.70) | 0.41 (0.46) | | |
| | multi-key 3 | as 2, with UUID keys and values | 0.28 (0.25) | 0.11 (0.06) | 0.06 (0.02) | 0.04 (0.03) | | |
| | multi-value | all values of one key | 0.31 (0.52) | 0.34 (0.64) | 0.24 (0.39) | 0.24 (0.27) | | |
| | multi-query | several keys asked at once | 0.40 (0.61) | 0.32 (0.69) | 0.11 (0.43) | 0.09 (0.30) | | |
| | variable tracking | follow a chain of assignments | 0.01 (0.01) | 0.01 (0.00) | 0.01 (0.01) | 0.01 (0.00) | | |
| | common words | list the most common words | 0.52 (0.52) | 0.42 (0.48) | 0.27 (0.36) | 0.13 (0.23) | | |
| | frequent words | list the most frequent words | 0.15 (0.38) | 0.16 (0.42) | 0.02 (0.37) | 0.06 (0.45) | | |
| | QA (SQuAD) | answer from one of many paragraphs | 0.33 (0.33) | 0.20 (0.21) | 0.21 (0.22) | 0.20 (0.21) | | |
| | QA (HotpotQA) | two-hop answer from many paragraphs | 0.15 (0.27) | 0.15 (0.25) | 0.19 (0.25) | 0.15 (0.25) | | |
| | **Mean of 13** | | **0.49** (0.54) | **0.44** (0.54) | **0.37** (0.44) | **0.32** (0.39) | | |
| </details> | |
| **Against reference models at 8k and 4k** (2026-11-18 14:34β15:22 UTC). The references run through lm-eval's stock | |
| `hf` model (`--hf_model`), each in bf16, its prompts sized with its own tokenizer, its start token as its tokenizer | |
| adds it. Every model gets room for prompt and answer (length + 256 positions): RULER's 8k prompts run slightly past | |
| 8,192 tokens, and at an 8,192 cap lm-eval would cut the start of the prompt, which holds the instruction; for | |
| SmolLM2-135M (trained to 8,192) that means up to 3 % past its training length. Pythia-160M and SmolLM2-135M's 252B | |
| checkpoint read 2,048 tokens and cannot take RULER's shortest length. Best in each row in **bold** (ties bolded | |
| together). The models on the same data are our runs (catalogue and full attention 2026-11-21). | |
| | RULER task, 8k | **Concept memory** | Full attention | Topic index | Catalogue | SmolLM2-135M | Gemma 3 270M | Granite 4.0 350M | LFM2.5-350M-Base | | |
| |---|---:|---:|---:|---:|---:|---:|---:|---:| | |
| | single needle, noise filler | **1.00** | **1.00** | **1.00** | **1.00** | **1.00** | **1.00** | **1.00** | 0.99 | | |
| | single needle, essays | **1.00** | **1.00** | **1.00** | 0.96 | 0.97 | 0.51 | **1.00** | **1.00** | | |
| | single needle, UUID value | 0.27 | 0.69 | 0.55 | 0.34 | 0.18 | 0.15 | **1.00** | 0.51 | | |
| | multi-key 1 | 0.90 | 0.78 | **0.95** | 0.76 | 0.58 | 0.79 | 0.88 | 0.88 | | |
| | multi-key 2 | **0.84** | 0.38 | 0.77 | 0.44 | 0.00 | 0.22 | 0.33 | 0.15 | | |
| | multi-key 3 (UUIDs) | 0.11 | **0.13** | 0.06 | 0.02 | 0.01 | 0.01 | 0.06 | 0.05 | | |
| | multi-value | 0.34 | 0.36 | 0.64 | 0.21 | 0.36 | 0.22 | **0.69** | 0.41 | | |
| | multi-query | 0.32 | 0.34 | 0.69 | 0.35 | 0.21 | 0.36 | **0.71** | 0.62 | | |
| | variable tracking | 0.01 | 0.00 | 0.00 | 0.03 | 0.06 | 0.00 | **0.17** | 0.13 | | |
| | common words | 0.42 | 0.17 | **0.48** | 0.39 | 0.01 | 0.41 | 0.22 | 0.09 | | |
| | frequent words | 0.16 | 0.11 | 0.42 | **0.44** | 0.21 | 0.27 | 0.40 | 0.01 | | |
| | QA (SQuAD) | 0.20 | 0.07 | 0.21 | 0.13 | 0.08 | 0.10 | 0.26 | **0.37** | | |
| | QA (HotpotQA) | 0.15 | 0.25 | 0.25 | 0.22 | 0.22 | 0.19 | **0.27** | 0.25 | | |
| | **Mean of 13** | 0.44 | 0.41 | **0.54** | 0.41 | 0.30 | 0.33 | **0.54** | 0.42 | | |
| | RULER task, 4k | **Concept memory** | Full attention | Topic index | Catalogue | SmolLM2-135M | Gemma 3 270M | Granite 4.0 350M | LFM2.5-350M-Base | | |
| |---|---:|---:|---:|---:|---:|---:|---:|---:| | |
| | single needle, noise filler | **1.00** | **1.00** | **1.00** | **1.00** | **1.00** | **1.00** | **1.00** | 0.98 | | |
| | single needle, essays | **1.00** | **1.00** | **1.00** | 0.98 | 0.98 | 0.97 | **1.00** | **1.00** | | |
| | single needle, UUID value | 0.29 | 0.71 | 0.20 | 0.57 | 0.28 | 0.75 | **1.00** | 0.53 | | |
| | multi-key 1 | **0.99** | 0.74 | 0.97 | 0.70 | 0.70 | 0.85 | 0.96 | 0.90 | | |
| | multi-key 2 | 0.92 | 0.59 | **0.96** | 0.47 | 0.07 | 0.23 | 0.27 | 0.36 | | |
| | multi-key 3 (UUIDs) | **0.28** | 0.07 | 0.25 | 0.06 | 0.06 | 0.09 | 0.17 | 0.12 | | |
| | multi-value | 0.31 | 0.41 | 0.52 | 0.18 | 0.63 | 0.46 | **0.67** | 0.40 | | |
| | multi-query | 0.40 | 0.47 | 0.61 | 0.21 | 0.29 | 0.46 | **0.82** | 0.71 | | |
| | variable tracking | 0.01 | 0.01 | 0.01 | 0.08 | 0.15 | 0.00 | **0.28** | 0.00 | | |
| | common words | 0.52 | 0.39 | 0.52 | 0.48 | 0.15 | **0.67** | 0.41 | 0.16 | | |
| | frequent words | 0.15 | 0.13 | 0.38 | 0.39 | 0.38 | 0.33 | **0.53** | 0.03 | | |
| | QA (SQuAD) | 0.33 | 0.23 | 0.33 | 0.27 | 0.28 | 0.29 | 0.50 | **0.53** | | |
| | QA (HotpotQA) | 0.15 | 0.22 | 0.27 | 0.24 | 0.27 | 0.16 | **0.39** | 0.34 | | |
| | **Mean of 13** | 0.49 | 0.46 | 0.54 | 0.43 | 0.40 | 0.48 | **0.62** | 0.47 | | |
| **Why an earlier run scored lower.** Our first RULER run of this model (AWS, 2026-11-16) cut every answer at 32 | |
| tokens. That cap held every answer for our earlier models' GPT-2 tokenizer but not for SmolLM2's, | |
| which writes every digit as its own token (one UUID is 35 tokens, four 7-digit numbers 36, ten numbered words 41). | |
| The capped run's means were 0.43 / 0.40 / 0.34 / 0.30 at 4k / 8k / 16k / 32k; its UUID needle scored 0.02 at 4k and | |
| the UUID multi-key 0.00. The table above replaces it. Tasks the cap could not affect (short answers) moved by up to Β±0.09 between the two runs, which differ in machine and in the prompts drawn: that is the run-to-run noise at 100 prompts per task. The tasks with long answers moved more: the UUID needle +0.27 at 4k, the UUID multi-key +0.28, common words +0.08 to +0.18 at every length. Previous generation (100M, GPT-2 tokenizer, no lookup | |
| training, capped run, unaffected): mean 0.185 at 4k and 0.136 at 16k; the essay needle 0.58 at 4k and 0.14 at 16k. | |
| ## Loading with from_pretrained | |
| The release folder is written by `scripts/export_hub_model.py` (modeling code generated from the MrCogito source, | |
| `auto_map`, weights, tokenizer, `export_manifest.json`). Checks on 2026-11-18 (engineering spec | |
| `docs/engineering_specs/hub_from_pretrained_loading.md` in the code repository): | |
| - `tests/test_hub_export.py` with this checkpoint on an RTX 3090, 14:29β14:30 UTC: 27 of 27 passed (the export's loss | |
| on a fixed 182-token text equals our evaluation loader's, 2.75207 both; π€ greedy decoding equals our cached decoder | |
| for 32 tokens; seeded sampling repeats; beam search runs; it loads from the folder with `local_files_only`). | |
| - Clean environments with only torch 2.11 and Transformers (`python -I scripts/hub_smoke_test.py`): passed on | |
| Transformers 4.57.6 and 5.23.0, the same sentence loss (2.0551) and the same seed-0 sample on both. | |
| - topic-index-140m-11.5bt, catalogue-150m-11.5bt and full-attention-140m-11.5bt pass the same checks, and their | |
| board tests through lm-eval's stock `hf` model match their adapter numbers (their EVALUATION.md, section 9). | |
| - A whole 64k-token text through `from_pretrained` from the public Hub repository (2026-11-21, one RTX 3090, bf16, | |
| `attn_backend="flex"`, `labels` and `logits_to_keep=1`): one pass, 7.9 s and 3.5 GB peak GPU memory (the first | |
| call, which compiles, 11.2 s). Without `logits_to_keep` the logits of all 64k positions run out of memory on the | |
| card's 24 GB. | |
| ## Text samples | |
| `evaluation/sample_text.py` (a copy is in `samples/`), one RTX 3090, 2026-11-18 12:49 UTC; prompts start with | |
| `<|endoftext|>` as in training. Nucleus sampling: temperature 0.7, top-p 0.9, repetition penalty 1.1 over prompt | |
| and reply, seeds 0, 1 and 2. Beam search: 4 beams, no repeated 3-gram, best by mean log-probability. 60 new tokens. | |
| All outputs, unedited: `samples/samples_ours.json`. The card shows seed 0 for each prompt. | |
| ## What we have not measured | |
| - **Long-document benchmarks with real questions** (LongBench, BABILong) and needle tests past 32k. | |
| - **Lengths past 128k.** The memory is built for the lengths full attention cannot afford; its reach tests are not | |
| part of this release. | |
| - **A second seed.** Every number here is seed 42; differences of a point or two are not established. | |
| - **Energy use.** | |
| ## Training procedure | |
| | | Stage 1 (main) | Stage 2 (decay) | Stage 3 (long) | | |
| |---|---|---|---| | |
| | Row length | 4,096 | 16,384 | 65,536 | | |
| | Steps Γ rows per step | 15,259 Γ 128 | 5,722 Γ 32 | 954 Γ 8 | | |
| | Tokens per step | 524,288 | 524,288 | 524,288 | | |
| | Learning rate | Muon peak 0.01, constant after 1 % warm-up | fresh optimizer, 3 % warm-up, 1 β β decay to 0.1 Γ | a tenth of the peak, decaying | | |
| | Held-out loss (nats per token, lower is better) | 2.732 β 2.134 (4k web rows) | 2.295 β 1.996 (16k long-document rows) | 1.960 β 1.936 (64k rows) | | |
| | Speed | 105.6k tokens/s | 69.7k tokens/s | 21.6k tokens/s (activations recomputed) | | |
| | Wall time | 21.2 h | 12.2 h | 6.5 h (+ β1 h lost to a spot interruption) | | |
| Muon updates the weight matrices; norms, embeddings and other vector parameters use AdamW (betas 0.9 / 0.95, weight | |
| decay 0.1). Gradient clipping at 1.0, bf16, flex attention. A paid two-arm test (2,000 steps each, $15) chose Muon | |
| over AdamW before the run: held-out loss 2.283 against 2.323 at step 2,000 (lower is better; the pass mark was 0.03). | |
| **Long documents** in training are whole documents of at least 16,384 tokens; the five Common Pile long-document | |
| sources keep a held-out set (the LongDocs-lite validation documents), which the long-context tests read. **Lookups:** | |
| 15 % ask for a fact that was never stated, 15 % of facts are revised later. | |
| ## Reproducibility | |
| - **W&B (public project `ksopyla/MrCogito`):** | |
| [stage 1](https://wandb.ai/ksopyla/MrCogito/runs/perceiver_ar_perceiver_H896L3g1s9N128_20261115_052641_e37a_m120t_trunk) Β· | |
| [stage 2](https://wandb.ai/ksopyla/MrCogito/runs/perceiver_ar_perceiver_H896L3g1s9N128_20261116_024010_e37a_m120t_decay) Β· | |
| [stage 3](https://wandb.ai/ksopyla/MrCogito/runs/perceiver_ar_perceiver_H896L3g1s9N128_20261116_155301_e37a_m120t_long) Β· | |
| report [150M concept memory vs earlier 100M runs](https://wandb.ai/ksopyla/MrCogito/reports/150M-concept-memory-vs-earlier-100M-runs--VmlldzoxODMxMjMwMw) | |
| - **In this repository:** `eval_results/` (full lm-eval outputs for every model and checkpoint above), | |
| `long_context/` (both long-document scripts, per-document results, the summarisers `summarise.py` and | |
| `summarise_compare.py`), `ruler/` (scores and every reply), `samples/` (the sampling script and its outputs), | |
| `figures/make_figures.py`. | |
| - **Code** at [commit `1fddc505`](https://github.com/ksopyla/MrCogito/tree/1fddc505): experiment spec | |
| `docs/experiments_specs/ahead/E38_long_budget_mix.md` (hypothesis and the pass marks set before training); data | |
| recipe `data/mix_recipes/m21_mix_v2.json` and builders `scripts/build_m21_mix.py`, `scripts/build_reasoning_rows.py`; | |
| training `scripts/run_e33n.py` (size `m120t`, arm `e37a`) and job `infra/aws/jobs/e38_board.sh`; architecture | |
| `nn/perceiver_ar_lm.py`, `nn/concept_memory.py`. The fixed RULER runner and the sampling script are newer than | |
| that commit; this repository has them as `ruler/run_lsa_suite.py` and `samples/sample_text.py`. | |
| - **Intermediate checkpoints** of this model are not published yet. | |