OpenAI Fine-tuning: From Data to DPO · Lesson 2
Fine-Tuning Chat Models: End-to-End
Full SFT cycle on one dataset: preparing JSONL, launching a job in the OpenAI API for organizations that still have access (the platform is winding down), fine-tuning an open model with TRL, and comparing before and after in Promptfoo.
What Changed by November 2026
OpenAI is winding down its fine-tuning platform. In practice:
- since May 7, 2026, the platform is closed to organizations that had never fine-tuned a model;
- since July 2, 2026, it is also closed to organizations with no fine-tuned model inference in the past 60 days;
- from January 6, 2027, nobody can create new jobs;
- a fine-tuned model keeps working until its base model shuts down.
gpt-4.1-2025-04-14,gpt-4.1-mini-2025-04-14and their fine-tuned versions shut down on January 14, 2027;gpt-4.1-nano-2025-04-14was shut down on October 23, 2026.
That is why this lesson takes one dataset down two paths. Path A is the OpenAI API, if your organization still has access. Path B is SFT on an open model with Hugging Face's TRL library: anyone can use it, and it is the sensible base for new projects.
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.


