Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

LLMs for Engineers

Free · sign in to start and track progress

1 · Inside the transformer

  • 1Tokens and embeddings
  • 2Attention, step by step
  • 3The transformer block

2 · How models are trained

  • 4Pretraining and scaling laws
  • 5Post-training an assistant

3 · Running models in production

  • 6Sampling and hallucination
  • 7Context windows, KV cache and caching
  • 8Reasoning models and extended thinking

    Exercise answers

    • Answer: Run an effort sweep on conveyancing calculations
    • Answer: Self-consistency versus more thinking
  • 9Choosing and comparing models
CapstoneChoose a model for document extractionReference implementation

Module 3 · Running models in production · Lesson 8

Reasoning models and extended thinking

Why letting a model generate tokens before it answers makes it smarter, how reinforcement learning taught models to think at length, and how to control, pay for and trust extended thinking in Claude.

70 min 2 videos 3 exercises 6-question quiz Answers
Setup for the exercises:Install Claude CodePython with uv

By the end of this lesson you can

  • Explain why intermediate tokens add computation a single forward pass cannot provide
  • Describe test-time compute scaling (chain of thought, self-consistency, learned long reasoning) and the evidence for it
  • Explain how RL with verifiable rewards produced reasoning models such as DeepSeek-R1
  • Configure Claude's adaptive thinking and effort, and account for thinking tokens in cost, latency and caching
  • Decide from marginal-cost arithmetic when a higher effort level is worth paying for

On this page

  • Why generating tokens adds intelligence
  • Test-time compute as a scaling axis
  • How models learned to think at length
  • Extended thinking in Claude
  • Worked example: is more effort worth it?
  • Can you trust what the model says it thought?
  • When to use a reasoning-heavy setting
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Why generating tokens adds intelligence
  2. 02Test-time compute as a scaling axis
  3. 03How models learned to think at length
  4. 04Extended thinking in Claude
  5. 05Worked example: is more effort worth it?
  6. 06Can you trust what the model says it thought?
  7. 07When to use a reasoning-heavy setting
  8. 08Summary

Sources & further reading

  • DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement LearningPaper · DeepSeek-AI · DeepSeek · 2025The open account of training a reasoning model with large-scale RL, including R1-Zero, trained without supervised reasoning traces. Read the abstract and the R1-Zero results on emergent self-verification.
  • Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model ParametersPaper · Snell, Lee, Xu, Kumar · Google DeepMind and UC Berkeley · 2024The systematic study of how to spend inference compute, and when it beats a bigger model. Read the abstract and Section 1.
  • Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsPaper · Wei et al. · Google · 2022The paper that showed asking for intermediate steps improves multi-step reasoning in large models.
  • Self-Consistency Improves Chain of Thought Reasoning in Language ModelsPaper · Wang et al. · Google · 2023Sample several reasoning paths and take a majority vote over final answers; the simplest parallel form of test-time compute.
  • Reasoning Models Don't Always Say What They ThinkPaper · Chen et al. · Anthropic · 2025Measures whether reasoning traces reveal the hints models actually used. Essential before you treat thinking as an audit trail.
  • s1: Simple test-time scalingPaper · Muennighoff et al. · Stanford · 2025Shows that a small fine-tuning set plus "budget forcing" yields test-time scaling, a useful minimal model of what reasoning models do.
  • Steering thinking (Claude API docs)Docs · AnthropicAdaptive thinking, effort levels, how thinking interacts with caching and max_tokens, and how thinking is billed.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 8 more sections
  • 3 hands-on exercises
  • A 6-question quiz
  • Progress, quiz scores and bookmarks