Repository navigation
|
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? |
Replies: 1 comment 3 replies
|
Did you try return_contacts=False ? |

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.