Regnant
Talk to us
Second generation · BaseCurrent

KW5-149M. The second-generation base.

The second-generation base model: 149M parameters, pretrained from scratch on 1.97B tokens of Kiswahili.

A base model continues text; it does not follow instructions. It is the foundation of the two second-generation instruction releases, and a starting point for anyone fine-tuning a small Kiswahili model.

Parameters
149.0M
173.6M stored; embeddings untied
Layers
20
768 wide, feed-forward 2,048
Context
2,048
tokens
Licence
Apache 2.0

How it was trained.

Data
2.62B tokens, 3.74M documents, eight registers: web, news, encyclopedia, translated educational, parliamentary, religious, long-form, chat format
Tokens seen
1.97B, 75.2% of one pass
Architecture
Pre-norm decoder: RMSNorm with QK-norm, SwiGLU, RoPE, grouped-query attention (12 query, 3 key-value heads), Canon layers, document-boundary masking
Schedule
Warmup-stable-decay, decay completed over the final 10%
Optimiser
Muon for matrices, AdamW for embeddings, norms and head
Hardware
Kaggle TPU v5e-8, about 27 TPU-hours
Validation loss
3.1560 on the held-out split

How it measured.

News is in the pretraining mix and the test articles were not checked for overlap, so the bits-per-byte row is in-domain. Belebele and AfriXNLI do not separate any model in the comparison from chance.

Bits per byte, 120 MasakhaNEWS test articles
0.926 (XGLM-564M 1.122, BLOOM-560m 1.699, Qwen2.5-0.5B 2.393)
MasakhaNEWS-sw topic accuracy, n = 476
73.1% [69.0, 76.9] (XGLM-564M 72.5%)
Belebele-sw, n = 900
29.3%, chance 25%
AfriXNLI-sw, n = 600
33.7%, chance 33.3%

What it does, and what it gets wrong.

Does well

  • Fluent Kiswahili continuation
  • The lowest bits per byte in its comparison, on in-domain news
  • News topic classification at the level of models three to four times its size
  • Weight-only int8 brings it from 696 MB to 251 MB, moving bits per byte by 0.0001 at most

Gets wrong

  • Not an instruction model: it ignores constraints and stops only about half the time
  • States confident falsehoods; very little room for world knowledge
  • Primarily Tanzanian Kiswahili; part of the corpus is machine-translated
  • No safety tuning

Its place in the family.