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

Unable to download links from the page #30

Open
SuryaBalaji97 opened this issue May 9, 2024 · 2 comments
Open

Unable to download links from the page #30

SuryaBalaji97 opened this issue May 9, 2024 · 2 comments

Comments

@SuryaBalaji97
Copy link

SuryaBalaji97 commented May 9, 2024

Hi, I am trying to run your pretrained models on my own machine. However, there is some architecture mismatch between the model and the torch version. For example, I tried to use the pfam_lm_lstm2x1024_tied_mb64.sav model to work on the pfam.fasta files but it gives the following error:

AttributeError: 'LSTM' object has no attribute '_flat_weights'. Did you mean: '_all_weights'?

The only suggestion I have received is to downgrade the torch version to 1.3.0, which does not exist. Do you have any updated pretrained models for use?

@SuryaBalaji97
Copy link
Author

Hi, I am trying to run your pretrained models on my own machine. However, there is some architecture mismatch between the model and the torch version. For example, I tried to use the pfam_lm_lstm2x1024_tied_mb64.sav model to work on the pfam.fasta files but it gives the following error:

AttributeError: 'LSTM' object has no attribute '_flat_weights'. Did you mean: '_all_weights'?

The only suggestion I have received is to downgrade the torch version to 1.3.0, which does not exist. Do you have any updated pretrained models for use?

@SuryaBalaji97 SuryaBalaji97 reopened this May 17, 2024
@tbepler
Copy link
Owner

tbepler commented May 18, 2024

You would need to try downgrading pytorch (what version are you using? I'd recommend trying the earliest version you can find, but at least a version <2.0). You could then update the model to a newer version of pytorch by saving the state dict and reloading it with the new pytorch version. You may need to hack the key names in the state dict for this to work. We do not have updated pretrained models.

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