esm
esm copied to clipboard
Disable return all hidden states to reduce gpu memory use
I found that using default parameters for inference resulted in abnormally high GPU memory usage. To fix this problem, I added a parameter return_hidden_states = False to control whether to return all hidden states by default.
Can you default it to True for backwards compatibility @heya5 ?