Giter Club home page Giter Club logo

Comments (3)

daniel-kukiela avatar daniel-kukiela commented on September 25, 2024

12 seconds per step is a pretty big value, are you sure you're doing that training using GPU(s)? You should have tensorflow-gpu installed, not tensorflow.
Also, to utilize all 3 GPUs (won't give you much speed improvement tho) add num_gpus = 3 into hparams section of setup/settings.py

Your duration per step will not change when you increase number of paird in training set. Overall training time will increase. You can calculate how many steps do you need to train for a full epoch by dividing number of pairs by batch_size (128 by default). Also with newer version of code you'll be informed about that (green messages).

from nmt-chatbot.

tolotrasamuel avatar tolotrasamuel commented on September 25, 2024

I tried to put num_gpus = 3 in hparams as a propriety for the dictionary. However, I noticed that only 2 gpu are being used
image
As you can one the screenshot above, the 3rd GPU is not used at all. GPU0 is used at around 60% on average and GPU1 is at 100%.
Why aren't all of them used at 100% ? I made sure however to set num_gpus = 3

from nmt-chatbot.

daniel-kukiela avatar daniel-kukiela commented on September 25, 2024

As far as i know, NMT places different layers on different GPUs. If you are using only 2 layers, that might explain it.
By NMT i mean https://github.com/tensorflow/nmt - we are including that in our project. If you want to know more about how to utilize multiple GPUs, it's better to ask there. If you are going to do that, please point me to that topic, so i could learned as well how exactly it's done.

from nmt-chatbot.

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.