Small language models that punch above their size.
LoLLM is an independent research project building compact, efficient English language models that run well on consumer hardware. Everything so far has been designed and trained on a 4 GB laptop GPU and free Kaggle T4s.
Approach
- Specialists instead of one big model. A shared seed model is branched into domain specialists (web, code, math) with Branch-Train-Merge. A tiny router picks the right specialist for each prompt, so only one small model needs to be in memory at a time.
- An efficient core. A hybrid of short convolutions and grouped-query attention, trained with Muon and a warmup-stable-decay schedule.
- Cheap extra memory. Hashed n-gram embeddings add knowledge through table lookups instead of matrix multiplications, which costs almost nothing at inference.
- Data over size. High-quality, decontaminated teacher data during annealing, followed by post-training on tasks with verifiable answers.
Early results
These are from our smallest research scale (~27M parameters), so they show the direction of each change, not final quality:
- Domain specialists cut bits-per-byte by up to 18.7% in their own domain compared with a general model trained on the same budget. A router that sees only the first 32 tokens picks the right specialist 94% of the time.
- Teacher-written math solutions during annealing lower the loss on unseen GSM8K and MATH-500 solutions by 16–23%.
- Hashed n-gram embeddings improve every metric we track, and the gain grows with training (−1.3% to −2.8% bits-per-byte at 600M tokens).
Status
Research in progress. No models have been released yet. We plan to publish models, training code and full evaluations once the first full-size release is ready.