Online course, Engineering
5 lessons of 35–40 minutes, 190 minutes in total: Python code, a task and a quiz in each.
No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.
Lesson 1, 35 minData Preparation for Chat Model Fine-TuningThe course walks through the full fine-tuning cycle on the OpenAI API: validating a JSONL dataset and estimating cost, supervised fine-tuning of a chat model, DPO on preferred and rejected answers, distilling a large model into a small one, and reinforcement fine-tuning with a grader. Note: since May 2026 OpenAI has been winding down fine-tuning, details below.
Checking JSONL before training: the messages format, roles, at least one assistant reply per example, token statistics and a 3-epoch cost estimate with tiktoken — without a single API call. In the task you run your own dialogue file through the validation script, fix the errors and work out the budget. This step is the same for any model, open-weight ones included.
Data preparation and basic fine-tuning → DPO and preferences → distillation and Reinforcement Fine-Tuning. The first two lessons are free.
Loading, validating, and counting tokens for a chat model fine-tuning dataset; running a complete fine-tuning cycle on an ingredient extraction example.
1Data Preparation for Chat Model Fine-Tuningfree35 minComplete pipeline for checking and analyzing a JSONL dataset before fine-tuning: format errors, token statistics, and training cost estimation.2Fine-Tuning Chat Models: End-to-Endfree40 minEnd-to-end walkthrough: preparing JSONL, uploading files via the Files API, launching a fine-tuning job, monitoring progress, and running inference on the fine-tuned model.Direct Preference Optimization technique: when and why SFT is not enough, the preferred/rejected dataset format, and a full DPO job cycle via the API.
3Direct Preference Optimization: Learning from Preferences35 minDPO aligns a model to subjective criteria (tone, style, brand voice) using preferred/rejected response pairs — no reward model or RL required.Distilling a large model into a smaller one: outputs saved with store=True, Structured Outputs for the format. Reinforcement Fine-Tuning with verifiable graders on medical data.
4Model Distillation: gpt-4o → gpt-4o-mini40 minLarge-model outputs are saved with store=True in Chat Completions, then a smaller, cheaper and faster model is fine-tuned on them. The lesson compares the accuracy of all three models on a validation set.You get it when you finish every lesson. Each certificate has its own code, so an employer can check it on our site. You can add it to LinkedIn.
See how a certificate is checkedThe lessons retell five OpenAI Cookbook notebooks (MIT license) from 2023–2025: data preparation, chat model fine-tuning, DPO, distillation and RFT. Academl is not affiliated with OpenAI.
After the course came out, OpenAI started winding down its fine-tuning platform. Since May 7, 2026, organizations that have never fine-tuned cannot start training. Since July 2, 2026, the same applies to those with no requests to a fine-tuned model in the past 60 days. On January 6, 2027, creating new jobs closes for everyone.
Existing fine-tuned models keep working until their base model shuts down. The RFT base model, o4-mini, shut down on October 23, 2026, so the RFT lesson now explains the method without a way to run it at OpenAI. gpt-4o-mini, gpt-4.1 and gpt-4.1-mini will shut down on January 14, 2027, taking their fine-tuned versions with them; the recommended replacement, gpt-6-luna, is not on the list of fine-tunable models.
The end-to-end SFT lesson is already updated: the OpenAI API job runs on gpt-4.1-mini, the second path trains a LoRA adapter for the open Qwen3 with TRL, and the before-and-after comparison runs in Promptfoo, because the OpenAI Evals platform shuts down on November 30, 2026.
What still holds: data checks, cost estimates, held-out evaluation and the logic of choosing between SFT, DPO and RFT. These steps are the same for open-weight models: the Cookbook has an example of fine-tuning the open gpt-oss model (Apache 2.0) with Hugging Face Transformers.
Only if your organization has fine-tuned before. Since May 7, 2026, new organizations cannot train, and since July 2, 2026, neither can those with no requests to a fine-tuned model in 60 days. On January 6, 2027, creating new jobs closes for everyone, while already trained models keep answering until their base model shuts down.
The methods in the course apply to any model: checking and cleaning a dataset, estimating cost, comparing with the base model on held-out examples, choosing between SFT, DPO and RFT, and distillation. The same steps are used to fine-tune open-weight models such as gpt-oss with Hugging Face Transformers. Teams with fine-tuned OpenAI models can use the course to plan a replacement before January 14, 2027.
SFT trains on examples of correct answers: classification, a required format, fixing instruction-following failures. DPO trains on pairs of preferred and rejected answers and suits tone, style and summarization focus. RFT scores every answer with a grader program and reinforces successful reasoning; at OpenAI it only worked with the o4-mini reasoning model.
You tune a prompt for a large model, save its good answers and train a small model on them with ordinary SFT. In the lesson, gpt-4o answers are collected with store=True and a metadata tag, gpt-4o-mini is fine-tuned on them, and the accuracy of all three models is compared on a validation set. gpt-4o-mini is no longer on the SFT model list: OpenAI's guide uses gpt-4.1 as the teacher and gpt-4.1-mini as the student. Per OpenAI's guide, the Responses API stores responses for 30 days by default.
OpenAI's documentation sets the minimum at 10 examples. The course tasks use 50+ examples for SFT, 100 pairs for DPO and 100 examples for RFT. Whether that is enough is shown by the held-out comparison with the base model that you run in the lesson.
Advanced9 Python lessons: local models in Ollama, RAG with hybrid search, QLoRA and GGUF export, a vLLM server, injection defense and LLMOps.
Certificate
Intermediate12 Python lessons on RAG: embeddings, Qdrant and pgvector, chunking, hybrid BM25 + RRF search, reranking, HyDE, RAGAS evaluation and a production pipeline.
Certificate
Intermediate8 lessons on OpenAI embeddings: text-embedding-3-small, semantic search, code search, reranking, classification, clustering, Q&A and recommendations.
Certificate
Intermediate6 Python lessons: RAG over complex PDFs, search with HyDE, prompt caching, 429 retries, long document summarization and entity extraction. 2026 notes.
CertificateThe first two lessons are open after a free sign-up. Sign up with email or Google to get 7 days of full access to the whole course and catalog.
Sign upFine-tuning fits when you need a stable format, style or skill and the prompt is no longer enough. New facts are better supplied through RAG, as the course lessons advise. OpenAI suggests starting with evals and prompts and fine-tuning only after measurement shows the prompt falls short.
This course covers managed fine-tuning through the OpenAI API: files, training jobs, DPO, distillation and RFT on OpenAI models. The Hugging Face course teaches open-weight models in the Transformers library, LoRA included. Without access to OpenAI fine-tuning, the end-to-end SFT lesson shows a second path with TRL, and the Hugging Face course covers open-weight models in depth.
5 lessons of 35–40 minutes, 190 minutes in total, and a certificate with a verification code after all lessons. The first two lessons are always free, sign-up gives 7 days of full access with no card, then Pro is $9 a month or $79 a year. Training and requests at OpenAI are billed separately.