Giter Site home page Giter Site logo

GPU OOM when pretraining about meter HOT 3 CLOSED

hi-zhenyu avatar hi-zhenyu commented on August 15, 2024
GPU OOM when pretraining

from meter.

Comments (3)

zdou0830 avatar zdou0830 commented on August 15, 2024

Hello, you may need to tune per_gpu_batch_size based on your GPUs.

I set precision to 32 because using mixed-precision training can sometimes cause the NaN issue.

from meter.

hi-zhenyu avatar hi-zhenyu commented on August 15, 2024

Hi, thanks for your reply.

In the paper, you said it takes around 8 days for METER-SwinBASE and METER-CLIP-ViTBASE−16 for training 100k steps on 8 A100 GPUs. However, in my experiments, it obviously needs more time for training, especially the per_gpu_batch_size need to be reduced due to the OOM problem (<32).

So could you please give me some advice to speed up training like the paper statement (~8 days with 8 A100 GPUs).

from meter.

zdou0830 avatar zdou0830 commented on August 15, 2024

Hi, I think you can try reducing the GPU memory usage by setting the precision to 16, using a smaller max_text_len, etc. Training the models for ~50k steps should also give you a decent performance.

from meter.

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.