EvoProtGrad icon indicating copy to clipboard operation
EvoProtGrad copied to clipboard

Out of memory issues

Open pemami4911 opened this issue 1 year ago • 0 comments

When using EvoProtGrad with a large number of parallel chains and/or a large pLM, emptying the GPU cache and garbage collection appear to help with OOM issues.

For example, adding

if torch.cuda.is_available():
    torch.cuda.empty_cache()
    gc.collect()

after each sampler step. Needs verification and tests.

pemami4911 avatar Aug 06 '24 03:08 pemami4911