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

way to use ESM3 like ESM2. #33

Closed
rokieplayer20 opened this issue Jul 5, 2024 · 2 comments
Closed

way to use ESM3 like ESM2. #33

rokieplayer20 opened this issue Jul 5, 2024 · 2 comments

Comments

@rokieplayer20
Copy link

rokieplayer20 commented Jul 5, 2024

Thank you for the great model.

Like ESM2 (https://huggingface.co/facebook/esm2_t6_8M_UR50D),
I want to input the protein sequence and turn it into a token and then obtain a tensor (batch size, tokens, channel).

Does the module used like ESM2 have not been released yet?
If there is a way, I would appreciate it if you could show me an example.

@young-su-ko
Copy link

See #2 , I don't know if you can get embeddings in batches but it works for processing one sequence at a time.

@ebetica
Copy link
Contributor

ebetica commented Jul 9, 2024

You might be able to use the raw forward function to accomplish this: https://github.com/evolutionaryscale/esm/blob/main/examples/seqfun_struct.py

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

4 participants