On this page
Oromo AI Evaluation Framework
Purpose
Evaluation in Oromo AI is designed to prevent progress from being judged by fluent-looking examples alone.
This framework evaluates the named project layers: OromoCorpus integrity, OromoTokenizer efficiency and adaptation, OromoLM capability, and the future OromoBench suite.
Every major research layer should have a fixed, reproducible evaluation protocol before optimization begins.
Current evaluation layers:
OromoCorpus integrity
↓
OromoTokenizer efficiency
↓
Base-model language ability
↓
Continued-pretraining gains
↓
Instruction following
↓
OromoBench
1. Corpus validation
The current production corpus is:
afriberta_oromo_v0.1.2
Processed SHA-256:
6f990088c8fb319b46c9a25a1c463e7a700cc8d292da781cfcc44ac4391ee0f6
Current validation invariants include:
- manifest record count matches output;
- character totals match;
- no malformed JSON;
- no empty processed records;
- no duplicate cleaned hashes;
- unique source-line accounting;
- rejection/deduplication accounting is exact.
Corpus quality and statistics are documented separately in:
docs/CORPUS_QUALITY_REPORT.mddocs/CORPUS_STATISTICS_REPORT.md
2. Tokenizer evaluation
Canonical holdout
Tokenizer evaluation uses the frozen sample:
tokenizer/evaluation/samples/afriberta_oromo_v0.1.2_n10000.jsonl
Records:
10,000
Sampling seed:
20260919
SHA-256:
369c4438beab0d619336448eab7e27aae29d0722fd089088dbf0b2addc3d81f5
The sample contains 10,000 unique record IDs and 10,000 unique texts.
It is excluded from custom tokenizer training by stable record_id.
Training/evaluation split
Production records: 410,193
Tokenizer training: 400,193
Tokenizer evaluation: 10,000
Evaluation leakage: 0
Tokenizer training corpus SHA-256:
a733419e61ed4751e7f4da950e8c05c893ecbbc63be12c1551a1493507162dff
Metrics
Tokenizer comparisons record:
- vocabulary size;
- total tokens;
- tokens per whitespace-delimited word;
- characters per token;
- UTF-8 bytes per token;
- fragmented-word rate;
- single-token-word rate;
- unaligned words;
- unknown-token count/rate;
- sample tokenizations;
- software versions;
- model and corpus provenance where applicable.
The word accounting invariant is:
fragmented + single-token + unaligned = total words
Current benchmark
Custom and multilingual references
| Tokenizer | Vocab | Tok/Word | Frag % | Single % | UNK | Bytes/Tok |
|---|---|---|---|---|---|---|
| oromo-unigram-48k-byte | 48,000 | 1.4000 | 38.75% | 61.25% | 0 | 5.4562 |
| oromo-unigram-32k-byte | 32,000 | 1.4495 | 40.83% | 59.17% | 0 | 5.2699 |
| castorini/afriberta_base | 70,006 | 1.6765 | 39.83% | 60.16% | 0 | 4.5563 |
| xlm-roberta-base | 250,002 | 2.6091 | 81.03% | 18.97% | 3 | 2.9278 |
| bert-base-multilingual-cased | 119,547 | 2.8696 | 87.36% | 12.63% | 5,423 | 2.6620 |
Native causal-LM tokenizers
| Tokenizer | Vocab | Tok/Word | Frag % | Single % | UNK | Bytes/Tok |
|---|---|---|---|---|---|---|
| google/gemma-3-1b-pt | 262,144 | 2.7855 | 85.91% | 14.09% | 0 | 2.7423 |
| Qwen/Qwen3.5-0.8B-Base | 248,044 | 2.9191 | 86.94% | 13.06% | 0 | 2.6169 |
| meta-llama/Llama-3.2-1B | 128,000 | 3.0311 | 88.32% | 11.68% | 0 | 2.5202 |
| Qwen/Qwen3-0.6B-Base | 151,643 | 3.0713 | 88.89% | 11.11% | 0 | 2.4872 |
| mistralai/Mistral-7B-v0.3 | 32,768 | 3.3241 | 93.09% | 6.91% | 0 | 2.2980 |
The native causal tokenizers all provide Unicode coverage on this holdout, but sequence inflation and word fragmentation are consistently high for Afaan Oromoo.
Whole-word augmentation feasibility
Vocabulary augmentation preserves the original tokenizer IDs and appends selected Oromo lexical tokens. Candidate ranking uses only the leakage-safe tokenizer-training split and optimizes:
frequency × (native_pieces - 1)
Frozen-holdout results:
| Base tokenizer | Native | +2K | +4K | +8K | +16K |
|---|---|---|---|---|---|
| Llama 3.2 1B | 3.0311 | 2.5705 | 2.4715 | 2.3716 | 2.2821 |
| Qwen3 0.6B | 3.0713 | 2.6063 | 2.5058 | 2.4049 | 2.3140 |
| Gemma 3 1B | 2.7855 | 2.4475 | 2.3692 | 2.2903 | 2.2172 |
At +4K, fragmentation falls to 38.19% for Llama, 38.70% for Qwen3, and 38.21% for Gemma—close to the 38.75% custom 48K reference. Token-per-word efficiency remains materially worse than the custom tokenizer, so fragmentation and sequence efficiency must be evaluated separately.
Full tokenizer methodology and all candidate results are documented in:
docs/TOKENIZER_RESEARCH_REPORT.md
3. Tokenizer decision criteria
The final tokenizer decision must not be based on tokens/word alone.
The decision should consider:
- Oromo sequence efficiency;
- word fragmentation;
- unknown-token behavior;
- vocabulary size;
- embedding/output-layer parameter cost;
- compatibility with the selected causal base model;
- cost of vocabulary augmentation or tokenizer replacement;
- continued-pretraining stability.
The current 32K-byte and 48K-byte tokenizers are OromoTokenizer research references, not yet final production choices.
4. Causal-LM tokenizer and augmentation evaluation
Native causal-tokenizer benchmarking, whole-word augmentation, and the first model-level Gemma +8K proof are complete.
The frozen Gemma +8K training candidate is:
base: google/gemma-3-1b-pt
augmentation: +8,000 cleaned leakage-safe Oromo whole-word tokens
native tokenizer length: 262,145
augmented tokenizer/model vocab: 270,145
Frozen 10K tokenizer-holdout result:
| Metric | Native Gemma | Gemma +8K |
|---|---|---|
| Tokens/word | 2.7855 | 2.2907 |
| Fragmentation | 85.91% | 32.38% |
| Single-token words | 14.09% | 67.62% |
| UNK | 0 | 0 |
| Tok/word reduction | — | 17.77% |
The later six-source CPT workload audit confirmed that this tokenizer-level gain survives on the actual model-training mixture:
train token reduction: 15.7046%
validation token reduction: 15.7138%
1024-sequence reduction: 15.6951% train
model vocabulary growth: 3.0521%
The model-level pilot measured an 18.12% reduction in training wall time on the same A100 and same underlying text.
Full experiment record:
docs/CPT_PILOT_REPORT.md
5. Continued-pretraining evaluation
First controlled proof
The first completed CPT proof compares native Gemma against the initialized Gemma +8K candidate on exactly the same deterministic six-source text selection.
Validation text:
records: 1,503
characters: 805,382
UTF-8 bytes: 814,153
whitespace words: 102,818
Full-run measurements:
| Metric | Native | Oromo +8K |
|---|---|---|
| Training tokens | 5,708,421 | 4,811,939 |
| Optimizer steps | 349 | 294 |
| Train wall time | 1,437.05 s | 1,176.71 s |
| Throughput | 3,972.59 tok/s | 4,090.03 tok/s |
| Peak reserved VRAM | 12.21 GiB | 12.55 GiB |
| Raw eval loss | 3.265455 | 4.115734 |
Cross-tokenizer loss rule
Raw token-level loss/perplexity must not be used as the primary head-to-head quality metric when tokenizer vocabularies differ.
A native Gemma token and an Oromo +8K token do not represent the same amount of text. Therefore the project requires normalization against the same underlying characters/bytes.
The earlier Trainer-loss reconstruction has now been superseded by an exact dedicated evaluator.
Exact document-reset BPB result
The v0.2 reproduction evaluates all three model states on the same frozen 1,503-record Oromo validation set using document-bos-sliding-v1: independent document resets, one BOS conditioning token, no scored EOS, exact text round-trip, unreduced causal NLL summation, and normalization by the original UTF-8 byte count.
| Model state | Scored tokens | NLL / UTF-8 byte | Exact BPB |
|---|---|---|---|
Original google/gemma-3-1b-pt |
294,957 | 1.850734532 | 2.670045532 |
| Native tokenizer + Oromo CPT | 294,957 | 1.201801036 | 1.733832395 |
| OromoLM +8K + Oromo CPT | 248,372 | 1.291568093 | 1.863338883 |
Lower is better.
Relative to untouched Gemma, native-tokenizer Oromo CPT reduces BPB by 35.06% and OromoLM +8K reduces BPB by 30.21%. The +8K model remains approximately 7.47% higher/worse in BPB than native-tokenizer CPT after one epoch.
This exact result establishes that Oromo continued pretraining works on the frozen holdout. It does not establish that +8K is the best tokenizer/model configuration.
The authoritative evaluator is training/tools/evaluate_bpb.py, with protocol tests in tests/training/test_bpb_protocol.py. Full v0.2 results are documented in docs/CPT_RERUN_V0_2_RESULTS.md.
Frozen general-language control
Before any additional +8K CPT, the project has predeclared a general-language forgetting control based on Salesforce/wikitext, config wikitext-103-raw-v1, validation split, pinned to immutable revision 844b6323027b47fc4c54b8c88faf7e188b540d76.
The source text is preserved exactly except empty rows are excluded and exact duplicate texts are removed. No sampling or normalization is allowed.
The frozen control contains 2,361 records / 1,142,152 UTF-8 bytes / 213,354 whitespace words. Its source Parquet artifact SHA-256 is 082475960351d7717cc21a58f89646aaaae5d394596de8960ef3d35eba5c8f00. The generated JSONL was independently rehashed and matched the output SHA recorded in its manifest.
The next +8K checkpoint advances only if:
- exact Oromo BPB is below the current native-CPT benchmark 1.733832395; and
- WikiText control BPB is no more than 5% higher than untouched Gemma on the same frozen control.
The +5% ceiling is a project guardrail chosen before inspecting the general-control results, not a universal catastrophic-forgetting threshold.
See docs/GENERAL_LANGUAGE_CONTROL.md.
v0.3 fresh-data +8K learning curve
The v0.3 experiment continued the preserved v0.2 +8K model on a fresh 10,039,123-word Oromo continuation corpus with zero exact-text overlap against the frozen pilot train and validation sets.
Exact Oromo BPB:
| Step | BPB |
|---|---|
| 250 | 1.799051259 |
| 500 | 1.758329918 |
| 750 | 1.741555246 |
| 1,000 | 1.735902233 |
| 1,250 | 1.734835917 |
| 1,470 | 1.734823064 |
The native-tokenizer CPT quality benchmark remains 1.733832395 BPB. The final +8K checkpoint remained approximately 0.057% higher/worse, so it did not satisfy the predeclared Oromo quality gate.
General-language retention did satisfy the predeclared gate:
| Model/checkpoint | WikiText BPB | Result |
|---|---|---|
| Untouched Gemma | 1.013254631 | baseline |
| +8K step 1,000 | 1.033682489 | PASS |
| +8K step 1,250 | 1.033754204 | PASS |
| +8K step 1,470 | 1.033754855 | PASS |
The predeclared ceiling was 1.063917363 BPB (105% of untouched Gemma).
The result therefore establishes near-parity, not a +8K quality win. It also shows that the earlier large +8K deficit was substantially reducible with additional fresh Oromo adaptation.
Full result: docs/CPT_LEARNING_CURVE_V0_3_RESULTS.md.
Additional CPT success criteria
The next training proof should also evaluate:
- whether the augmented-token quality gap narrows with additional CPT exposure;
- catastrophic forgetting on a separate general-language control set;
- Oromo completion quality;
- spelling and orthographic behavior;
- morphology-sensitive examples;
- context utilization;
- training stability;
- exact checkpoint/run reproducibility;
- source-level performance rather than only aggregate loss.
A tokenizer should not be selected simply because it is faster. The final decision must consider normalized model quality and compute cost together.
6. OromoBench direction
OromoBench will eventually separate several abilities rather than collapsing them into one score.
Language
- spelling;
- vocabulary;
- morphology;
- grammar;
- sentence completion;
- reading comprehension;
- paraphrasing;
- summarization.
Translation
- Oromo → English;
- English → Oromo;
- Oromo ↔ additional languages where reliable data exists.
Reasoning
- basic reasoning;
- arithmetic;
- multi-step instructions;
- structured extraction.
Knowledge
- general Oromo-language knowledge;
- history and culture;
- geography;
- terminology;
- regional/dialectal variation.
Instruction following and safety
- instruction adherence;
- refusal behavior;
- privacy;
- harmful-request handling;
- hallucination and misinformation checks.
Evaluation sets should be versioned, documented, and kept separate from training data.
7. Evaluation principles
Oromo AI evaluation should remain:
- reproducible;
- versioned;
- leakage-aware;
- language-specific where necessary;
- comparable across experiments;
- resistant to cherry-picked examples.
A new model or tokenizer should not replace a previous reference simply because a handful of outputs look better. Changes should be supported by frozen-set measurements and documented tradeoffs.