From 73a27345d47a5a6e82f4104daffd3fa998668664 Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Tue, 12 Mar 2024 01:43:35 +0800 Subject: [PATCH] Tiny improvement for doc (#29581) * Update add_new_model.md * Update docs/source/en/add_new_model.md Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> --------- Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> --- docs/source/en/add_new_model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/en/add_new_model.md b/docs/source/en/add_new_model.md index 70f7263e33..56436be97f 100644 --- a/docs/source/en/add_new_model.md +++ b/docs/source/en/add_new_model.md @@ -89,8 +89,8 @@ model.config # model has access to its config Similar to the model, the configuration inherits basic serialization and deserialization functionalities from [`PretrainedConfig`]. Note that the configuration and the model are always serialized into two different formats - the model to a *pytorch_model.bin* file and the configuration to a *config.json* file. Calling -[`~PreTrainedModel.save_pretrained`] will automatically call -[`~PretrainedConfig.save_pretrained`], so that both model and configuration are saved. +the model's [`~PreTrainedModel.save_pretrained`] will automatically call +the config's [`~PretrainedConfig.save_pretrained`], so that both model and configuration are saved. ### Code style