-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTX 30xx compatibility #115
Comments
Thank you for this inquiry. I guess there are several separate issues here. First of all, the most straightforward way to install SF is via PyPI: VizDoom is a separate issue. If you want to replicate the results from the article exactly, you are advised to use the custom fork: If you just want to work with the latest Vizdoom, you should install it from pip normally. I believe some important fixes from doom_bot_project were merged into master Vizdoom as a part of this pull request: Farama-Foundation/ViZDoom#486 Let me know if the multiplayer stuff works with the latest VizDoom from PyPI! If it does not, I can help to debug the issue. |
Also, for 100K FPS, how many CPU cores are you using? |
Thanks for your reply and general advice. I haven't actually tried to run the multi-agent simulations yet because we haven't needed for our project, but it's good to hear that you think it should be generally supported without using your fork. If you have the time I think it would be helpful to update the README.md, because right now it strongly encourages new users to use your environment.yml and vizdoom fork, which isn't viable for people with the newest generation of cards, and doesn't seem strictly necessary. Anyway, running
for half an hour or so resulting in the program spitting out I'll let you know when I get around to trying out the multi-agent simulations, but I'm pretty swamped for the next month, so it'll be a bit of time. Thanks again! |
Sounds good. I think I generally found batch sizes around 2048 to be more
sample efficient, but overall your command line looks okay.
It is also advised to set the num_workers to the number of logical CPU
cores you have.
сб, 16 окт. 2021 г. в 00:47, Sacha Sokoloski ***@***.***>:
… Thanks for your reply. I haven't actually tried to run the multi-agent
simulations yet because we haven't needed for our project, but it's good to
hear that you think it should be generally supported without using your
fork. If you have the time I think it would be helpful to update the
README.md, because right now it strongly encourages new users to use your
environment.yml and vizdoom fork, which isn't viable for people with the
newest generation of cards, and doesn't seem strictly necessary.
Anyway, running
python -m sample_factory.algorithms.appo.train_appo --env=doom_benchmark
--algo=APPO --env_frameskip=4 --use_rnn=True --num_workers=36
--num_envs_per_worker=24 --num_policies=1 --ppo_epochs=1 --rollout=32
--recurrence=32 --batch_size=8192 --wide_aspect_ratio=False
--experiment=doom_5950x_RTX3090_bench --policy_workers_per_policy=2
for half an hour or so resulting in the program spitting out FPS: 100948.4
I'll let you know when I get around to trying out the multi-agent
simulations, but I'm pretty swamped for the next month, so it'll be a bit
of time.
Thanks again!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ6HL2ERW5Y3LK7W5RAWNTUHEUZBANCNFSM5F4VZTIQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
FYI, I tried running the same command with --batch_size=2048 and --num_works=16, and only got FPS: 85642.7 I then tried with --num_works=32 and --batch_size=2048, and got FPS: 101767.2, so a slight boost over what I had before. |
Yes, with smaller batch you can lose some throughput, but you do a lot more
backprop steps within the same amount of time, which can lead to overall
faster convergence.
Optimal batch size greatly depends on the task, but 2048 is what I found to
be good for VizDoom envs.
вс, 17 окт. 2021 г. в 00:04, Sacha Sokoloski ***@***.***>:
… FYI, I tried running the same command with --batch_size=2048 and
--num_works=16, and only got FPS: 85642.7
I then tried with --num_works=32 and --batch_size=2048, and got FPS:
101767.2, so a slight boost over what I had before.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ6HL3A2WKLK4EFRHMOKITUHJYPTANCNFSM5F4VZTIQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Cool, thanks for the tip! |
I updated the README which now recommends installing VizDoom>=1.1.9 from PyPI. Everything works on it including the multi-agent stuff. I still found that my environment.yml gives better performance than starting from an empty conda env and installing sample factory in it. I believe this is due to some performance regressions in the latest versions of MKL or Numpy. So I kept both options for now. Other than performance, everything seems to work with just |
Hello, I was wondering if you could update the environment.yaml file to more recent versions of pytorch and cuda (i.e. 1.9.* and 11.*) to "officially" support RTX 30xx cards.
I have an AMD 5950x and an RTX 3090, and I've been able to get sample-factory running with vizdoom by installing vizdoom with pip in a conda environment and running sample-factory straight from the repository. The performance is great (I'm getting about 100K FPS), but I guess because I'm not using your vizdoom branch I'm locked out of the multi-agent framework. I'm also hoping to rely on sample-factory for a longer-term research project, and I worry that other issues might arise if I have to use it in this "unofficial" way.
Thanks for your hard work. This is an impressive piece of software!
The text was updated successfully, but these errors were encountered: