Quick start
from transformers import AutoModelForCausalLM, AutoTokenizer repo = "nkthebass/tinybrainbot-25m-v5.1-base"tok = AutoTokenizer.from_pretrained(repo)model = AutoModelForCausalLM.from_pretrained(repo) ids = tok("Photosynthesis is the process by which", return_tensors="pt").input_idsout = model.generate(ids, max_new_tokens=80) # defaults from generation_config.jsonprint(tok.decode(out[0], skip_special_tokens=True))
GGUF (llama.cpp, LM Studio, Ollama): tinybrainbot-25m-v5.1-base-F16.gguf (62 MB) and
tinybrainbot-25m-v5.1-base-Q8_0.gguf (33 MB). The F16 file tokenizes and decodes greedily exactly like transformers.
llama-cli -m tinybrainbot-25m-v5.1-base-Q8_0.gguf -p "Photosynthesis is the process by which" -n 80 --temp 0.7 --repeat-penalty 1.15
Default sampling: temperature 0.7, top_p 0.95, top_k 40, repetition_penalty 1.15.
Samples
Unedited, at the default settings.
Photosynthesis is the process by which photosynthetic organisms convert sunlight, water, and carbon dioxide into chemical energy stored in sugar molecules. This conversion occurs because light energy captured from the sun is converted to chemical bonds that build sugars like starch and glucose. An everyday parallel is a solar-powered calculator, where a photov
The main reason volcanoes erupt is the mantle flow, where it flows slowly and explosively. The pressure difference between the hot magma inside the Earth and the cooler rock below it drives most of this flow.Question: Why do scientists say a hot spot in space can be considered a giant crack in the crust?
Once upon a time, a little fox named Timmy loved to explore his neighborhood. His favorite park was called The Oakville Ranch. They had lots of friendly animals and people who were always curious about their surroundings. One day, while playing near the tree, they noticed something strange happening in the forest.
"
Tom had 12 apples and gave 5 to his sister, so the total is 65.How many apples does Hiro have? Hiro had 78 and got 3 more. Answer: 81 cookies
Victor has 40 crayons and Ben has 4 crayons. Victor gives away 3
At 25M parameters it writes fluent text and knows common science explanations, but word-problem arithmetic in free text
is unreliable (see the last sample).
Model
Table | |
|---|
| Architecture | Llama-compatible decoder (LlamaForCausalLM), RoPE, SwiGLU, RMSNorm, grouped-query attention |
| Shape | hidden 384, 16 layers, 6 heads of 64, 2 KV heads, FFN 1024 |
| Parameters | 25.18M non-embedding + 5.38M tied embedding = 30.55M |
| Context | 1,024 tokens |
| Vocabulary | 14,000 byte-level BPE (digits split one per token, newlines and indentation kept, no unknown tokens) |
Training
12.6B tokens on 2x Tesla V100 16GB, fp16, AdamW (0.9, 0.95), weight decay 0.1, 131k tokens per step.
Table with columns: Stage, Tokens, LR, Data| Stage | Tokens | LR | Data |
|---|
| 1-3 (= 25M-v4) | 11.0B | 2e-3, warmup-stable-decay | web, Wikipedia, books, code, math, synthetic textbooks, Q&A; then a fact-dense anneal (see the 25M-v4 card) |
| 4: v5.1 decay | 1.5B | re-warm to 2e-3, decay to 0 | school-level textbooks (Cosmopedia v2) 15%, FineWeb-Edu (high quality) 10%, science Q&A 9%, DCLM-Ultra 6%, Simple and English Wikipedia 11%, distilled Q&A / facts / explanations, commonsense and everyday-activity writing, GooAQ, FactBase-DCLM, finephrase FAQ, ELI5; real math 12%: OpenMathInstruct-2 4%, UltraData-Math L3 3.5%, FineMath 2.5%, Orca-Math 2% |
| 5: light math top-up | 0.1B | constant 3e-4 | the stage 4 mix (83%) and real math (12%) plus 5% synthetic arithmetic practice (Python-generated problems: operations and order of operations, numbers as words, large numbers and money, negatives, multi-step and layout problems) |
The published weights are a linear interpolation of the stage 4 final (15%) and the stage 5 final (85%), which
leaves stage 5's arithmetic practice at part strength. On our own held-out arithmetic probe (23 skills ArithMark-3 does
not cover) the model scores 45.1.
The generated sets (science Q&A, explanations, commonsense writing, arithmetic practice) were written for this model;
none of them contains benchmark questions, and no benchmark train or test split was used.
Reproduce the benchmarks
lm_eval --model hf --model_args pretrained=nkthebass/tinybrainbot-25m-v5.1-base,dtype=float32 \ --tasks arc_easy,arc_challenge,hellaswag,piqa,openbookqa,sciq,winogrande,boolq,lambada_openai,mmlu,commonsense_qa,social_iqa \ --num_fewshot 0 --batch_size 16python bencharithmark-3.py --model nkthebass/tinybrainbot-25m-v5.1-base --dtype float32