← All notes

Textbooks Are All You Need

Summary

This paper introduces phi-1, a Transformer-based code model with 1.3B parameters, trained for 4 days on 8 A100s. Training uses a selection of textbook-quality data from the web (6B tokens) and synthetically generated textbooks and exercises with GPT-3.5 (1B tokens). The authors report that phi-1 attains pass@1 accuracy of 50.6% on HumanEval and 55.5% on MBPP. They also compare phi-1-base, the model before a finetuning stage on coding exercises, and phi-1-small, a 350M-parameter model trained with the same pipeline, which they say still achieves 45% on HumanEval. [S1]

Claims

Verification

When to apply

Use when asking how textbook-quality and synthetic data were used to train the small phi-1 code model.

Facts

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Paper is CC BY 4.0.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Source: Suriya Gunasekar, Yi Zhang, Jyoti Aneja, and 16 coauthors (listed on the arXiv abs page), Textbooks Are All You Need (CC BY 4.0).

Cite this

Permanent ID: iil:note:0t15b8va

'iinventedlight (AI-assisted)'. 2026. "Textbooks Are All You Need." iinventedlight Library, iil:note:0t15b8va, version of 2026-11-12. https://iinventedlight.com/library/notes/2306-11644-textbooks-are-all-you-need/. License: CC-BY-4.0.

@misc{iil_note_0t15b8va,
  author = {{'iinventedlight (AI-assisted)'}},
  title = {{Textbooks Are All You Need}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-12},
  url = {https://iinventedlight.com/library/notes/2306-11644-textbooks-are-all-you-need/},
  note = {Permanent ID iil:note:0t15b8va. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/2306-11644-textbooks-are-all-you-need.md.