Skip to content

Dataset · karpathy

Cleaned GPT-4 TinyStories

karpathy/tinystories-gpt4-clean

2.7 million short English stories cleaned of original TinyStories issues for training small LLMs.

What's inside

This is a cleaned subset of TinyStories, retaining only stories generated by GPT-4. The set contains 2,732,634 stories, approximately 2.19 billion characters; document lengths range from 115 to 4,433 characters with a median of 721. Only 74 unique ASCII characters are used; the data is adapted from a discussion on cleaning the original dataset.

What you can do with it

  • Training a small language model for story generation
  • Testing a model on short English stories
  • Fine-tuning a LoRA for simple English text
Size
1M–10M rows
Downloads this month
898
Likes
94

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("karpathy/tinystories-gpt4-clean")