Views
No views yet
lm-evaluation-harness against OpenAI's GPT-2 (124M). The results show that Tiny-LM-8M punches far above its weight class:| Task | Tiny-LM (8M) | GPT-2 (124M) | % of GPT-2 Perf. |
|---|---|---|---|
| ARC-Easy (acc_norm) | 31.73% | 39.48% | 80.4% |
| HellaSwag (acc_norm) | 27.00% | 31.14% | 86.7% |
Key Takeaway: With only 6.4% of the parameters, this model achieves over 80% of the reasoning performance of GPT-2, proving that modern architectures combined with curated data can drastically reduce model size.
transformers library:1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "sixf0ur/tiny-lm-8M"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(model_id)
6
7prompt = "The meaning of life is"
8inputs = tokenizer(prompt, return_tensors="pt")
9
10output = model.generate(**inputs, max_new_tokens=50, temperature=0.7, do_sample=True)
11print(tokenizer.decode(output[0], skip_special_tokens=True))
12
13# Ouptut:
14# The meaning of life is a set of ways that people can share, feel, and learn about things.
15# People have thought about things like how they find their way, where they look for adventures, and how they fit together
16