AGI Counts
count table language model
2 min readupdated
AGI Counts is a family of byte-level models operating on exact n-gram counts (sequences of n characters) using mixing and fallback to shorter contexts. The model has no neural weights and uses no gradient training: its "memory" consists of count tables populated in a single pass over a text corpus. The release includes original and scaled checkpoints, research capability layers, a training corpus, and full test logs. The model is built for natural language processing architecture researchers and those studying alternative approaches to probabilistic text prediction without neural networks.
Key features
- Non-neural operation: predictions rely on inspectable byte frequency tables without gradient descent.
- Two ready-to-use checkpoints: an original compact set in CNT1 format and a scaled variant on NPZ arrays.
- Verified data cleanliness: the corpus is assembled from Project Gutenberg books without test data leakage and includes a privacy audit.
- Flexible structure over core: ability to attach search modules, slot copying, and alias resolution.
What you can do
- Run computations: use the ready script to evaluate entropy and byte probabilities via provided loader codes.
- Analyze metrics: examine model behavior on frozen benchmark datasets (BPB).
- Explore capability layers: test data formatting modules and CLI command generation based on the structural wrapping.
- Explore the corpus: examine a text base of 54 public domain works for your own experiments.
Example
import sys; sys.path.insert(0, 'code')
import counts_retrieval as cr # original model + v4 layers
bits, n = cr.score_bytes_v4(b'some text', params)
import scaled_model_npz # scaled model from the NPZ
p = scaled_model_npz.predict(b'preceding bytes')Read more
DetailsBPB benchmarks: Scaled + v2 retrieval achieves 1.8477 (lower is better)
Original CNT1 model contains 456,631 saved count pairs
Scaled NPZ model trained on a 36.85 MB Gutenberg corpus
Limitations: model memorizes and copies surface text without forming deep abstractions










Comments