From 3c1d4dfbac964dfc98c83cb30835e9058edecd63 Mon Sep 17 00:00:00 2001 From: Marcel Ambo Ndowah Date: Wed, 25 Jun 2025 15:55:22 +0100 Subject: [PATCH] Fix grammatical error in models documentation (#39019) --- docs/source/en/models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/models.md b/docs/source/en/models.md index fb76f0264b..9f4c612895 100644 --- a/docs/source/en/models.md +++ b/docs/source/en/models.md @@ -18,7 +18,7 @@ rendered properly in your Markdown viewer. Transformers provides many pretrained models that are ready to use with a single line of code. It requires a model class and the [`~PreTrainedModel.from_pretrained`] method. -Call [`~PreTrainedModel.from_pretrained`] to download and load a models weights and configuration stored on the Hugging Face [Hub](https://hf.co/models). +Call [`~PreTrainedModel.from_pretrained`] to download and load a model's weights and configuration stored on the Hugging Face [Hub](https://hf.co/models). > [!TIP] > The [`~PreTrainedModel.from_pretrained`] method loads weights stored in the [safetensors](https://hf.co/docs/safetensors/index) file format if they're available. Traditionally, PyTorch model weights are serialized with the [pickle](https://docs.python.org/3/library/pickle.html) utility which is known to be unsecure. Safetensor files are more secure and faster to load.