Add files using upload-large-folder tool
Browse filesFiles changed (50)
- L/bpe/seed0/config.jsonAdded+12
- L/bpe/seed1/config.jsonAdded+12
- L/bpe/seed2/config.jsonAdded+12
- L/byte/seed0/config.jsonAdded+12
- L/byte/seed0/model.safetensorsAdded+3
- L/byte/seed1/config.jsonAdded+12
- L/byte/seed1/model.safetensorsAdded+3
- L/byte/seed2/config.jsonAdded+12
- L/byte/seed2/model.safetensorsAdded+3
- L/moirai-utf8/seed0/config.jsonAdded+13
- L/moirai-utf8/seed0/model.safetensorsAdded+3
- L/moirai-utf8/seed1/config.jsonAdded+13
- L/moirai-utf8/seed1/model.safetensorsAdded+3
- L/moirai-utf8/seed2/config.jsonAdded+13
- L/moirai-utf8/seed2/model.safetensorsAdded+3
- L/moirai/seed0/config.jsonAdded+12
- L/moirai/seed1/config.jsonAdded+12
- L/moirai/seed2/config.jsonAdded+12
- M/bpe/seed0/config.jsonAdded+12
- M/bpe/seed1/config.jsonAdded+12
- M/bpe/seed2/config.jsonAdded+12
- M/byte/seed0/config.jsonAdded+12
- M/byte/seed1/config.jsonAdded+12
- M/byte/seed2/config.jsonAdded+12
- M/moirai-local/seed0/config.jsonAdded+12
- M/moirai-local/seed1/config.jsonAdded+12
- M/moirai-local/seed2/config.jsonAdded+12
- M/moirai-utf8/seed0/config.jsonAdded+13
- M/moirai-utf8/seed1/config.jsonAdded+13
- M/moirai-utf8/seed2/config.jsonAdded+13
- M/moirai/seed0/config.jsonAdded+12
- M/moirai/seed1/config.jsonAdded+12
- M/moirai/seed2/config.jsonAdded+12
- README.mdAdded+120
- S/bpe/seed0/config.jsonAdded+12
- S/bpe/seed1/config.jsonAdded+12
- S/bpe/seed2/config.jsonAdded+12
- S/byte/seed0/config.jsonAdded+12
- S/byte/seed1/config.jsonAdded+12
- S/byte/seed2/config.jsonAdded+12
- S/moirai-local/seed0/config.jsonAdded+12
- S/moirai-local/seed1/config.jsonAdded+12
- S/moirai-local/seed2/config.jsonAdded+12
- S/moirai-utf8/seed0/config.jsonAdded+13
- S/moirai-utf8/seed1/config.jsonAdded+13
- S/moirai-utf8/seed2/config.jsonAdded+13
- S/moirai/seed0/config.jsonAdded+12
- S/moirai/seed1/config.jsonAdded+12
- S/moirai/seed2/config.jsonAdded+12
- tokenizer/bpe_8192.jsonAdded
123456789101112{ "rep": "bpe", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "bpe", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "bpe", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "byte", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123version https://git-lfs.github.com/spec/v1oid sha256:368b7a06eaf7504ab0a2107e0813d35da6fcd945fce5b5540dfa2bd7492cc26asize 101789936123456789101112{ "rep": "byte", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123version https://git-lfs.github.com/spec/v1oid sha256:4b5676e8ca6087aae5e4ba5b68cff3797447dc57b02c26e69b4e22b94248f688size 101789936123456789101112{ "rep": "byte", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123version https://git-lfs.github.com/spec/v1oid sha256:35d853e75f038b0fbc0128599932f205686424c65816cfce31610cad1d8ed27csize 10178993612345678910111213{ "rep": "moirai", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global", "char_aware": true}123version https://git-lfs.github.com/spec/v1oid sha256:659e056cae6408c83c42d95cb833f6ed20e2b8b743fb94bf4ce4d805e06af7edsize 13262587212345678910111213{ "rep": "moirai", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global", "char_aware": true}123version https://git-lfs.github.com/spec/v1oid sha256:ba18a531ae42238dcf1ea40f9f90a4f350804d1165334f768581b31e2ad3afb0size 13262587212345678910111213{ "rep": "moirai", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global", "char_aware": true}123version https://git-lfs.github.com/spec/v1oid sha256:9c79ac8caeed473d828a9a2ed06648603205a9817f2afb6198ed93806459ef52size 132625872123456789101112{ "rep": "moirai", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "moirai", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "moirai", "d": 512, "n_layer": 8, "vocab": 8192, "d_outer": 384, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "bpe", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "bpe", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "bpe", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "byte", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "byte", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "byte", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "moirai", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "local"}123456789101112{ "rep": "moirai", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "local"}123456789101112{ "rep": "moirai", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "local"}12345678910111213{ "rep": "moirai", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global", "char_aware": true}12345678910111213{ "rep": "moirai", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global", "char_aware": true}12345678910111213{ "rep": "moirai", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global", "char_aware": true}123456789101112{ "rep": "moirai", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "moirai", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "moirai", "d": 384, "n_layer": 6, "vocab": 8192, "d_outer": 256, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120---license: mitlibrary_name: pytorchpipeline_tag: text-generationlanguage:- en- yo- ha- igtags:- byte-level- dynamic-chunking- h-net- learned-chunking- tokenization- african-languages- researchdatasets:- 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 sothat every number in the paper can be checked against the weights: loss,compression, and where MOIRAI's router cuts text. They are not assistants andare not tuned to follow instructions.
[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.jsontokenizer/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
```pythonimport jsonfrom huggingface_hub import hf_hub_downloadfrom 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 modelsread token ids from `tokenizer/bpe_8192.json`. Evaluation in the paper scoresevery byte of a text from a BOS start; see `prometheus/train.py` (`evaluate`) inthe 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 frompinned sources.
## Limits
The largest model has 33M parameters. H-Net's reported advantages over BPEappear at hundreds of millions to billions of parameters. MOIRAI here usesTransformer layers and one stage, while H-Net uses Mamba-2 and two stages. Thepaper'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.co123456789101112{ "rep": "bpe", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "bpe", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "bpe", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "byte", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "byte", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "byte", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "moirai", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "local"}123456789101112{ "rep": "moirai", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "local"}123456789101112{ "rep": "moirai", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "local"}12345678910111213{ "rep": "moirai", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global", "char_aware": true}12345678910111213{ "rep": "moirai", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global", "char_aware": true}12345678910111213{ "rep": "moirai", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global", "char_aware": true}123456789101112{ "rep": "moirai", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "moirai", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}123456789101112{ "rep": "moirai", "d": 256, "n_layer": 4, "vocab": 8192, "d_outer": 192, "n_enc": 2, "n_dec": 2, "target_ratio": 4.0, "alpha": 0.03, "ratio_scope": "global"}L/bpe/seed0/config.jsonAdded+12
L/bpe/seed1/config.jsonAdded+12
L/bpe/seed2/config.jsonAdded+12
L/byte/seed0/config.jsonAdded+12
L/byte/seed0/model.safetensorsAdded+3
L/byte/seed1/config.jsonAdded+12
L/byte/seed1/model.safetensorsAdded+3
L/byte/seed2/config.jsonAdded+12
L/byte/seed2/model.safetensorsAdded+3
L/moirai-utf8/seed0/config.jsonAdded+13
L/moirai-utf8/seed0/model.safetensorsAdded+3
L/moirai-utf8/seed1/config.jsonAdded+13
L/moirai-utf8/seed1/model.safetensorsAdded+3
L/moirai-utf8/seed2/config.jsonAdded+13
L/moirai-utf8/seed2/model.safetensorsAdded+3
L/moirai/seed0/config.jsonAdded+12
L/moirai/seed1/config.jsonAdded+12
L/moirai/seed2/config.jsonAdded+12
M/bpe/seed0/config.jsonAdded+12
M/bpe/seed1/config.jsonAdded+12
M/bpe/seed2/config.jsonAdded+12
M/byte/seed0/config.jsonAdded+12
M/byte/seed1/config.jsonAdded+12
M/byte/seed2/config.jsonAdded+12
M/moirai-local/seed0/config.jsonAdded+12
M/moirai-local/seed1/config.jsonAdded+12
M/moirai-local/seed2/config.jsonAdded+12
M/moirai-utf8/seed0/config.jsonAdded+13
M/moirai-utf8/seed1/config.jsonAdded+13
M/moirai-utf8/seed2/config.jsonAdded+13
M/moirai/seed0/config.jsonAdded+12
M/moirai/seed1/config.jsonAdded+12
M/moirai/seed2/config.jsonAdded+12
README.mdAdded+120
S/bpe/seed0/config.jsonAdded+12
S/bpe/seed1/config.jsonAdded+12
S/bpe/seed2/config.jsonAdded+12
S/byte/seed0/config.jsonAdded+12
S/byte/seed1/config.jsonAdded+12
S/byte/seed2/config.jsonAdded+12
S/moirai-local/seed0/config.jsonAdded+12
S/moirai-local/seed1/config.jsonAdded+12
S/moirai-local/seed2/config.jsonAdded+12
S/moirai-utf8/seed0/config.jsonAdded+13
S/moirai-utf8/seed1/config.jsonAdded+13
S/moirai-utf8/seed2/config.jsonAdded+13
S/moirai/seed0/config.jsonAdded+12
S/moirai/seed1/config.jsonAdded+12
S/moirai/seed2/config.jsonAdded+12
tokenizer/bpe_8192.jsonAdded