Numi
A ~3.6M-parameter language model that runs entirely on a NumWorks graphing calculator (N0120), inside a normal external app. No internet needed.
Numi answers math questions in plain English and uses a calculator tool for every number: it writes <calc>expression<res>, the app computes the result and inserts it, and Numi explains the answer. It also does short chat and says so when a question isn't about math.
Code, app and build instructions: https://github.com/dennisimoo/numi (install numi.nwa from the releases page).
Files
| File | What |
|---|---|
numi-q4.bin |
4-bit model + tokenizer in the calculator format (~2.1 MB), for the C engine in the GitHub repo |
numi.pt |
PyTorch checkpoint (model state dict + cfg), load with train/model.py from the repo |
tokenizer.model |
SentencePiece BPE tokenizer, 3,072 tokens, digits split |
config.json |
Model shape |
Model
Llama-style decoder: 6 layers, width 224, 7 attention heads sharing 1 key/value head, SwiGLU feed-forward (544), RoPE, RMSNorm, tied embeddings, context 256 (128 on the calculator). Trained on ~1.5B tokens with 4-bit-aware training for the last 30%.
Prompt format
<|user|>tip 15% on 42<|bot|>
The model generates until <|end|>. When it emits <res>, evaluate the expression since the last <calc>, append the result and </res>, and continue.
Results
Exact 4-bit C engine, questions never seen in training:
| Test | Score |
|---|---|
| Standard math problems | 92% |
| Varied everyday/school questions | 67% |
| 30 everyday questions in unseen wording | 63% |
Limits
Tiny model: math and basic school terms only, no general knowledge, short memory (~128 tokens), confused by long or unusual questions. Not affiliated with NumWorks.
Training data
LLM-written math problems kept only when their calculator steps reproduce the correct answer, LLM-invented questions kept only when an independent second solve agrees, template drills, short chat, and simple English text (TinyStories, Simple English Wikipedia).
- Downloads last month
- 21