Module 1 · From characters to vectors

What is actually inside a model you download

In this lesson

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

This chapter’s goalTrace a piece of text from characters to token ids to vectors and back to a score for every possible next token, predict where a tokenizer will split unfamiliar input, and count the parameters of a model from four numbers on its config page.

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 8Free · no account needed
Lesson steps

Download one and look

Nothing demystifies this faster than fetching a small open-weights model and listing the folder. A typical one contains:

Text
config.json                 2 KB     the four numbers from the last lesson, and more
model-00001-of-00004.safetensors   4.9 GB   the weights
model-00002-of-00004.safetensors   4.9 GB
model.safetensors.index.json       25 KB    which tensor lives in which shard
tokenizer.json              9 MB     the vocabulary and merge rules
tokenizer_config.json       50 KB    special tokens, and the chat template
generation_config.json      200 B    default temperature, stop tokens

That is the whole artefact. Two observations follow immediately.

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 AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘What is actually inside a model you download’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/what-is-in-a-model-file (Accessed: 27 November 2026).