/ Модель

Характеристики

Контекст
2 048 токенов
Параметры
110 млн
Лицензия
Apache 2.0
Архитектура
llama · dense
Библиотека
transformers
Опубликована
21 авг 2026

kw5-lite-base

Генерация текстаТекст → текст3 профессии

Компактная базовая модель Regnant для связного продолжения текста на суахили и последующего дообучения под конкретные задачи.

4 033скачиваний за 30 дней0лайковвеса обновлены4 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

KW5-Lite Base — компактная языковая модель Regnant, обученная с нуля для продолжения текста на суахили (кисуахили). Это декодерный трансформер, совместимый с Llama, с 109,5 млн параметров и контекстом 2048 токенов. Модель обучена на 1,41 млрд токенов очищенного корпуса FineWeb-2 на суахили; токенизатор BPE обучен с нуля и содержит 32 тыс. токенов.

Модель предназначена прежде всего как основа для дообучения на суахили: например, для адаптации к предметной области, настройки следования инструкциям или добавления классификационной головы. Она умеет связно продолжать текст, но не обучена выполнять инструкции и не предназначена для непосредственного использования как чат-бот или источник фактов. В тестах на понимание прочитанного и логический вывод результаты были около случайного уровня.

Модель выпущена в формате safetensors и распространяется по лицензии Apache-2.0. Корпус преимущественно отражает танзанийский вариант суахили. Фактическая надёжность низкая, а из-за отсутствия настройки безопасности модель может воспроизводить вредный, предвзятый или откровенный материал из обучающих веб-данных.

Сценарии применения

  • продолжение текста на суахили
  • дообучение модели для диалога на суахили
  • адаптация языковой модели к тематическому корпусу на суахили
  • создание классификационной модели на основе суахили

Ограничения

Модель продолжает текст, но не следует инструкциям и не предназначена для ответов на вопросы или надёжного извлечения фактов; оценки на задачах понимания и вывода близки к случайному уровню. Данные преимущественно отражают танзанийский суахили, а отсутствие настройки безопасности допускает воспроизведение вредного, предвзятого или откровенного содержания.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

KW5-Lite Base

A 109.5M-parameter Swahili (Kiswahili) language model pretrained from scratch on 1.41B tokens, on a single NVIDIA T4.

Built by Regnant.

This is a base model. It does next-token prediction only. It does not follow instructions and has no chat template. For that, use regnant-io/kw5-lite-instruct.

Quick start

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("regnant-io/kw5-lite-base")
tok = AutoTokenizer.from_pretrained("regnant-io/kw5-lite-base")

# Base model: give it a prefix to continue, not an instruction.
# Write <s> into the text — the tokenizer maps it to id 1.
inputs = tok("<s>Tanzania ni nchi", return_tensors="pt", add_special_tokens=False)

out = model.generate(**inputs, max_new_tokens=60)
print(tok.decode(out[0], skip_special_tokens=True))
Tanzania ni nchi ya amani na utulivu. Ni nchi yenye watu wengi, wenye nguvu
za kiuchumi, wenye uwezo wa kufanya maamuzi magumu kwa wakati mmoja...

add_bos_token is pinned to false so that the same tokenizer settings work for the instruct model, which renders <s> as part of its prompt template. Put <s> at the start of your text yourself — every training sequence began with it.

Write it into the string, as above, rather than concatenating the id onto input_ids afterwards: that leaves attention_mask one element shorter than input_ids, and generate then fails inside RoPE with The size of tensor a (4) must match the size of tensor b (3).

Like the instruct model, this one needs a low temperature and a repetition penalty to stay coherent; the shipped generation_config.json defaults to temperature 0.2 / repetition_penalty 1.3.

Model details

Parameters109.5M (tied input/output embeddings)
ArchitectureLlama-compatible decoder-only transformer
Layers / hidden / FFN12 / 768 / 2048
Attention heads12 query, 12 key-value — standard multi-head attention, not GQA
NormalizationRMSNorm, pre-norm
ActivationSwiGLU
Position encodingRoPE, theta 10000
Context length2048
Vocabulary32,000 SentencePiece BPE
PrecisionFP32 (trained under FP16 autocast with an FP32 master copy)
File size438 MB

A previous revision of this card claimed "KV heads: 4 (Grouped Query Attention)". That was wrong — num_key_value_heads is 12 and always has been. This model uses standard MHA. Corrected here.

Tokenizer

32k BPE trained from scratch on the deduplicated Swahili corpus. NFC normalization applied before training (SentencePiece's own rules are all NFKC-family, which is lossier), byte_fallback so no input can hard-fail, and digits split.

Special tokens are fixed at low ids: <unk>=0, <s>=1, </s>=2, <pad>=3.

Ids 4–6 are <|system|>, <|user|>, <|assistant|>, reserved but never trained — they do not occur in the pretraining corpus, so their embedding rows are still at initialisation. If you fine-tune and want to use them as chat-role markers, you must unfreeze embed_tokens (or add it to your LoRA modules_to_save), or the model will read them as noise.

Training

DataFineWeb-2 swh_Latn, cleaned and deduplicated (exact + MinHash LSH)
Tokens seen1.41B — exactly 2 epochs over the corpus
Checkpointstep 6,150
Context length1024 during pretraining, extended to 2048 via NTK-aware RoPE rescaling
PrecisionFP16 mixed precision with GradScaler (T4/Turing has no bf16 tensor cores)
Optimizer8-bit AdamW (bitsandbytes), lr 3e-4, weight decay 0.1, grad clip 1.0
ScheduleWarmup-Stable-Decay, stopped at the end of the stable phase
Hardware1× NVIDIA T4 (16 GB), ~60 GPU-hours across resumable 5-hour sessions

On the schedule: WSD normally ends with an LR decay phase. Training was stopped at step 6,150 — exactly two epochs — because validation quality began degrading past that point, so the decay was deliberately not run. Released checkpoints from later in the run overfit.

Evaluation

TaskMetricKW5-Lite BaseChance
Belebele-sw (4-way)Accuracy32%25%
AfriXNLI-sw (3-way)Accuracy32%33%

n = 50 per task.

Interpret these honestly: this model is at or near chance on both. With n=50 the standard error is about ±6.6 points, so 32% vs 25% on Belebele is not a reliable signal, and AfriXNLI is exactly at chance. A 110M model trained on 1.41B tokens is not expected to do multiple-choice reasoning; these numbers establish a floor, not a capability.

What the model is genuinely good at is fluent, well-formed Swahili continuation. That is what makes it a useful base to fine-tune, and it is what the instruct model builds on.

Intended use

Intended as a starting point for Swahili fine-tuning — instruction tuning, domain adaptation, classification heads — where training from scratch is too expensive and larger multilingual models are too big to serve.

Not intended for direct deployment: no instruction following, no safety tuning, no factual reliability.

Limitations

  • Not an instruction model. It continues text; it does not answer questions.
  • Factual reliability is poor. Do not use as a knowledge source.
  • Primarily Tanzanian Swahili, reflecting the corpus distribution.
  • No safety tuning at all. It will reproduce harmful, biased or explicit content present in web text.
  • Trained on web-scraped data and carries its biases and quality artifacts.

Files

FileWhat it is
model.safetensorsFP32 weights, tied embeddings, 438 MB
tokenizer.modelSentencePiece 32k BPE model
tokenizer_config.jsonadd_bos_token=false — prepend <s> yourself
generation_config.jsonLow-temperature defaults that keep this model coherent
training_info.jsonCheckpoint step, tokens seen, benchmark scores

A previous revision also shipped pytorch_model.bin (a stale duplicate of the weights), duplicate tokenizer files under two names, and a config.json whose pad_token_id was 0 while the tokenizer's <pad> is 3. All removed or corrected.

Citation

@misc{kw5lite2026,
  title  = {KW5-Lite: a 110M-parameter Swahili language model trained on a single T4},
  author = {Regnant},
  year   = {2026},
  url    = {https://huggingface.co/regnant-io/kw5-lite-base}
}

Apache 2.0.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
5028aed

0 моделей