--- 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