Giter Club home page Giter Club logo

Comments (9)

happygirlzt avatar happygirlzt commented on September 25, 2024

Hi @pkuzqh , I've got another issue when running the code.

Screenshot 2022-08-02 at 21 41 50

from recoder.

pkuzqh avatar pkuzqh commented on September 25, 2024

If you want to change the batch size, you need to change the number in the dict "args". If you want to use multiple GPUs, you need to modify "model = nn.DataParallel(model, device_ids=[0, 1])".

from recoder.

happygirlzt avatar happygirlzt commented on September 25, 2024

Hi @pkuzqh, thank you for the reply. The cuda out of memory issue has been resolved. However, I found the new error above. Please kindly suggest, thanks.

from recoder.

pkuzqh avatar pkuzqh commented on September 25, 2024

How many GPUs do you use? And the batch size?

from recoder.

happygirlzt avatar happygirlzt commented on September 25, 2024

3, I indicated in the train() that: device_ids=[1,2,3]
the batch size is 16

from recoder.

pkuzqh avatar pkuzqh commented on September 25, 2024

You need to change the number "4" in line 103-106 to a multiple of 3. And the batch size needs to be a multiple of 3.

from recoder.

happygirlzt avatar happygirlzt commented on September 25, 2024

OK, thank you very much @pkuzqh ! It can now run. However, I saw in the train(), the number of epochs is 100000, for epoch in range(100000): is that true?

from recoder.

happygirlzt avatar happygirlzt commented on September 25, 2024

BTW, for inference, it looks like the testDefect4j.py can only use 1 GPU? Since I have 4 GPUs, only one was used, and it caused an OOM issue.
Screenshot 2022-08-08 at 12 40 19

from recoder.

pkuzqh avatar pkuzqh commented on September 25, 2024

you can use "nn.DataParallel" to use multiple gpus in testDefect4J.py

from recoder.

Related Issues (19)

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.