GithubHelp home page GithubHelp logo

Running speed about async_deep_reinforce HOT 5 OPEN

miyosuda avatar miyosuda commented on June 1, 2024
Running speed

from async_deep_reinforce.

Comments (5)

miyosuda avatar miyosuda commented on June 1, 2024

How can you get the result that says it runs 472 steps per sec with 8 threads on CPU?
I've just run a3c.py code without any option on Core i7 6700 machine.

4.6 million steps in 11hours seems too slow.
Could you tell me cpu usage % of each CPU when you run gym branch?
If CPU usage is too low (like 10% or 20%), something in my program might have problem.

When @joabim tried 24 threads 3 months ago, cpu usage was around 80~85%.
#1 (comment)

I've also merged performance log code to gym branch to show global steps per sec. (Thanks @Itsukara )

from async_deep_reinforce.

tokb23 avatar tokb23 commented on June 1, 2024

Thank you for your replay!

I don't know if I can check the CPU usage of each CPU on AWS, but I checked the average CPU utilization.
2016-08-08 14 13 23

And I ran your code again with 36 threads on AWS to see the performance, one of the examples is below.
### Performance : 287344 STEPS in 1797 sec. 160 STEPS/sec. 0.58M STEPS/hour 180 STEPS/sec
It's obviously so slow.

When @joabim tried 24 threads 3 months ago, cpu usage was around 80~85%.

Yeah, I saw it. It seems fine even though it's using threading instead of multiprocessing. That's why I was wondering why...

FYI, the comment in this post (http://stackoverflow.com/questions/34419645/asynchronous-computation-in-tensorflow) said that it's okay to use threading with TensorFlow.

from async_deep_reinforce.

miyosuda avatar miyosuda commented on June 1, 2024

@TatsuyaOkubo Thank you for reporting performance on AWS environment. 160 steps/sec is too slow. I have been thinking about this performance decrease.

In my program, all of the computational nodes are explicitly located on "cpu:0".
I'm not familiar with AWS environment, but if AWS treats each virtual CPU as different CPU, not like virtual cores in single CPU in our desktop PC, we might need to locate each network on "cpu:0", "cpu:1", .... so on.
I'm not sure whether this is correct of not.

By the way, muupan's chainer implementation seems working fine on AWS environment, so it might help.

https://github.com/muupan/async-rl

from async_deep_reinforce.

tokb23 avatar tokb23 commented on June 1, 2024

I tried doing what you suggested, but it didn't work.
I also tried running the code without explicitly defining the device (cpu:0), but it didn't work.

Actually I was also referring to his implementation, but I still didn't come up with any ideas.
I'll keep trying to find a way to fix this problem.

from async_deep_reinforce.

miyosuda avatar miyosuda commented on June 1, 2024

@TatsuyaOkubo I see. Sorry about that. Please let me know if you fix the way to fix this.

from async_deep_reinforce.

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.