Fixed docstring for cohere model regarding unavailability of prune_he… (#33253)

* Fixed docstring for cohere model regarding unavailability of prune_head() methods

The docstring mentions that cohere model supports prune_heads() methods. I have fixed the docstring by explicitly mentioning that it doesn't support that functionality.

* Update src/transformers/models/cohere/modeling_cohere.py

---------

Co-authored-by: Lysandre Debut <hi@lysand.re>
This commit is contained in:
Muhammad Naufil 2024-09-24 17:27:57 +02:00 committed by GitHub
parent 13749e8edb
commit 6f7d750b73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -725,8 +725,7 @@ class CohereDecoderLayer(nn.Module):
COHERE_START_DOCSTRING = r"""
This model inherits from [`PreTrainedModel`]. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)
library implements for all its model (such as downloading or saving, resizing the input embeddings etc.).
This model is also a PyTorch [torch.nn.Module](https://pytorch.org/docs/stable/nn.html#torch.nn.Module) subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage