File size: 1,146 Bytes
4a54e35 beb6a05 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | ---
language:
- en
license: mit
tags:
- math
- addition
- lookup-table
- custom-architecture
---
# Tiny Add2 LLM 10MB
This is a **tiny addition-only model package**. It is not a real general-purpose LLM like Llama/GPT. It is made for one job only:
> add exactly 2 non-negative numbers.
Example:
```bash
python infer.py "12 + 30"
# 42
```
## What is included
- `model/add2_model.bin` — 10 MB model file
- `model.py` — model loader
- `infer.py` — one-shot addition answer
- `chat.py` — simple chat mode
- `build_model.py` — rebuild the 10 MB model file
- `test_model.py` — quick tests
## Limit
Default model supports numbers from `0` to `2199`.
Valid inputs:
```text
12 + 30
add 15 and 7
100 plus 55
```
Invalid inputs:
```text
hello
12 + 30 + 5
-1 + 5
99999 + 1
```
## Run on PC
```bash
pip install -r requirements.txt
python infer.py "123 + 456"
python chat.py
```
## Rebuild model
```bash
python build_model.py --max-number 2199 --target-mb 10 --out model/add2_model.bin
```
## Hinglish note
Bhai, ye ek chhota **addition-only mini model** hai. Ye chatbot jaisa general answer nahi dega. Sirf 2 number add karega.
|