Skip to content

Implement VRAM reclaim like CUDA.jl do? #1919

@XLin0mu

Description

@XLin0mu

My situation is estimating different model architectures in a continuous REPL Main context to see their performance on tasks.

While using Reactant+Enzyme, GC.gc() won't work for reducing VRAM usage, and I have to restart whole julia REPL to release used VRAM. But LuxCUDA+Zygote allowing me to execute GC.gc(); CUDA.reclaim() for releasing VRAM instantly.

Is that possible to implement or not? Or else, is there any other methods to solve this, like explicitly marking object cleanable manually?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions