model.safetensors + config + tokenizer files).| Model page | https://huggingface.co/AddisuSeteye/AI_Math_Tutor_for_Early_Learners |
| Source code | https://github.com/AdaSeteye/AI_Math_Tutor_for_Early_Learners |
| License | MIT |
GPT2LMHeadModel (6 layers, 768 hidden size, 12 attention heads) — same family as distilgpt2 used as the base for the training pipeline in this project.model.safetensors), with config.json, generation_config.json, and tokenizer files.merged_f16).numeracy_instruct.jsonl — short user/assistant chat-style turns (counting, addition, subtraction, simple word problems) for early numeracy.merged_f16)| File | Role |
|---|---|
model.safetensors | Merged model weights (FP16) |
config.json | Model configuration |
generation_config.json | Default generation settings |
tokenizer.json | Tokenizer (JSON) |
tokenizer_config.json | Tokenizer config |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "AddisuSeteye/AI_Math_Tutor_for_Early_Learners"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 torch_dtype=torch.float16,
10 device_map="auto",
11)
12
13# Example: single-turn style prompt (match your training format in practice)
14text = "You are a math helper. How many is 2 + 1?"
15inputs = tokenizer(text, return_tensors="pt").to(model.device)
16out = model.generate(**inputs, max_new_tokens=80, do_sample=True, top_p=0.9)
17print(tokenizer.decode(out[0], skip_special_tokens=True))transformers (version compatible with your config.json, e.g. 4.36+)torchsafetensors (for loading .safetensors)config.json.1@misc{aimathtutor2026,
2 title = {AI Math Tutor for Early Learners},
3 author = {Addisu Seteye},
4 year = {2026},
5 howpublished = {\url{https://huggingface.co/AddisuSeteye/AI_Math_Tutor_for_Early_Learners}}
6}data/T3.1_Math_Tutor/, training script tutor/llm_qlora.py (see the GitHub repo for the full app, curriculum, and on-device tutor pipeline). The Gradio child demo in that repo does not load this merged checkpoint by default; the main product loop uses a separate pipeline (TTS, ASR, curriculum) described in the GitHub README.md.