Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesOpenAI Fine-tuning: From Data to DPOFine-Tuning Chat Models: End-to-End
Training curves: training loss falls while validation loss starts to riseThe ollama run command and a VRAM gauge the model fits intoA shelf of open-weight models: DeepSeek, Qwen, Mistral, Llama
Course

OpenAI Fine-tuning: From Data to DPO

Module 1 · Data Preparation and Basic Fine-Tuning
01Data Preparation for Chat Model Fine-Tuning02Fine-Tuning Chat Models: End-to-End
Module 2 · DPO and Preferences
03Direct Preference Optimization: Learning from Preferences
Module 3 · Distillation and Reinforcement Fine-Tuning
04Model Distillation: From a Large Model to a Small One05Reinforcement Fine-Tuning on an Open Model: GRPO in TRL
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.

40 min readUpdated Nov 9, 20263 questions in quizReady prompt included

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-14 and their fine-tuned versions shut down on January 14, 2027; gpt-4.1-nano-2025-04-14 was 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.

Sign up freeOr a trial lesson, no sign-up →
In this lesson
What Changed by November 2026Preparing Training DataPath A: OpenAI APIPath B: SFT on an Open Model with TRLComparing Before and After with PromptfooHow Many Examples You NeedPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free