Back to section lessons
Free overview · medium · Lesson 8 of 9

Save and reproduce

See how changing a single vocabulary entry changes the word you read after reloading a model.

A checkpoint is a saved model state that lets you return to training or prediction in another run. Reproducing a result depends on both the weights and the rules that map words to numbers.

A small example

In the first run, index 2 stood for “forest”. In the next run the word at that position is “bridge”. The model can produce the same index while the reader sees a different word. To repeat the original prediction, the checkpoint needs the original vocabulary as well as the weights.

How can you tell that a restore worked?

Before saving, record which word ranks first for a familiar phrase and the score the model assigns to it. Close the program, load the file in a fresh process and submit the same phrase in the same mode. The fresh process starts without the trained weights from the first run in memory.

Matching words alone are a weak check. The same word could rank first with a score of 3.1 or 1.2. If the scores differ substantially, start with the input: did the words receive the same IDs in the same order?

Done reading?

Mark the lesson as read to move your track progress forward.

Now build your own version

Save the weights, vocabulary and configuration. Load the model in a new process and check that its calculations are preserved.

What practice includes and how much it costs

MCP includes the full lesson and a local project with starter files. Work through the task with your agent, ask for a hint and run the checks on your computer.

$134 $67.00 for one year −50%

One payment, no auto-renewal · Terms

Buy for $67.00