Giter VIP home page Giter VIP logo

Comments (10)

ShengcaiLiao avatar ShengcaiLiao commented on May 31, 2024

What is the GPU card you used? I was using V100 with 32GB memory without issues, but I did not check those with lower memory. You can try lower the batch size, --num_trans_layers, --dim_feedforward, and --neck.

from transmatcher.

haithanhp avatar haithanhp commented on May 31, 2024

I used 8 GPUs of V-100 Tesla 16GB but when I set to batch_size of 8, it still has an out-of-memory error.

from transmatcher.

ShengcaiLiao avatar ShengcaiLiao commented on May 31, 2024

I used only one V100, with a batch size of 64. It seems that you should be able to run it with batch size of 8 in one of your GPU.

from transmatcher.

haithanhp avatar haithanhp commented on May 31, 2024

How many GB memory for your V100? Is it 32 GB? I just have 16GB and it says that 9.0 GB is required.

from transmatcher.

ShengcaiLiao avatar ShengcaiLiao commented on May 31, 2024

Yes, as I said, 32GB.

from transmatcher.

haithanhp avatar haithanhp commented on May 31, 2024

I see. So, we are unable to run the code with lower memory even multiple GPUs and small batch size. But it is weird that the efficient model can not be trained with batch size of 1. Could you show me where to update the code to make it run with lower memory? Thanks

from transmatcher.

ShengcaiLiao avatar ShengcaiLiao commented on May 31, 2024

I'm not sure. I still feel strange that you cannot run the code with batch size of 8 in one V100 (16GB), since I'm able to run with batch size of 64 in one V100 (32GB). Did you try one GPU?

For further suggestions, please see the below.

What is the GPU card you used? I was using V100 with 32GB memory without issues, but I did not check those with lower memory. You can try lower the batch size, --num_trans_layers, --dim_feedforward, and --neck.

from transmatcher.

ArminLee avatar ArminLee commented on May 31, 2024

I have encountered this issue and it seems that you need to change the test_batch smaller. Because the default size of the test batch is 256.

from transmatcher.

ShengcaiLiao avatar ShengcaiLiao commented on May 31, 2024

Thanks. Yes, could be this reason. I thought @haithanhp encountered this during training.

from transmatcher.

haithanhp avatar haithanhp commented on May 31, 2024

Thanks for your help. I used the server with larger GPU memory. So, the issue is no longer there.

from transmatcher.

Related Issues (7)

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.