Comments (5)
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.
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.
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.
@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.
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.
@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)
- Problem with compiling the code HOT 1
- Variable net_-1/BasicLSTMCell/Linear/Matrix does not exist, or was not created with tf.get_variable(). HOT 3
- About variable error. HOT 3
- build problems about #cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=OFF . HOT 1
- I can't train with the other games. HOT 4
- Hogwild?
- locking global_t when incrementing? not thread-safe?
- some issues about running it on windows10
- why recalculate pi and v? HOT 1
- I have three issues about A3C-lstm
- Update algorithm works not correct?
- ValueError: Variable net_-1/basic_lstm_cell/weights does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope? HOT 2
- RMRProp and use_locking = False
- code does not work for breakout
- Incorrect policy loss HOT 1
- how do I do inference?
- built environment
- 111
- python code for cartpole problem using q-learning
- Request for a python code for cartpole problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from async_deep_reinforce.