Instructions to use udithuzumaki/Tenketsu-Base-125M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use udithuzumaki/Tenketsu-Base-125M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="udithuzumaki/Tenketsu-Base-125M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("udithuzumaki/Tenketsu-Base-125M") model = AutoModelForCausalLM.from_pretrained("udithuzumaki/Tenketsu-Base-125M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use udithuzumaki/Tenketsu-Base-125M with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf udithuzumaki/Tenketsu-Base-125M # Run inference directly in the terminal: llama cli -hf udithuzumaki/Tenketsu-Base-125M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf udithuzumaki/Tenketsu-Base-125M # Run inference directly in the terminal: llama cli -hf udithuzumaki/Tenketsu-Base-125M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf udithuzumaki/Tenketsu-Base-125M # Run inference directly in the terminal: ./build/bin/llama cli -hf udithuzumaki/Tenketsu-Base-125M
Use Docker
docker model run hf.co/udithuzumaki/Tenketsu-Base-125M
- Llama new
- LM Studio
- Jan
- vLLM
How to use udithuzumaki/Tenketsu-Base-125M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "udithuzumaki/Tenketsu-Base-125M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udithuzumaki/Tenketsu-Base-125M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/udithuzumaki/Tenketsu-Base-125M
- SGLang
How to use udithuzumaki/Tenketsu-Base-125M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "udithuzumaki/Tenketsu-Base-125M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udithuzumaki/Tenketsu-Base-125M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "udithuzumaki/Tenketsu-Base-125M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udithuzumaki/Tenketsu-Base-125M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use udithuzumaki/Tenketsu-Base-125M with Ollama:
ollama run hf.co/udithuzumaki/Tenketsu-Base-125M
- Unsloth Desktop
- Docker Model Runner
How to use udithuzumaki/Tenketsu-Base-125M with Docker Model Runner:
docker model run hf.co/udithuzumaki/Tenketsu-Base-125M
- Lemonade
How to use udithuzumaki/Tenketsu-Base-125M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull udithuzumaki/Tenketsu-Base-125M
Run and chat with the model
lemonade run user.Tenketsu-Base-125M-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
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.
- Downloads last month
- 194