Reasoning models usually reach an ordinary software development team as an API endpoint: prompts go in, answers come out, and nobody in the sprint can explain what changed between the two. The material covered here is the opposite exercise. It is a coding series recorded in the last few months by Ahead of AI, eight lectures long, running to 11 hours, in which a small pre-trained model is upgraded step by step with Python and PyTorch code that the viewer types and runs. Its written sibling is Build Reasoning Model (From Scratch), and the package is about implementation rather than opinion.
Coverage over the last two years in the same publication has been broad; one recent article examined mechanisms to control reasoning effort levels in contemporary LLMs. That matters because reasoning models have not become niche: almost every current-generation LLM today is a reasoning model or offers a reasoning mode. For engineers, the interesting questions are inference scaling, reinforcement learning and distillation, and the quickest route to internalising them is to rebuild those methods from the ground up in PyTorch instead of reading about them.
A recurring question in planning conversations is how reasoning models relate to today's AI agents, so the series opens with a short positioning note. A reasoning model is essentially an upgrade of a conventional LLM: more post-training through reinforcement learning with verifiable rewards, plus optional inference scaling techniques, so the same architecture handles harder problems. Classically these models were developed for math and code, but the capabilities generalise to other problem domains.
That reasoning model then acts as the engine inside an agent harness. The harness is the software or tooling framework wrapped around the LLM or reasoning model, and it is what lets a team take on even more challenging work: bigger coding tasks, travel booking, and other personal assistant tasks. Its two jobs are sophisticated context management and giving the model access to tools.

Figure 1: the engine analogy placing conventional LLMs, reasoning models and agent harnesses in one pipeline, taken from the Components of a Coding Agent article.
| Layer | What it is | What it contributes | When a team reaches for it |
|---|---|---|---|
| Conventional LLM | The pre-trained model behind a plain chatbot interface | Baseline capability | Chat-style interaction is sufficient |
| Reasoning model | An upgrade of the conventional LLM | Post-training with verifiable rewards, optionally inference scaling | Harder math and code problems, and domains the skill generalises to |
| Agent harness | Software and tooling framework around the model | Context management plus tool access | Bigger coding tasks, travel booking, personal assistant workflows |
An agent can be built on either a conventional LLM or a reasoning model, but reasoning models are the more typical choice because they are more capable, and most current-generation LLMs already ship as reasoning models with variable reasoning effort settings. The practical conclusion for a delivery team: the engine layer remains an important part of understanding modern LLM agents.
The build target is a small pre-trained Qwen3 model, and every reasoning method added around it is implemented by the viewer in Python and PyTorch. Starting from a pre-trained checkpoint keeps the effort on the interesting part: evaluation, inference-time scaling, reinforcement learning and distillation.

Figure 2: overview of the topics the sessions cover.
Taken in order, the lectures form one dependency chain: a working baseline generator, a verifier, two inference-time upgrades, two reinforcement-learning stages, and finally a distillation alternative to them.
The first lecture explains how conventional LLMs, reasoning models and agents relate, then spends its time on the coding environment: installing the Python and PyTorch dependencies with uv, discussing hardware choices, and walking through common setup issues.
Session 1 video · setup instructions
Reasoning methods need a working model underneath them. Training one would be a whole other book — that is what Build a Large Language Model (From Scratch) is for — so this stage downloads the pre-trained weights of a Qwen3 0.6B model and implements the text-generation process as a streaming generator, then adds KV caching and model compilation to make generation more efficient. The result is the baseline that later stages evaluate and improve.
Session 2 video · code for chapter 2
Here a math-answer verifier is assembled step by step: final-answer extraction, then normalisation, then checking mathematical equivalence. Its first job is scoring the base model on MATH-500. Its second job appears later in the series, when the same verification logic supplies the reward signal for reinforcement learning with verifiable rewards, or RLVR.
Session 3 video · code for chapter 3
Next come improvements that leave the model weights fixed. Because generating diverse answers for the same prompt is standard practice in proprietary LLM chatbots such as ChatGPT, the stage first implements temperature scaling, multinomial sampling and top-p filtering. Multiple candidates are then combined through self-consistency, using majority voting over their final answers, and the accuracy-versus-computation tradeoff is measured.
Session 4 video · code for chapter 4
Building on the previous session, scoring functions are implemented so several answers to the same prompt can be compared; the same functions also break ties inside self-consistency. The stage covers token and sequence log probabilities — later reused in the reinforcement-learning chapters — a simple heuristic scorer, and a self-refinement loop in which the model critiques an answer and attempts a revision, followed by an evaluation of how useful those extra steps really are.
Session 5 video · code for chapter 5
Training starts with a simplified version of Group Relative Policy Optimization (GRPO): groups of responses are generated, scored with the verifier built in stage 3, and their relative rewards drive the model weight updates.
Session 6 video · code for chapter 6
With the loop in place, the seventh lecture revisits it for instrumentation and analysis: entropy and advantage statistics, clipped policy ratios, KL loss term values and formatted rewards are added, then the training logs and evaluation results are reviewed to judge whether additions such as clipped policy ratios and KL loss terms are helpful.
Session 7 video · code for chapter 7
The final lecture takes the other road to a small reasoning model: learning from answers produced by a stronger, bigger teacher model. Distillation variants are discussed, reasoning data is prepared, the supervised training loop is implemented, and the distilled model is evaluated on MATH-500 and compared — closing the series with an alternative to building reasoning capability through reinforcement learning.
Session 8 video · code for chapter 8
The videos accompany the book Build A Reasoning Model (From Scratch). Reading suits anyone who wants the explanations in more detail and at their own pace, plus exercises; the suggested loop for the deepest learning is one chapter read, its code worked through alongside the matching video, then the exercises attempted. The book is available from Manning and Amazon, and the print edition is in colour.

Figure 3: a random excerpt from the Build a Reasoning Model (From Scratch) print book.
For a shorter, more conceptual overview before the implementations, there is the AI Reasoning Models course on LinkedIn Learning. It runs about 90 minutes and explains how reasoning models work, covering the main ideas behind inference-time scaling, reinforcement learning and distillation. Accessing it through the link on its page should be free for 24h, which should mean a LinkedIn Premium subscription is not required. It is a good optional preview, not a substitute for the code.
Python and PyTorch throughout. Dependencies are installed with uv in the first session, and the generation stage adds KV caching plus torch.compile for efficiency comparisons.
The series is eight main lecture videos with 11 hours of content, recorded in the last few months.
Yes — the AI Reasoning Models course on LinkedIn Learning, about 90 minutes, on inference-time scaling, reinforcement learning and distillation. Via the link there it should be free for 24h and should not require a LinkedIn Premium subscription.
A pre-trained Qwen3 0.6B model is the starting point; answers are graded against MATH-500; the distillation stage uses teacher answers for the MATH dataset generated by DeepSeek R1.
No. The videos carry the implementation track; the book adds detailed written explanations, figures and exercises at your own pace, and is available from Manning and Amazon.
The reasoning model is the engine; the agent harness is the framework that manages context and gives the model tools. That split is described in the Components of a Coding Agent article on Substack.
The author is currently on a short break to regenerate and will be back next month with more LLM research roundups, and the eight sessions stay available in the meantime for any team that would rather see a reasoning model assembled line by line than called through an endpoint. Thanks are owed to everyone who picks up a copy of the companion book or recommends it to a friend, since that support is what keeps these materials coming. Happy viewing and happy tinkering.

Reviewed for ItInsightsWorld by James Hartley, IT Insights · SoftwareDevelopment.