Language model · from scratch
A 103M-parameter decoder-only transformer (RoPE, RMSNorm, SwiGLU), pre-trained from scratch on ~1.06 billion Uzbek tokens. Trained on a single RTX 4090 in about 3.4 hours for roughly $3.60 — and on held-out Uzbek it beats mGPT-1.3B (13× larger, as-is or fine-tuned) and current Qwen models up to 1.7B.
103M params
1.038 bits/byte
1.06B Uzbek tokens
3.4h · 1× RTX 4090
~$3.60 to train
A custom byte-pair-encoding tokenizer built specifically for Uzbek — handling the language's own characters (oʻ, gʻ) and apostrophes that off-the-shelf multilingual tokenizers fragment badly. It uses the fewest tokens per word of 11 tokenizers I tested. A controlled experiment showed what that buys: the same model reached comparable quality with less than half the parameters and about a third of the training compute.
16,384 vocab
1.749 tokens/word
Uzbek-specific BPE
A free, full-stack learning platform where students teach students — built solo end to end and running in production for over a thousand learners in underserved regions of Uzbekistan. Next.js, TypeScript, and PostgreSQL, launched in 2025.
1,000+ students
Next.js · TypeScript
PostgreSQL
solo-built, in production
The full training code, data pipeline, and a from-scratch-vs-fine-tuning study behind the model — plus an audit of my own evaluation that found and fixed four problems. The finding: prediction quality comes from training on the language; a tokenizer built for it makes the model smaller and cheaper.
Training + data pipeline
Eval harness
Reproducible