Skip to content
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

Multi-Agent RL with Ray RLlib for large scenario #51

Closed
liaoq-blcr opened this issue Oct 30, 2024 · 3 comments · Fixed by #52
Closed

Multi-Agent RL with Ray RLlib for large scenario #51

liaoq-blcr opened this issue Oct 30, 2024 · 3 comments · Fixed by #52
Assignees
Labels
bug Something isn't working

Comments

@liaoq-blcr
Copy link

Hi Stefan,

Many thanks for the great work!

I tried to customize my own multi-agent environment following the same structure, and found that when the number of agents is large, I got nan reward in the logs and num_env_steps_sampled_lifetime as 0 in results.json. So I tested your "mobile-large-ma-v0" environment, and similarly, I got the same problem -- seems like the sample collection and training for the large scenario do not work for large scenarios. However, with small environment, "mobile-small-ma-v0", everything looks fine with rllib.

Have you experienced something similar? Could you please give some hints? Thank you so much!

│ env_runners/episode_len_mean nan │
│ env_runners/episode_return_mean nan │
│ num_env_steps_sampled_lifetime 0 │

@stefanbschneider stefanbschneider self-assigned this Nov 2, 2024
@stefanbschneider stefanbschneider added the bug Something isn't working label Nov 9, 2024
@stefanbschneider
Copy link
Owner

stefanbschneider commented Nov 9, 2024

Hi @liaoq-blcr ,

Thanks for using mobile-env and reporting the issue. I tried to look into it and can reproduce the behavior that no episodes or steps are logged when switching from the small to the large multi-agent environment.

I don't really understand where this difference comes from myself. I hope to find more time to look into this and will update you if I find something.

Vice versa, if you find out what the cause is in the meantime, please let me know / post it here. Thanks!

@stefanbschneider
Copy link
Owner

@liaoq-blcr Could you try if the issue still persists with the latest version of mobile-env (2.0.2) and Ray? I just merged a PR to update some stuff, including the Ray RLlib notebook. Now, I don't see the issue with the large environment anymore.

@liaoq-blcr
Copy link
Author

@liaoq-blcr Could you try if the issue still persists with the latest version of mobile-env (2.0.2) and Ray? I just merged a PR to update some stuff, including the Ray RLlib notebook. Now, I don't see the issue with the large environment anymore.

Hi Stefan, thank you so much! it works now also for the large environment. Many thanks for solving the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants