Model Architecture
PremiumRead BentoLM's structure and parameter size from bento_29m.yaml
BentoLM-29M is not built to be large, but to let a single card complete the full training pipeline. The benefit of a small model is fast feedback: a wrong config, an incorrect data path, abnormal loss, or a failed checkpoint save can all be exposed in a relatively short time.
The 29M figure is not arbitrary either. Parameter count comes from three places: the embedding (vocab_size × hidden_size), the attention and FFN weights in each layer, and the output head. With vocab_size at just 8192 and hidden_size at 512, the embedding accounts for only about 4M, which leaves the rest of the budget for 8 Transformer layers. That ratio matters: when the embedding dominates, the model spends its capacity memorizing a vocabulary instead of learning structure, which is the most common way to waste a small model.
Every field in the config below corresponds to one of these trade-offs.
Key Configuration
Log in to continue reading
This is premium content. Please log in to access the full article.
CookLLM Docs