Maatu 15M Base
Maatu 15M Base is a 15,040,622-parameter Kannada language model pretrained from random initialization. It takes a plain Kannada prompt and predicts a text continuation. It uses the nanochat GPT architecture with six layers, width 384, six query heads, two key/value heads, a 512-token context, and a 4,864-token byte-level BPE fitted on Kannada training documents.
Maatu 15M Base is a text-completion-only model. It can produce readable short continuations by predicting the next Kannada tokens. A chat-tuned version is coming soon.
Run locally
The included PyTorch script loads the SafeTensors checkpoint and the matching tokenizer with the bundled nanochat code. These commands use Python 3.11 or later.
python -m pip install huggingface_hub
hf download RakshithFury/Maatu-15m-base --local-dir Maatu-15m-base
cd Maatu-15m-base
python -m pip install -r requirements.txt
python -X utf8 infer.py "ಕರ್ನಾಟಕದ ರಾಜಧಾನಿ" --tokens 18
Inference defaults to CPU. A BF16-capable GPU and a CUDA build of PyTorch can use --device cuda. The inference script expects plain prompts and adds the beginning-of-document token itself.
Training data and recipe
Maatu's training pipeline builds on the Udgam English 125M codebase from Udgam Labs (@udgamlabs). Maatu's Kannada model weights were initialized randomly.
Training consumed 299,991,040 next-token targets over 9,155 updates on one NVIDIA RTX 5070 Ti using BF16 compute and Adafactor. The corpus came from eight shards of AI4Bharat Sangraha Verified Kannada, credited to AI4Bharat under CC BY 4.0. Preparation normalized text, deduplicated exact documents, and rejected documents containing foreign letters or combining marks. It split the holdout by document hash before fitting the tokenizer. An independent scan found zero foreign letters or marks in the packed splits. Language identification within Kannada script follows the source labels.
| Training detail | Value |
|---|---|
| Dataset | AI4Bharat Sangraha Verified Kannada, eight pinned Parquet shards (2.89 GB compressed) |
| Packed training set | 585,937 rows, 299,999,744 available next-token targets (601 MB) |
| Training consumed | 299,991,040 next-token targets across 9,155 updates |
| Hardware | One NVIDIA GeForce RTX 5070 Ti with 16 GB VRAM |
| Training time | 16 minutes 13 seconds, excluding data download and preparation |
Training curves
These curves use the metrics logged to W&B during pretraining. On the fixed 262,144-target validation subset, loss fell from 8.49 to 3.24 and perplexity fell from 4,864.94 to 25.45. The evaluation table below reports the separate full-holdout result.
Evaluation
| Test | Result | Reference |
|---|---|---|
| Full Sangraha holdout, 999,936 next-token targets | 26.02 perplexity | 4,864.88 at random initialization |
| IndicCOPA Kannada, zero-shot choice likelihood | 51.4% (257/500) | 50% uniform chance |
| Belebele Kannada, zero-shot A–D label likelihood | 28.0% (252/900) | 25% uniform chance, 27.9% always-B baseline |
IndicCOPA scored full candidate continuations with Kannada causal connectives. Belebele used the EleutherAI harness prompt, and two prompts were left-truncated to 512 tokens. The scores show limited zero-shot reasoning and reading comprehension. Plain prompts can elicit Kannada sentences, with frequent repetition, abrupt topic changes and unsupported claims in longer outputs. This base checkpoint is intended for experimentation with small Kannada language models. EleutherAI prompt template
Credits
Bundled inference code uses the MIT license. The pinned nanochat files retain their original MIT notice. Training corpora and benchmark datasets retain their upstream terms.
