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

ESM, max length issues using ESM-gearnet-serial model #247

Open
gkwlgns323 opened this issue Mar 8, 2024 · 2 comments
Open

ESM, max length issues using ESM-gearnet-serial model #247

gkwlgns323 opened this issue Mar 8, 2024 · 2 comments

Comments

@gkwlgns323
Copy link

Hi I'm using ESM-gearnet model, to get protein representation

but in ESM module there is max_input_length which slice the graph when the protein size is bigger than this threshold

because of this, the "graph node number" and "residue number of representation from ESM" are different.

Is it impossible to get representation from big proteins? (when I set max_input_length bigger, I got out of memory error...)

In this case should I use sliced residue representation and also sliced graph? I'm worried that it will also reduce the performance.

@Oxer11
Copy link
Contributor

Oxer11 commented Mar 8, 2024

Hi, I think the constraint on the protein size is added by ESM actually. I think the best way to deal with big proteins is to get the representations through sliced windows.

@gkwlgns323
Copy link
Author

Thanks for kind answer, using sliced windows will ESM take only front part of the protein? Or is there any way to slice the protein with sliced windows, get representations of each windows, then combine it to achieve the representation of the whole protein?

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