-
output: I want to use ESM-2 to get the representation of protein sequences, but I only input 4 protein sequences with a length of no more than 1000, and the memory is not enough. Is this normal? How can I reduce memory usage? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Did you try return_contacts=False ? |
Beta Was this translation helpful? Give feedback.
Just change this line
results = model(batch_tokens, repr_layers=[33], return_contacts=True)
as follows.
results = model(batch_tokens, repr_layers=[33], return_contacts=False)
& check that the results are as you expected.