HuggingFaceFW/fineweb
Viewer β’ Updated β’ 52.5B β’ 385k β’ 3.14k
We tested two different architecture configurations on 500M tokens of FineWeb to investigate whether depth or width is more effective for tiny language models (TLMs).
depth_311)
LlamaForCausalLMHarley-ml/Dillionv2-1.3M5.13.11282142313322562125.0truesilufalse0.21e-061false6.103,889,920width_311)
LlamaForCausalLMHarley-ml/Dillionv2-1.3M5.13.1192962469322562125.0truesilufalse0.21e-061false21.333,816,5761-1.025625621.0true3e-30.0010.01AdamW(0.9, 0.95)1e-8WSD0.0150.780.200.00.5float16false4311Accuracy is normalized by length and shown as a percentage.
| Config | Final Val Loss β | Arc Easy β | Arc Challenge β | HellaSwag β | PiQA β | Swag β | Blimp β | Avg β |
|---|---|---|---|---|---|---|---|---|
| Config A | 3.13697 |
29.17 | 21.67 | 27.01 | 54.03 | 32.65 | 67.66 | 38.70 |
| Config B | 3.14935 |
28.91 | 20.73 | 26.93 | 53.65 | 32.24 | 68.18 | 38.44 |
Config A scores higher than Config B on nearly every task, demonstrating that even at minuscule scales, greater depth can outperform greater width.
The two models are stored separately in different folders in this repository. To load them, use:
from transformers import AutoModelForCausalLM, AutoTokenizer
config_a = AutoModelForCausalLM.from_pretrained(
"fromziro/Width-Vs-Depth",
subfolder="config_a",
)
# load config b instead:
# config_b = AutoModelForCausalLM.from_pretrained(
# "fromziro/Width-Vs-Depth",
# subfolder="config_b",
# )
tokenizer = AutoTokenizer.from_pretrained("fromziro/Width-Vs-Depth")
Apache 2.0.
@misc{width-vs-depth,
title = {Width-vs-Depth at Small Scales},
organization = [FromZero],
authors = {Paul Courneya, Jonathon LY},
year = {2026},
url = {https://huggingface.co/fromziro/Width-Vs-Depth]
}