From 86fd6e2be12b23727ce1e30977a60635d325a10b Mon Sep 17 00:00:00 2001 From: Kaifeng Wang <3692884+kaifeng@users.noreply.github.com> Date: Sat, 1 Nov 2025 10:50:23 +0800 Subject: [PATCH] Update reference to model state dictionary file Fix the saved model filename reference. --- chapters/en/chapter2/3.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/en/chapter2/3.mdx b/chapters/en/chapter2/3.mdx index cf6309eb1..463322861 100644 --- a/chapters/en/chapter2/3.mdx +++ b/chapters/en/chapter2/3.mdx @@ -51,7 +51,7 @@ config.json model.safetensors If you look inside the *config.json* file, you'll see all the necessary attributes needed to build the model architecture. This file also contains some metadata, such as where the checkpoint originated and what 🤗 Transformers version you were using when you last saved the checkpoint. -The *pytorch_model.safetensors* file is known as the state dictionary; it contains all your model's weights. The two files work together: the configuration file is needed to know about the model architecture, while the model weights are the parameters of the model. +The *model.safetensors* file is known as the state dictionary; it contains all your model's weights. The two files work together: the configuration file is needed to know about the model architecture, while the model weights are the parameters of the model. To reuse a saved model, use the `from_pretrained()` method again: