Git Product home page Git Product logo

Comments (3)

Xirid avatar Xirid commented on August 23, 2024

I have the same issue and solved it by just reloading the whole model on every iteration.
Though now I am getting oom due to the memory not freeing after the second epoch, but I guess that is a different issue.

from deepspeed.

tjruwase avatar tjruwase commented on August 23, 2024

@Xirid, please try the following API to free engine memory
https://deepspeed.readthedocs.io/en/latest/zero3.html#gpu-memory-management

from deepspeed.

apToll avatar apToll commented on August 23, 2024

我也遇到了在 for 循环中创建新的数据集和新的训练器,然后调用trainer.train()。
在 for 循环的第一次迭代中,训练工作正常。然而,在第二次迭代中,报错为错误: AttributeError: 'NoneType' object has no attribute 'numel'
尝试释放GPU,但没有用,释放GPU如下:# Free GPU memory consumed by model parameters
ds_engine.empty_partition_cache()

from deepspeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.