Unverified Commit 73a27345 authored by fzyzcjy's avatar fzyzcjy Committed by GitHub
Browse files

Tiny improvement for doc (#29581)



* Update add_new_model.md

* Update docs/source/en/add_new_model.md
Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>

---------
Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
parent b45c0f55
...@@ -89,8 +89,8 @@ model.config # model has access to its config ...@@ -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 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 [`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 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 the model's [`~PreTrainedModel.save_pretrained`] will automatically call
[`~PretrainedConfig.save_pretrained`], so that both model and configuration are saved. the config's [`~PretrainedConfig.save_pretrained`], so that both model and configuration are saved.
### Code style ### Code style
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment