Giter Site home page Giter Site logo

Comments (2)

albertz avatar albertz commented on May 24, 2024

How do you measure the GPU memory usage? nvidia-smi will not be helpful here, as TF just takes all the GPU memory, because it uses its own custom memory allocator. You should use tf_log_memory_usage = True, and look at the log output. But even then, TF might behave different depending on the GPU. Maybe search a bit whether other people observe similar behavior, maybe someone reported sth similar in the TF issue tracker.

from returnn-experiments.

akshatdewan avatar akshatdewan commented on May 24, 2024

Ah, okay, thanks!
Yes, I was using nvidia-smi for GPU memory usage.
It makes sense now:
For GTX 1080:
mem_usage:GPU:0: Stats(mean=6.8GB, std_dev=0.0B, min=6.8GB, max=6.8GB, num_seqs=4742, avg_data_len=1)
For V100:
mem_usage:GPU:1: Stats(mean=6.8GB, std_dev=0.0B, min=6.8GB, max=6.8GB, num_seqs=2126, avg_data_len=1)

Thanks a lot!

from returnn-experiments.

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.