File size: 4,554 Bytes
d3a20ba 842ce03 d3a20ba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | ---
license: mit
library_name: pytorch
pipeline_tag: text-generation
language:
- en
- yo
- ha
- ig
tags:
- byte-level
- dynamic-chunking
- h-net
- learned-chunking
- tokenization
- african-languages
- research
datasets:
- maximoai-co/prometheus
- maximoai-co/delphi-0
---
# PROMETHEUS v2 checkpoints
**All 42 research checkpoints behind PROMETHEUS v2.** They are byte-level
(BYTE), subword (BPE-8k) and learned-chunking (MOIRAI, MOIRAI-L, MOIRAI-U)
language models, trained on identical bytes of English, Yor霉b谩, Hausa and Igbo.
There are three sizes and three seeds each.
They are small research models, made for measurement. They are released so
that every number in the paper can be checked against the weights: loss,
compression, and where MOIRAI's router cuts text. They are not assistants and
are not tuned to follow instructions.
[DELPHI live leaderboard](https://huggingface.co/spaces/maximoai-co/delphi-leaderboard) 路
[Paper](https://github.com/maximoai-co/prometheus/blob/main/paper/prometheus_v2.pdf) 路
[code](https://github.com/maximoai-co/prometheus) 路
[run records](https://huggingface.co/datasets/maximoai-co/prometheus) 路
[DELPHI-0](https://huggingface.co/datasets/maximoai-co/delphi-0)
## Layout
```
{size}/{model}/seed{0,1,2}/model.safetensors
{size}/{model}/seed{0,1,2}/config.json
tokenizer/bpe_8192.json # the BPE-8k vocabulary, for the BPE models
```
| size | width / layers | parameters | training bytes | models |
|---|---|---|---|---|
| S | 256 / 4 | 3M to 5M | 100M | byte, bpe, moirai, moirai-local, moirai-utf8 |
| M | 384 / 6 | 11M to 14M | 200M | byte, bpe, moirai, moirai-local, moirai-utf8 |
| L | 512 / 8 | 25M to 33M | 400M | byte, bpe, moirai, moirai-utf8 |
- `moirai`: the main MOIRAI model. The ratio loss is computed over the batch.
- `moirai-local`: the ratio loss is computed per sequence.
- `moirai-utf8`: MOIRAI-U. Chunks may not start on a UTF-8 continuation byte or
a combining-mark lead byte, so no chunk starts inside a character.
## Load a checkpoint
```python
import json
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
# model code: https://github.com/maximoai-co/prometheus (prometheus/models.py)
from prometheus.models import ModelConfig, build
repo, path = "maximoai-co/prometheus-v2-models", "L/moirai/seed0"
cfg = ModelConfig(**json.load(open(hf_hub_download(repo, f"{path}/config.json"))))
model = build(cfg)
model.load_state_dict(load_file(hf_hub_download(repo, f"{path}/model.safetensors")))
model.eval()
```
Byte models read raw UTF-8 bytes (256 byte values, plus one id for the start of a text). BPE models
read token ids from `tokenizer/bpe_8192.json`. Evaluation in the paper scores
every byte of a text from a BOS start; see `prometheus/train.py` (`evaluate`) in
the code repository.
## Results at size L (FLORES-200 bits per byte, mean of 3 seeds)
| model | seen (en yo ha ig) | unseen Latin (sw zu so) | training FLOPs |
|---|---|---|---|
| BYTE | 1.767 | 4.086 | 6.57e16 |
| BPE-8k | 1.772 | 4.279 | 2.04e16 |
| MOIRAI | 1.821 | 4.183 | 3.66e16 |
| MOIRAI-U | 1.822 | 4.184 | 3.66e16 |
## Training data
- English: C4 (ODC-BY).
- Yor霉b谩, Hausa and Igbo: the AfriBERTa corpus (Apache-2.0), decontaminated
against the evaluation sets.
`scripts/build_data.py` in the code repository rebuilds the exact mix from
pinned sources.
## Limits
The largest model has 33M parameters. H-Net's reported advantages over BPE
appear at hundreds of millions to billions of parameters. MOIRAI here uses
Transformer layers and one stage, while H-Net uses Mamba-2 and two stages. The
paper's 搂7 lists the remaining limits.
## Citation
```bibtex
@misc{johnson2026prometheus,
title = {{PROMETHEUS}: What African Languages Pay for Tokenization, and What Learning to Cut Bytes Changes},
author = {Johnson, Daniel Jonah},
year = {2026},
month = dec,
institution = {Maximo AI Research, Maximo AI Ltd},
url = {https://github.com/maximoai-co/prometheus}
}
```
---
**About Maximo AI.** Africa's frontier AI lab, built in Lagos, Nigeria. We build our own models (Maximo Atlas, Pandora, Cyber and Decisions), the [Maximo API](https://maximoai.co/platform) and the [Syntax](https://maximoai.co/syntax) coding agent, and the products [Kydanet](https://kydanet.com) and the [MyTabulon](https://mytabulon.com) Coding Plan. Maximo AI Research publishes the code, the data and every run behind each claim. [maximoai.co](https://maximoai.co) 路 [huggingface.co/maximoai-co](https://huggingface.co/maximoai-co) 路 dev@maximoai.co
|