Dataset · transformersbook
22M Python files corpus from GitHub (CodeParrot)
transformersbook/codeparrot
Huge 180 GB text corpus of Python code from BigQuery for training code generation models.
What's inside
The full version of the CodeParrot dataset, collected from public GitHub repositories via Google BigQuery to train the code generation model from the book "NLP with Transformers". It contains about 22 million text files in Python. The total data volume is 180 GB (or 50 GB compressed).
What you can do with it
- Pretraining language models for Python code autocompletion and generation
- Creating specialized LoRA adapters for understanding Python syntax and libraries
- Researching filtering, deduplication, and tokenization of large code corpora
- Size
- 10M–100M rows
- Downloads this month
- 1.2K
- Likes
- 62
How to load it
from datasets import load_dataset
ds = load_dataset("transformersbook/codeparrot")