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

How to load the pre-trained Enfromer model? #3

Closed
yzJiang9 opened this issue Feb 23, 2022 · 2 comments
Closed

How to load the pre-trained Enfromer model? #3

yzJiang9 opened this issue Feb 23, 2022 · 2 comments

Comments

@yzJiang9
Copy link

yzJiang9 commented Feb 23, 2022

Hi, I encountered a problem when trying to load the pre-trained enformer model.

from enformer_pytorch import Enformer
model = Enformer.from_pretrained("EleutherAI/enformer-preview")

AttributeError Traceback (most recent call last)
Input In [3], in
1 from enformer_pytorch import Enformer
----> 2 model = Enformer.from_pretrained("EleutherAI/enformer-preview")

AttributeError: type object 'Enformer' has no attribute 'from_pretrained'

@lucidrains
Copy link
Owner

@yzJiang9 hey! if you upgrade to version 0.4, it will be fixed

pip install enformer-pytorch --upgrade

@yzJiang9
Copy link
Author

yzJiang9 commented Feb 23, 2022

I will definitely give it a try... I installed the package like one month ago.

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