Skip to content

Dataset · HuggingFaceTB

Educational code with 125 billion tokens

HuggingFaceTB/stack-edu

Filtered educational code from The Stack v2 for training language models in programming.

What's inside

The dataset contains 125 billion tokens of educational code filtered from The Stack v2 (StarCoder2Data). Classifier filtering is inspired by FineWeb-Edu. According to the card, it provides consistent improvement across all programming languages compared to StarCoder2Data.

What you can do with it

  • Pretraining code LLMs
  • Continued training of StarCoder2-like models
  • LoRA fine-tuning for code generation
Size
100M–1B rows
Downloads this month
8.2K
Likes
85

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("HuggingFaceTB/stack-edu")