Run this model with HF Jobs
Run olaverse/YellowMIST-Encoder-15M-OA on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/olaverse/YellowMIST-Encoder-15M-OA. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/olaverse/YellowMIST-Encoder-15M-OA on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use olaverse/YellowMIST-Encoder-15M-OA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use olaverse/YellowMIST-Encoder-15M-OA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="olaverse/YellowMIST-Encoder-15M-OA")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("olaverse/YellowMIST-Encoder-15M-OA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download README.md from olaverse/YellowMIST-Encoder-15M-OA: direct link, hf CLI and curl.
- Browser
- Download file 7.25 kB
-
https://huggingface.co/olaverse/YellowMIST-Encoder-15M-OA/resolve/main/README.md
- Command line
-
hf download hf://olaverse/YellowMIST-Encoder-15M-OA/README.md
-
curl -L -o README.md https://huggingface.co/olaverse/YellowMIST-Encoder-15M-OA/resolve/main/README.md
license: apache-2.0
language:
- aii
- div
- ell
- grc
- hbo
- heb
- hye
- hyw
- kat
- nqo
- pnt
- rmn
- syc
- syr
- tzm
- xmf
- ydd
library_name: transformers
pipeline_tag: fill-mask
tags:
- yellowmist
- dew
- character-level
- encoder
- multilingual
- on-device
- fill-mask
YellowMIST-Encoder-15M-OA
YellowMIST Encoder is a family of tiny character-level encoders to fine-tune for on-device text tasks: code-switching detection, word segmentation, autocorrect, restoring tone marks, punctuation and capitals, small NER. Each encoder covers one script or region group. This one covers Greek, Hebrew, Georgian, Armenian and Thaana: 17 languages.
- 15.0M parameters, 60 MB in fp32 (about 15 MB once quantised to int8; that file is not exported yet)
- Reads characters (NFC code points), so it needs no tokenizer and handles any spelling or tone marks in its script
- Sees text in both directions, like BERT. It labels or fixes text; it does not generate it.
Architecture
Dew, preset dew-1-enc-hybrid: 6 layers, GGAGGA. That is 4 bidirectional Gated DeltaNet layers (a fixed-size memory read
forwards and backwards) and 2 attention layers, with a dense SwiGLU feed-forward block in each layer. Hidden size 320.
Context of 512 characters in training; it runs on longer text. The first token of a text is its language tag (<|lang:xxx_Xxxx|>).
This is Dew's small dense hybrid. Dew also has Mixture-of-Experts ("Nap") presets; those are research presets for larger models and are not used in any YellowMIST model. The Gated DeltaNet layer is from Yang, Kautz and Hatamizadeh, Gated Delta Networks: Improving Mamba2 with Delta Rule (2024); training uses the flash-linear-attention kernels on GPU.
Why this layout: in a 3-seed pilot on the West Africa data, it beat a same-size transformer encoder on every test, by more than the seed-to-seed spread:
| Model (15M, same data and steps, 3 seeds) | masked chars | mark restoration | punctuation F1 | capitals F1 |
|---|---|---|---|---|
Dew dew-1-enc-hybrid (this architecture) |
65.89 Β± 0.13 | 82.89 Β± 0.04 | 36.67 Β± 0.35 | 59.07 Β± 0.59 |
| Transformer encoder | 64.43 Β± 0.19 | 82.44 Β± 0.02 | 34.33 Β± 1.10 | 57.07 Β± 1.44 |
The pilot used shorter training, on the West Africa data only, so its numbers are not comparable with the Results below.
Training
- Objective: masked characters. Spans of 3 characters are hidden at 15% of positions, and the model fills them in.
- Data: web and chat text from the YellowMIST corpus, licence-screened. 2.46B unique characters in this group.
- Trained on 8.0B characters (122,070 steps of 128 Γ 512). Small languages repeat at most 4 times; English is capped at a quarter of the training text.
Results
Held-out documents (never trained on).
- Masked characters filled in correctly: 73.2%
- Short fine-tune probes: mark restoration 97.8% words right (mean over 2 languages), punctuation F1 47.4, capitals F1 65.2
| Language | masked chars % | mark restoration % | punctuation F1 | capitals F1 | unique chars |
|---|---|---|---|---|---|
ell_Grek |
84.1 | 95.6 | 50.8 | 75.3 | 330M |
heb_Hebr |
68.7 | β | 43.8 | 75.1 | 383M |
kat_Geor |
82.0 | β | 61.5 | 73.5 | 329M |
hye_Armn |
85.7 | β | 75.9 | 86.6 | 305M |
div_Thaa |
83.6 | 99.9 | 89.8 | 48.7 | 275M |
ydd_Hebr |
81.9 | β | 48.5 | 69.4 | 304M |
hyw_Armn |
72.9 | β | 55.9 | 83.6 | 298M |
grc_Grek |
77.2 | β | 44.0 | 73.7 | 129M |
hbo_Hebr |
76.8 | β | 2.0 | 80.9 | 92M |
syr_Syrc |
68.6 | β | 66.7 | 71.4 | 3M |
syc_Syrc |
β | β | β | β | 3M |
xmf_Geor |
37.9 | β | 21.1 | 0.0 | 1M |
tzm_Tfng |
β | β | 50.0 | 0.0 | 3M |
aii_Syrc |
63.8 | β | 52.9 | 93.3 | 3M |
nqo_Nkoo |
β | β | β | β | <1M |
pnt_Grek |
69.1 | β | 0.0 | 80.7 | 1M |
rmn_Grek |
β | β | β | β | <1M |
Mark restoration only runs for languages written with diacritics or tone marks. A β means no probe, or a language
with under 1M characters of text, whose test set is too small to give a stable score. The group means above include
every probed language.
Use
With the yellowmist library (recommended)
This is a base model to fine-tune. The finished tasks built on it (punctuation, language of every word, word
boundaries) ship in the yellowmist library: pip install yellowmist, see the documentation.
from yellowmist import train # pip install "yellowmist[train]"
enc = train.Encoder.load("OA") # this model
train.continue_pretraining(enc, {"ell_Grek": paragraphs}, steps=2000) # keep pretraining on your text
model = train.finetune_punct(enc, {"ell_Grek": paragraphs}) # or finetune_switch(...)
model.save("my-model") # weights + ONNX, ready for ym.register / model=
The fine-tuning notebook (open in Colab) walks through every step, including adding new languages and sharing your model on the Hub.
Without the library (transformers)
import json, unicodedata, torch
import dew # pip install "dew-lm[hf]": registers the Dew architecture
from huggingface_hub import hf_hub_download
from transformers import AutoModelForMaskedLM
model = AutoModelForMaskedLM.from_pretrained("olaverse/YellowMIST-Encoder-15M-OA").eval()
vocab = json.load(open(hf_hub_download("olaverse/YellowMIST-Encoder-15M-OA", "vocab.json")))["vocab"]
ids = {t: i for i, t in enumerate(vocab)}
text = unicodedata.normalize("NFC", "Your text here")
x = torch.tensor([[ids["<|lang:ell_Grek|>"]] + [ids.get(c, 1) for c in text]]) # 1 = <unk>
with torch.no_grad():
hidden = model.model(x)[0] # [1, 1 + characters, hidden], one vector per character
To fine-tune by hand, put a small head on hidden (one label per character or word) and train the whole model with
a low learning rate (3e-4 worked for our tasks).
More: documentation Β· GitHub Β· playground Β· fine-tuning notebook
Limits
- This is a base model, not a finished tool: fine-tune it for a task.
- Masked-character accuracy measures how well the model knows the languages, not any one task. Compare it within a group, not across scripts.
Licence
Apache-2.0.
Citation
@misc{yellowmist-encoder-15m-oa,
title = {YellowMIST-Encoder-15M-OA: a tiny character-level encoder for on-device text tasks},
author = {Olaverse},
year = {2026},
url = {https://huggingface.co/olaverse/YellowMIST-Encoder-15M-OA}
}
