Skip to content
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

ImportError: cannot import name 'top_k_top_p_filtering' from 'transformers' #25

Open
gabriel-gubert opened this issue Nov 26, 2024 · 0 comments

Comments

@gabriel-gubert
Copy link

Starting from transformers>=4.39.0, the top_k_top_p_filtering method is DEPRECATED. transformers<4.39.0 has this method. However, for transformers<4.39.0, one gets "ValueError: The checkpoint you are trying to load has model type starcoder2 but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant