Skip to content

Dataset · open-phi

Synthetic programming textbooks (400M tokens)

open-phi/programming_books_llama

A corpus of 400 million tokens of generated programming books for training code LLMs.

What's inside

The dataset contains 100K to 1M text records with a total volume of 400M tokens, generated in a textbook style. Of these, 70M tokens were created by the gpt-3.5 model (noted as very high quality), and the rest by fine-tuned CodeLlama 34B (shorter, simpler texts).

What you can do with it

  • Pre-training and SFT of models for code generation and programming explanation
  • Experiments with training LLMs on synthetic data using the textbook quality method
  • Comparing the quality of synthetic data from gpt-3.5 and CodeLlama
Size
100K–1M rows
Downloads this month
191
Likes
37

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("open-phi/programming_books_llama")