File size: 2,001 Bytes
a8e3ada cd08eaf a8e3ada cd08eaf | 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 | ---
title: README
emoji: 🔶
colorFrom: yellow
colorTo: gray
sdk: static
pinned: false
---
<p align="center">
<img src="lollm-logotipo-claro.png" alt="LoLLM" width="360">
</p>
<p align="center"><b>Small language models that punch above their size.</b></p>
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.
|