Textbooks Are All You Need
2023/06/20 by Suriya Gunasekar, Yi Zhang, Gunasekar, Suriya +35 · 11 voices · 55 citations
Computer Science · #Topic Modeling #Natural Language Processing Techniques #Text Readability and Simplification
paper · pdf · doi:10.48550/arxiv.2306.11644
Abstract
We introduce phi-1, a new large language model for code, with significantly smaller size than competing models: phi-1 is a Transformer-based model with 1.3B parameters, trained for 4 days on 8 A100s, using a selection of ``textbook quality" data from the web (6B tokens) and synthetically generated textbooks and exercises with GPT-3.5 (1B tokens). Despite this small scale, phi-1 attains pass@1 accuracy 50.6% on HumanEval and 55.5% on MBPP. It also displays surprising emergent properties compared to phi-1-base, our model before our finetuning stage on a dataset of coding exercises, and phi-1-small, a smaller model with 350M parameters trained with the same pipeline as phi-1 that still achieves 45% on HumanEval.
Cited by
Discussions
- Textbooks are all you need [hn, 256 points, 106 comments]
- Textbooks Are All You Need [lemmy, 7 points, 0 comments]
- Textbooks Are All You Need. 1.3B LLM trained on 51B tokens hits 51% on HumanEval. (20.06.2023 paper) [lemmy, 5 points, 1 comments]
- On the quality-over-quantity point specifically: Textbooks Are All You Need, arxiv.org/abs/2306.11644. And if data-constrained becomes the real regime: arxiv.org/abs/2305.16264. [bsky, 3 points, 1 comments]
- AI Is Already Crushing the News Industry [lemmy, 3 points, 0 comments]
- via Tim Hanson: https://arxiv.org/abs/2306.11644 Textbooks are all you need Demonstrates that by training on a high-quality yet small dataset (7B tokens, 7 epochs), a small network (1.3B parameters) [bsky, 0 points, 1 comments]
- I'd not seen this, using "synthetically generated textbooks and exercises" arxiv.org/abs/2306.11644 [bsky, 0 points, 0 comments]
- 4. GPT 처음 튀어 나왔을때 규모를 듣고 깜짝 놀랬는데 LLAMA부터 시작해서 (7B나 13B긴 하지만) 로컬 GPU에서도 뭔가 돌릴 수 있게 됐잖아요? 또 https://arxiv.org/abs/2306.11644 이런 친구도 있구요 소프트웨어적으로 개선의 여지가 있는 거 아닐까? 하는 생각도 들구요 [bsky, 0 points, 1 comments]
- phi-1: a 1.3B code generation model comparable to SoTA models such as WizardCoder or GPTs. This looks great, although it has some tricks. Also, I guess it would work even on the Raspberry Pi. https:/ [bsky, 0 points, 1 comments]
- What's you doing is not a compression. It's a topology. Microsoft made almost similar with their Phi LM family. They limited the knowledge base for the first stage and then taught the model on the wid [bsky, 0 points, 0 comments]
- Here's one source: arxiv.org/abs/2306.11644 [bsky, 0 points, 1 comments]
Related