OpenAI Fine-tuning: From Data to DPO · Lesson 1
Data Preparation for Chat Model Fine-Tuning
Complete pipeline for checking and analyzing a JSONL dataset before fine-tuning: format errors, token statistics, and training cost estimation.
What changed by December 2026
OpenAI is winding down its fine-tuning platform:
- since May 7, 2026, organizations that have never fine-tuned can't create new jobs;
- since July 2, 2026, neither can organizations with no inference on a fine-tuned model in the past 60 days;
- from December 15, 2026, no one can create new jobs (the original cutoff was January 6, 2027, and it was moved up);
- fine-tuned models keep working while their base model lives. gpt-4.1, gpt-4.1-mini, gpt-4o, gpt-4o-mini and their fine-tuned versions shut down on January 14, 2027.
The data checks in this lesson still apply. Hugging Face's TRL library accepts the same messages format for fine-tuning open models, and the script below catches the same errors.
The rest of this lesson opens after a free sign-up
Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.


