Skip to content

Dataset · jondurbin

DPO dataset for improving Python code generation

jondurbin/py-dpo-v0.1

1 to 10 thousand preference pairs for aligning language models in Python programming tasks.

What's inside

A text dataset of 1 to 10 thousand examples for training via DPO (Direct Preference Optimization) in Python. Verified solutions from the Tested-22k-Python-Alpaca dataset are used as chosen responses, while rejected variants are generated using airoboros-l2-13b-3.1 and bagel-7b-v0.1 models.

What you can do with it

  • DPO training of language models to improve Python code quality
  • Training reward models for evaluating source code
  • Fine-tuning compact LoRA adapters for coding assistants
Languages
Code
Size
1K–10K rows
Downloads this month
479
Likes
57

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("jondurbin/py-dpo-v0.1")