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

raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") AttributeError: 'SentenceTransformer' object has no attribute 'model_body' #2942

Open
Keven-Don opened this issue Sep 18, 2024 · 1 comment

Comments

@Keven-Don
Copy link

I had meet some erros, at begin I think maybe I download the model wrongly, then I redo download but the errors still exist,my python version == 3.11.7 and sentence-transformers ==2.31.0, my transformers version == 4.44.2 , jesus crisp, you guys know how to fix it?

@tomaarsen
Copy link
Collaborator

Hello!

model_body does not exist in Sentence Transformers: https://github.com/search?q=repo%3AUKPLab%2Fsentence-transformers%20model_body&type=code
Are you perhaps using SetFit? Could you share a snippet of code to reproduce the issue? Also, 2.31.0 is not a Sentence Transformers version that exists. The highest 2.* version is 2.7.0. https://pypi.org/project/sentence-transformers/#history

  • Tom Aarsen

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

2 participants