-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'CohereModel' object has no attribute '_prune_heads' #33235
Comments
@saurabhdash2512 Please have a look |
Thanks for your issue @mnauf ! The documentation should be updated, as indeed prune heads is only supported for older models as newer models haven't received this exploration from a research perspective. |
Hey, I’d like to fix this issue. @LysandreJik , you mentioned that the documentation needs updating—could you clarify which specific documentation so I can work on fixing it? |
Can I support prune_heads feature in this model? @LysandreJik @ArthurZucker |
This has been addressed in #33253, so I'm closing the issue - thanks all for offering your help! |
System Info
class
CoherePreTrainedModel
docstring says that "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.)". However, it doesn't haveprune_heads()
methods, even though it explicitly mentions that it has in the docstring.@ArthurZucker
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
I expect the method to prune heads of the cohere model.
The text was updated successfully, but these errors were encountered: