Skip to content

Out of memory issues #9

Description

@pemami4911

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions