Renaissance Labs · Code
Paper · 2023-06

Textbooks Are All You Need (phi-1)

1.3B model trained on 6B tokens of filtered web 'textbook quality' code plus 1B tokens of synthetic textbooks reaches 50.6% HumanEval (abstract).

How to use it

Quality filtering plus synthetic textbook data beats raw scale for small models.

Caveats

Synthetic data from GPT-3.5; HumanEval is contaminated-prone; model not released fully at the time.

Related

  • Code Llama 70B (legacy): Meta's 2024 code Llama; included for historical comparison...
  • Codestral-22B-v0.1: Mistral's 2024 code model; weights open for research and testing...
  • CommitPack: Raw commit corpus (code before/after plus message) from which CommitPackFT was...
  • Cosmopedia: Large synthetic textbooks, blog posts and stories generated from seed web data; includes code-flavored...
  • DeepSeek-Coder-V2: Continued pretraining of a MoE on code and math tokens to reach closed-model-level code results at...
  • DeepSeek-Coder-V2 (Instruct 236B / Lite): June 2024 MoE code model continued-pretrained from DeepSeek-V2; strong at release, now...