Models. Kiswahili, from the tokenizer up.Models.Kiswahili,fromthetokenizerup.Models.Kiswahili,fromthetokenizerup.Models.Kiswahili,fromthetokenizerup.Models.Kiswahili,fromthetokenizerup.
KW5 is our family of Kiswahili language models. The tokenizer and the weights were trained from scratch, and every release is published under Apache 2.0 with its evaluations and its limits.
KW5-149M. The second generation.KW5-149M.Thesecondgeneration.KW5-149M.Thesecondgeneration.KW5-149M.Thesecondgeneration.KW5-149M.Thesecondgeneration.
Twenty layers with Canon layers and grouped-query attention, pretrained on 1.97B tokens of Kiswahili on a Kaggle TPU v5e-8 in about 27 TPU-hours. It is the base the instruction releases are built on.
Before the full run, the architecture was chosen against a control: with Canon layers and the Muon optimizer, a proxy model reached a validation loss of 3.8129 against 3.9829 for the first generation's design.
Trained on eight registers
Web
News
Encyclopedia
Translated educational
Parliamentary
Religious
Long-form
Chat format
1.97B
It saw 75.2% of one pass over a 2.62B-token Kiswahili corpus, with the learning rate decayed to the end.
What we measured.Whatwemeasured.Whatwemeasured.Whatwemeasured.Whatwemeasured.
Nine models were run on the same Kiswahili tests in September; seven completed. KW5-149M has the lowest bits per byte, 0.926, and 73.1% on MasakhaNEWS topic classification, level with XGLM-564M. The news text is in its training domain, and the card says so.
Belebele and AfriXNLI did not separate any model from chance in this run, so they are not cited here as wins.
KW5-149M-instruct-r2. Answers from the passage, declines the rest.KW5-149M-instruct-r2.Answersfromthepassage,declinestherest.KW5-149M-instruct-r2.Answersfromthepassage,declinestherest.KW5-149M-instruct-r2.Answersfromthepassage,declinestherest.KW5-149M-instruct-r2.Answersfromthepassage,declinestherest.
The revised instruction release, fully fine-tuned on KW5-149M. On a frozen suite of 924 items it reads and answers better than the releases before it, and it is better at saying it does not know.
Questions over real Kiswahili passages, answered from the passage (n = 250, 95% interval 37.2 to 49.4).
55.0%
Questions the passage cannot answer, declined rather than invented (n = 40). The first instruct release declined 42.5%.
The rest of the family.Therestofthefamily.Therestofthefamily.Therestofthefamily.Therestofthefamily.
Kept public on purpose: each is the baseline the next was measured against.
Second generation · instruct
KW5-149M-instruct
The first fine-tune of the second generation: two epochs over 465M tokens, about a tenth of the mix teaching the model to decline. Its repetition in follow-up turns is documented in the audit; r2 is the revision.
A Llama-compatible decoder, twelve layers, trained on one T4 GPU in about 60 hours over 1.41B tokens: two passes over the 705M unique tokens of cleaned Kiswahili web text then available. The corpus was smaller than planned, so its learning rate never decayed. The second generation began from that lesson.
A LoRA fine-tune, merged into the weights, over about 107,000 examples, 137 of them teaching abstention. The baseline every later instruction release is measured against.
Failures stay in the record.Failuresstayintherecord.Failuresstayintherecord.Failuresstayintherecord.Failuresstayintherecord.
Moving training to the TPU broke the tie between the input embedding and the output head. The model trained correctly, untied; every reload then rebuilt it tied and overwrote the embedding. It was believed lost for a month. The fix is guarded by tests, and the postmortem is published with the cards.
LimitConfident errorsIt states wrong facts fluently. Do not use it as a source of facts.
LimitNo arithmeticBare arithmetic and word problems are near zero for every release.
LimitNo safety tuningIt has had no real safety training. It is for research and fine-tuning.
LimitMostly TanzanianPrimarily Tanzanian Kiswahili, partly from machine-translated text, not yet reviewed by native speakers.
Where it runs, and where it does not yet.Whereitruns,andwhereitdoesnotyet.Whereitruns,andwhereitdoesnotyet.Whereitruns,andwhereitdoesnotyet.Whereitruns,andwhereitdoesnotyet.
696 → 251 MB
With weight-only int8, KW5-149M shrinks to 251 MB and runs on a laptop CPU; bits per byte moves by 0.0001 at most. Our local chat app runs all five checkpoints on a CPU.
Not in a product yet
No Regnant system ships KW5 today. The systems run open models through Cordon and Orbis uses general models for Kiswahili lessons. The second generation needs its own modelling code, so it is not yet a drop-in for llama.cpp.