NewKW5-230M: the third generation, Kiswahili firstRead
Regnant

Research · KW5 · Apache 2.0

KW5. Kiswahili, measured in the open.

Open-weight Kiswahili models in 109M and 149M sizes, with their training methods and benchmark results.
173.6M
Stored parameters
1.97B
Pretraining tokens
32,000
Vocabulary
2,048
Context window

What KW5 is.

KW5 learns directly from Kiswahili text. The 109M and 149M generations each have a base checkpoint and instruction-tuned variants, released under Apache 2.0.

The release names identify the generations. The 149M generation stores 173.6M parameters: a 123.9M transformer body, separate 24.6M input and output embeddings, and the Canon layers. Use the stored count when comparing memory and model size.

Built for a closer look.

The training stack supports document-boundary attention and label masking, checkpoint resume, and a cooldown transition within the run. A frozen Kiswahili corpus retains its provenance across eight language registers. These choices make the training process inspectable alongside the resulting weights.

The v2 history also documents an embedding-tie error at load time. The base weights were recovered and verified on reload. The subsequent instruction diagnosis showed why falling training loss alone could miss repetitive generation: the samples had already entered a loop while the loss continued to improve.

Small models make these failures easier to reproduce and investigate. Compression, extraction, instruction following and factual recall need separate measurements; success in one does not establish success in the others.

Inside the 149M generation.

A decoder trained for Kiswahili, with a 32,000-token SentencePiece vocabulary, byte fallback and NFC text normalization. The 149M generation has a 2,048-token context window; the 109M generation was trained at 1,024.

Depth and width
20 layers · 768 hidden dimensions · 2,048 feed-forward dimensions
Attention
12 query heads · 3 key/value heads · grouped-query attention
Normalization
Pre-norm RMSNorm, with normalization on queries and keys
Activation and position
SwiGLU · rotary position encoding
Canon
Causal depthwise convolutions at four points in each block
Released precision
FP32 weights; training used bf16 autocast on TPU v5e-8

The model card includes the inference implementation and prompt conventions. KW5 v2 is a custom architecture; loading it as an unrelated transformer can change behaviour or fail outright.

Open releases.

What we measured.

The 28 October comparison put the third generation, KW5-230M, beside the second and size-matched models: language compression and likelihood-based classification. Bits per byte supports comparison across tokenizers; perplexity does not. These results do not measure the quality of a conversation; the frozen suites on the models page do.

Scores describe that run, rather than a general ranking. The manifest pins model revisions and the result files include confidence intervals.

0.891
Bits per byte
KW5-230M base on 120 MasakhaNEWS test documents, the lowest in the run; KW5-149M scored 0.926. News is in the training mix, so read it as in-domain.
35.6%
Belebele
KW5-230M-instruct, reading comprehension. Every model clears chance; its interval overlaps the next model's, so it leads without being separated.
36.5%
AfriXNLI
KW5-230M base, against a 33.3% chance rate (p = 0.055). No model in the run clears chance on inference.
Bits per byte · Kiswahili newsLower is better
  1. KW5-230M230M · base0.891
  2. Goldfish swa 100MB125M · base0.894
  3. KW5-230M-instruct230M · instruct0.910
  4. KW5-149M174M · base0.926
  5. KW5-149M-instruct-r2174M · instruct0.933
  6. XGLM-564M565M · base1.122
  7. swahili-gemma-1b1000M · instruct1.334
  8. BLOOM-560m559M · base1.699
  9. GPT-2 124M124M · base2.126
  10. Qwen2.5-0.5B494M · base2.393
  11. Qwen2.5-0.5B-Instruct494M · instruct2.407
  12. Qwen3-0.6B596M · instruct2.556

Run of 2026-10-28, seed 20260914, float32 on one Tesla T4: 120 MasakhaNEWS test documents, 320,701bytes. News is in KW5's pretraining mix and overlap was not checked, so the KW5 rows are in-domain. Bits per byte compares models across tokenizers; perplexity does not.

The September audit.

The later audit examined generated behaviour, prompt formatting and the evaluation itself. It found positional bias in grounded questions and training-template overlap in parts of the behavioural test. An instruction checkpoint scored on unformatted completion prompts is not a test of instruction following.

On a small out-of-template set, r2 produced 11 genuine refusals out of 20 unanswerable questions after manual review. Follow-up questions still triggered excessive refusal. All evaluated models failed the 30-item arithmetic probe. These are small diagnostic sets, with their method and outputs retained.

Read the audit

Use with the limits in view.

These are research models. Fluent text can contain invented facts, repetitive output or an inappropriate refusal. They are not a reliable basis for consequential decisions.

For the 149M instruction releases, use the exact chat format in the model card: an explicit beginning-of-sequence token and the correct end-of-turn stop token. The base and instruction models use different prompt conventions.

V3 is in progress. The published generations remain available as baselines; this page does not announce a new checkpoint.

Reproduce the comparison.

230M comparison · 28 October

Seed 20260914, Tesla T4, float32. The same 900 Belebele, 600 AfriXNLI and 476 MasakhaNEWS items and the same 320,701 bytes of news as September, with the instruct models as a second group. Gemma 3 270M and the two Gemma 3 instruct models did not load (a licence not accepted on the running account); their failures remain in the files.

Belebele-sw · reading, four choices · n = 900Higher is better
  1. KW5-230M-instruct230M · instruct35.6%
  2. KW5-230M230M · base33.0%
  3. Qwen2.5-0.5B494M · base31.3%
  4. Qwen2.5-0.5B-Instruct494M · instruct31.3%
  5. swahili-gemma-1b1000M · instruct30.3%
  6. GPT-2 124M124M · base30.2%
  7. Qwen3-0.6B596M · instruct30.0%
  8. KW5-149M174M · base29.3%
  9. XGLM-564M565M · base29.1%
  10. KW5-149M-instruct-r2174M · instruct29.0%
  11. BLOOM-560m559M · base28.3%
  12. Goldfish swa 100MB125M · base28.0%

Raw suffix likelihood, with each model's 95% interval as a whisker. Every model clears chance (one-sided, p < 0.05).

AfriXNLI-sw · inference, three choices · n = 600Higher is better
  1. KW5-230M230M · base36.5%
  2. Goldfish swa 100MB125M · base35.5%
  3. KW5-230M-instruct230M · instruct35.5%
  4. XGLM-564M565M · base35.3%
  5. GPT-2 124M124M · base34.8%
  6. KW5-149M-instruct-r2174M · instruct34.3%
  7. Qwen2.5-0.5B494M · base34.2%
  8. KW5-149M174M · base33.7%
  9. Qwen2.5-0.5B-Instruct494M · instruct33.5%
  10. swahili-gemma-1b1000M · instruct32.2%
  11. Qwen3-0.6B596M · instruct32.2%
  12. BLOOM-560m559M · base31.2%

Raw suffix likelihood, with each model's 95% interval as a whisker. No model clears chance; every row is drawn faint.

MasakhaNEWS-sw · news topic, seven choices · n = 476Higher is better
  1. KW5-230M230M · base74.2%
  2. KW5-230M-instruct230M · instruct73.1%
  3. KW5-149M174M · base72.9%
  4. XGLM-564M565M · base72.5%
  5. KW5-149M-instruct-r2174M · instruct72.5%
  6. Goldfish swa 100MB125M · base61.8%
  7. swahili-gemma-1b1000M · instruct53.1%
  8. Qwen2.5-0.5B-Instruct494M · instruct30.7%
  9. Qwen2.5-0.5B494M · base28.8%
  10. GPT-2 124M124M · base28.4%
  11. Qwen3-0.6B596M · instruct26.3%
  12. BLOOM-560m559M · base17.6%

Raw suffix likelihood, with each model's 95% interval as a whisker. 11 of 12 models clear chance; the others are drawn faint. News is in KW5's training domain.

Size against compressionLower is better
0.81.21.62.02.4100M200M500M1BStored parameters, log scaleBits per byteKW5-230MKW5-149MGoldfish swa 100MBQwen2.5-0.5BBLOOM-560mXGLM-564MGPT-2 124MKW5-230M-instruct

Lower and further left is better: KW5-230M sits beside a 125M Kiswahili-only model, and below every multilingual model two to four times its size. In-domain for KW5.

Size against reading (Belebele)Higher is better
25%30%35%40%100M200M500M1BStored parameters, log scaleBelebele accuracyKW5-230MKW5-149MGoldfish swa 100MBQwen2.5-0.5BBLOOM-560mXGLM-564MGPT-2 124MKW5-230M-instructKW5-149M-instruct-r2swahili-gemma-1bQwen2.5-0.5B-InstructQwen3-0.6B

Chance is 25%. The intervals (in the Belebele chart) overlap across most of the field: KW5-230M-instruct leads without being separated from the next model.

Run artifacts

149M comparison · 14 September

Seed 20260914, Tesla T4, float16. The run scores 900 Belebele items, 600 AfriXNLI items and 476 MasakhaNEWS items. Compression uses 320,701 bytes across 120 MasakhaNEWS test documents; news is in the pretraining mix and overlap was not checked, so the figure is in-domain. Two checkpoints could not load; their failures remain in the table.

ModelBits / byte ↓BelebeleAfriXNLIMasakhaNEWSRun status
KW5-149M0.926229.3%33.7%73.1%Completed
KW5-149M-instruct0.932929.1%34.8%72.5%Completed
XGLM-564M1.121628.8%35.3%72.5%Completed
BLOOM-560M1.699426.2%32.2%18.3%Completed
GPT-2 124M2.125626.4%33.3%24.4%Completed
Pythia-410M2.285527.2%33.7%26.1%Completed
Qwen2.5-0.5B2.393027.0%33.3%25.0%Completed
Goldfish swa 100MBUnmeasuredUnmeasuredUnmeasuredUnmeasuredFailed to load
Gemma 3 270MUnmeasuredUnmeasuredUnmeasuredUnmeasuredFailed to load
Bits per byte · Kiswahili news, 14 SeptemberLower is better
  1. KW5-149M173.6M0.926
  2. KW5-149M-instruct173.6M0.933
  3. XGLM-564M564.5M1.122
  4. BLOOM-560M559.2M1.699
  5. GPT-2 124M124.4M2.126
  6. Pythia-410M405.3M2.285
  7. Qwen2.5-0.5B494M2.393

Run of 2026-09-14, seed 20260914, float16. In-domain for KW5. The October run, with KW5-230M, is above.

Belebele-sw · reading comprehension, four ways · n = 900Higher is better
  1. KW5-149M29.3%
  2. KW5-149M-instruct29.1%
  3. XGLM-564M28.8%
  4. Pythia-410M27.2%
  5. Qwen2.5-0.5B27.0%
  6. GPT-2 124M26.4%
  7. BLOOM-560M26.2%
AfriXNLI-sw · natural language inference, three ways · n = 600Higher is better
  1. XGLM-564M35.3%
  2. KW5-149M-instruct34.8%
  3. KW5-149M33.7%
  4. Pythia-410M33.7%
  5. GPT-2 124M33.3%
  6. Qwen2.5-0.5B33.3%
  7. BLOOM-560M32.2%
MasakhaNEWS-sw · news topic classification, seven ways · n = 476Higher is better
  1. KW5-149M73.1%
  2. KW5-149M-instruct72.5%
  3. XGLM-564M72.5%
  4. Pythia-410M26.1%
  5. Qwen2.5-0.5B25.0%
  6. GPT-2 124M24.4%
  7. BLOOM-560M18.3%

Rows that do not clear chance (one-sided, p < 0.05) are drawn faint.

109M comparison · 4 September

The earlier run uses seed 20260904 and its own pinned model revisions. Classification uses PMI-normalized suffix likelihood. Entries flagged for single-label collapse remain unscored. This is a separate experiment, so its values should not be treated as a matched comparison with the later 149M run.

ModelBits / byte ↓BelebeleAfriXNLIMasakhaNEWSRun status
KW5-Lite (base)1.200926.1%32.5%23.1%Completed
KW5-Lite (instruct)1.301625.0%33.5%29.0%Completed
swa-gpt2-100mb1.285126.2%36.2%28.1%Completed
XGLM-564M1.336029.2%34.3%63.4%Completed
BLOOM-560m2.105428.1%33.8%41.2%Completed
Qwen2.5-0.5B2.962925.2%32.7%37.4%Completed
Pythia-410m2.787728.1%Unscored30.3%Completed
GPT-2-124m3.455327.7%Unscored21.6%Completed
Gemma-3-270mUnmeasuredUnscoredUnscoredUnscoredFailed to load
Bits per byte · 4 SeptemberLower is better
  1. KW5-Lite (base)109.5M1.201
  2. swa-gpt2-100mb124.8M1.285
  3. KW5-Lite (instruct)109.5M1.302
  4. XGLM-564M564.5M1.336
  5. BLOOM-560m559.2M2.105
  6. Pythia-410m405.3M2.788
  7. Qwen2.5-0.5B494M2.963
  8. GPT-2-124m124.4M3.455
Belebele-swHigher is better
  1. XGLM-564M29.2%
  2. BLOOM-560m28.1%
  3. Pythia-410m28.1%
  4. GPT-2-124m27.7%
  5. swa-gpt2-100mb26.2%
  6. KW5-Lite (base)26.1%
  7. Qwen2.5-0.5B25.2%
  8. KW5-Lite (instruct)25.0%
AfriXNLI-swHigher is better
  1. swa-gpt2-100mb36.2%
  2. XGLM-564M34.3%
  3. BLOOM-560m33.8%
  4. KW5-Lite (instruct)33.5%
  5. Qwen2.5-0.5B32.7%
  6. KW5-Lite (base)32.5%
MasakhaNEWS-swHigher is better
  1. XGLM-564M63.4%
  2. BLOOM-560m41.2%
  3. Qwen2.5-0.5B37.4%
  4. Pythia-410m30.3%
  5. KW5-Lite (instruct)29.0%
  6. swa-gpt2-100mb28.1%
  7. KW5-Lite (base)23.1%
  8. GPT-2-124m21.6%

PMI-normalised suffix likelihood. Entries the run flagged for single-label collapse stay unscored and are left out.

Run artifacts

Run it yourself.

The manifest pins every model revision, the seed and the environment.