/ Модель

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

Лицензия
Apache 2.0
Архитектура
kalia · dense
Библиотека
pytorch
Опубликована
22 сен 2026

kalia-v012

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

Небольшая англоязычная языковая модель, обученная с нуля для генерации коротких связных историй и текста.

55скачиваний за 30 дней0лайковвеса обновлены21 окт 2026

Бенчмарки

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

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

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

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

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

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

KALIA v0.1.2 — это языковая модель на 57,9 млн параметров, созданная автором проекта с нуля без предобученных весов, дистилляции и дообучения. Это плотная авторегрессионная архитектура decoder-only: 10 слоёв, 8 голов внимания и размерность 512; используются RMSNorm, SwiGLU, RoPE, QK-Norm, ограничение логитов и связанные эмбеддинги. Репозиторий содержит контрольную точку PyTorch в формате .pt; метаданные также указывают файлы safetensors.

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

Модель выпущена под лицензией Apache-2.0. Автор описывает её как личный исследовательский проект и предостерегает от использования для производственных решений.

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

  • генерация коротких историй на английском языке
  • создание повествовательных продолжений по началу текста
  • эксперименты с обучением небольших языковых моделей
  • изучение влияния Muon, QK-Norm и soft-cap на генерацию текста

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

KALIA v0.1.2

अथ शब्दानुशासनम् — "Now begins the discipline of words." (opening invocation of Pāṇini's Aṣṭādhyāyī)

A 57.9M-parameter decoder-only language model trained from scratch — no pretrained weights, no distillation, no fine-tuning — on free-tier Kaggle T4 GPUs. Every weight was learned by this project's own training run.

Model

FieldValue
Parameters57,856,256
ArchitecturePre-norm decoder-only: RMSNorm, SwiGLU, RoPE, QK-Norm, logit soft-cap (τ = 30), tied embeddings
Layers / heads / dim10 / 8 / 512
Context1,024 tokens
Vocabulary50,257 (GPT-2 BPE)
OptimizerMuon (Newton–Schulz) on hidden matrices; AdamW on embeddings, head and 1D parameters
Precisionfp16 with gradient scaling, DDP across 2× NVIDIA T4
Tokens seen1.82B — 3,478 of 4,770 planned steps (see “Stopping”)

Usage

This repository hosts the raw training checkpoint (checkpoints/ckpt.pt, a dict with model, optimizer, step, tokens and config). Generate with the project's own code:

git clone https://github.com/subhajitlucky/kalia
cd kalia
pip install torch tiktoken pyyaml
python - <<'EOF'
from huggingface_hub import hf_hub_download
path = hf_hub_download("kalia-lm/kalia-v012", "checkpoints/ckpt.pt")
print(path)
EOF
python sample.py --ckpt <path-from-above> --prompt "Once upon a time"

It runs on CPU; the weights are about 230MB in fp16.

Evaluation

The deterministic validation loss uses 100 batches × 8 sequences × 1,024 tokens = 819,200 tokens, seed 1234.

MetricValue
Validation loss — original kalia-prep val set2.4366
Bits per byte — original val set0.8184
Validation loss — kalia-prep-v2b val set (canonical)3.0533
Bits per byte — v2b val set0.9992
Probe held-out loss (20 sentences)3.2303
Bits per byte — probe0.9415
Abhimanyu gap (reverse − forward NLL)6.06 nats

The two validation rows use the same weights and the same 819,200-token protocol on two different held-out sets. The corpus rebuild replaced a source slice and made the set measurably harder: identical weights move by +0.62 nats. Numbers from the two sets are not comparable, and the v2b figure is the reference for later versions (decision D43). The Abhimanyu gap uses forward 3.23, reverse 9.29; random is about 10.8.

Zero-shot accuracy

Measured at release with lm-evaluation-harness, 0-shot, at 500 samples. The standard error at this size is about 2 points (D45), so the scores below are estimates, not precise rankings.

TaskScoreChance
PIQA (acc)61.4%50%
ARC-Easy (acc)45.8%25%
HellaSwag (acc_norm)36.8%25%
WinoGrande (acc)50.2%50%
LAMBADA (acc / perplexity)23.0% / 193.6—

v0.1.2 zero-shot accuracy against chance

For scale context, third-party leaderboard tables list OPT-125M — 125M parameters, 300B tokens — at PIQA 63.0, ARC-Easy 43.5 and HellaSwag 29.2. Harness versions differ, so treat that as context, not a head-to-head. KALIA is a storyteller, not a knowledge model; its LAMBADA weakness reflects a corpus without long-form narrative cloze.

The micro-ablations at 30M parameters, equal tokens and seed 1337 were AdamW 3.8041 → Muon 3.5937 → Muon + QK-Norm + soft-cap 3.5103. The full-scale Muon model overtook the AdamW baseline's final loss with ~23% fewer tokens.

The Abhimanyu gap is the project's entry–exit asymmetry metric: the model can enter fluent text but cannot exit it — process it in reverse. The pre-registered experiment aimed at closing it has run and failed. Training on 50% chunk-preserving reversal left the gap at 5.25 nats against a 5.11-nat control: worse on both seeds and both metrics (X16, decision D42). Reversing chunk order does not teach token-level entry, so no gap claim is carried forward.

Stopping

Training stopped at step 3,478 — 73% of the cosine schedule — when the weekly GPU quota was exhausted. Validation had been flat within ±0.1 (eval noise) for 1,000 steps, and a deterministic probe set showed no further gain, so the stop was declared final under the project's pre-registered stopping discipline rather than resumed. The plateau is documented in the repository journal.

Limitations

Limitations are stated as measured. At 500 samples these benchmarks have standard errors of roughly 2.0–2.2 points.

  • Small model. Coherent short-form English, not a general assistant.
  • Domain-narrow. Children's stories and educational web text.
  • Entity consistency degrades over long outputs. Names drift.
  • No instruction following. Post-training is a planned stage, not a completed one.
  • Long-range recall is weak, and measurably so. Only 17.7% of training tokens sit inside a document at least as long as the 1,024-token context, and TinyStories — 20% of the mixture — supplies 0.01% of them. LAMBADA, which requires holding a discourse and recalling its end, is the task this corpus is worst equipped for.
  • Training runs to a plateau. Validation loss is flat across the final 1,500 of 4,770 steps. The last 31% of training produced no measurable gain.
  • May produce inaccurate or biased text. Not for production decisions.

Training data

The mixture weights as built (kalia-prep-v2) are FineWeb-Edu 60%, TinyStories 20%, Cosmopedia 15% and code 5%, over 2.4B training tokens.

SourceShareLicence
FineWeb-Edu dedup (HuggingFaceTB/smollm-corpus)60%ODC-By-1.0
TinyStories (roneneldan/TinyStories)20%CDLA-Sharing-1.0
Cosmopedia (HuggingFaceTB/cosmopedia)15%Apache-2.0
Python (codeparrot/codeparrot-clean)5%Per-file mixed — see below
GPT-2 BPE tokenizer (openai/tiktoken)—MIT

Training mixture: 60 / 20 / 15 / 5

Disclosure: the code slice of this checkpoint is not licence-clean

The 5% code slice of this checkpoint was built without a licence filter. Sampling 20,000 files of the source corpus (197M characters) measures 41.7% of characters under non-permissive licences, of which GPL-family terms are 39.5% of all files (GPL-3.0, AGPL-3.0, GPL-2.0, LGPL). Applying that share, this checkpoint trained on roughly 50M copyleft-licensed code tokens, about 2% of the training set. The figure is an estimate: it samples the upstream corpus rather than our shard, and uses character share as a proxy for token share.

No copyleft obligation is attached to these weights. This release redistributes weights only, not data. Training on copyleft text does not make the weights a derivative work — the prevailing view, though not settled in every jurisdiction. The obligation would attach to redistributing the copyleft text itself, which this release does not do and will not.

Datasets are not redistributed. Code is MIT; weights are Apache-2.0.

Citation

@misc{kalia2026,
  title        = {KALIA: a 58M-parameter language model trained
                  from scratch on free GPUs},
  author       = {Pradhan, Subhajit},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/kalia-lm/kalia-v012}},
  note         = {v0.1.2; stopped at step 3,478 of 4,770 of the
                  cosine schedule; all logs, decisions, and
                  pre-registrations are public}
}

Links

Disclaimer

A personal research project. Not affiliated with any government scheme, company, or other project using a similar name.

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

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

GPU в ailist

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

Нельзя запустить

Архитектура kalia неизвестна transformers в образе рантайма.

Класс архитектуры
KaliaGPT
Ревизия весов
a2ab794

0 моделей