Fine-Tuning, and When Not ToLesson 46 of 84

Module 5 · Objectives beyond next-token prediction

Continued pretraining on raw text

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 8 of 9 in this chapter

This chapter’s goalChoose between supervised fine-tuning, a preference method such as DPO or KTO, a verifiable-reward method such as GRPO, and continued pretraining, and state the data each needs, the memory each costs, and the way each is gamed.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

A different objective on different data

Everything else in this course trains on instruction-shaped examples with the prompt masked. Continued pretraining does neither. It trains on raw text (documents, transcripts, code, books) with loss on every token, exactly as the original pretraining did.

The purpose is different too. Instruction tuning teaches a model how to behave. Continued pretraining teaches it a domain: the vocabulary, the register, the statistical texture of a body of writing it has seen little of.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Running Models Yourself exam.

Stuck on something?Ask Rafael, your AI tutor

Previous lesson: Reward hacking

How to cite: Addaly (2026) ‘Continued pretraining on raw text’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/continued-pretraining (Accessed: 29 November 2026).