Tenketsu-Base-125M
🌐 Part of Tenketsu One, a free AI assistant for Windows and Android: tenketsusystems.gt.tc
A 125M-parameter language model trained from scratch: our own model code, our own tokenizer, our own weights. It was built on a laptop (RTX 4050, 6 GB) plus free Kaggle GPUs by a student in India, as the first step toward Tenketsu One's own brain.
⚠️ This is a small base model, not a chatbot. It continues text; it does not follow instructions or answer questions reliably. Its level is roughly GPT-2-small: fluent-looking English that often drifts or repeats. It makes things up. Don't use it for facts or anything important.
What it is
| Parameters | 125.3M (tied input/output embeddings) |
| Architecture | Decoder-only transformer, Llama-style: RMSNorm, RoPE, SwiGLU, grouped-query attention (12 query / 4 KV heads), 16 layers, dim 768 |
| Context | 1,024 tokens |
| Tokenizer | Our own byte-level BPE, 32,000 tokens |
| Training data | ~2.57B tokens: FineWeb-Edu (English), Hindi + Telugu Wikipedia, Python code (codeparrot). About 79% English / 8% Telugu / 6% Hindi / 7% code by tokens |
| Training | 9,556 steps × 262,144 tokens, AdamW, cosine LR (peak 6e-4), bf16/fp16 mixed precision |
| Hardware | 1× RTX 4050 Laptop GPU + Kaggle 2× T4 sessions |
| Final validation loss | 2.88 (perplexity 17.7) on held-out documents |
The code is written in plain PyTorch. The weights are published here in the standard Llama layout so transformers, llama.cpp and Ollama can run them. The layout is converted; it is not derived from any Meta model, and no pretrained weights were used.
Known limits (honest)
- Hindi and Telugu are weak. The 32k tokenizer splits Indic words at every vowel sign (~1.5 characters per token), so the model saw relatively little Indic text. This is fixed in the tokenizer of our next model (Tenketsu-Base-550M, in progress).
- English is the strongest language. Code is basic.
- No safety tuning and no instruction tuning. Outputs can be wrong, biased or nonsensical.
Use it
Ollama
ollama run dattebayostorm/tenketsu-base-125m "The history of India"
transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("udithuzumaki/Tenketsu-Base-125M")
model = AutoModelForCausalLM.from_pretrained("udithuzumaki/Tenketsu-Base-125M")
ids = tok("The history of India", return_tensors="pt")
out = model.generate(**ids, max_new_tokens=60, do_sample=True, temperature=0.8, top_k=50, repetition_penalty=1.3)
print(tok.decode(out[0]))
Use sampling with a repetition penalty. Greedy decoding loops quickly, as in any small base model.
Data credits
FineWeb-Edu (ODC-By 1.0), Wikipedia (CC BY-SA 4.0), codeparrot/codeparrot-clean (public GitHub Python code under its original licenses). Thanks to everyone who built them.