Closed ThomasChen98 closed 1 year ago
Yes, unfortunately we don't use PettingZoo internally, and only just recently we added tests to the (RLLib) examples. It is on my radar to get this updated to Melting Pot 2.0, but if you know Petting Zoo well enough and feel like submitting a pull request with the fix, I'd be happy to review. The changes should be relatively straight-forward. You can base it upon the RLLib change: https://github.com/deepmind/meltingpot/commit/9e473f7eb449ab5dc9335a2fa36dd6fe9fff4f27
Also, parameterising the test like in https://github.com/deepmind/meltingpot/commit/5bb5c48b9ce286f76accc700d344e545a1b863b6 would be good so that it doesn't run for a hard-coded amount of time.
Yes, unfortunately we don't use PettingZoo internally, and only just recently we added tests to the (RLLib) examples. It is on my radar to get this updated to Melting Pot 2.0, but if you know Petting Zoo well enough and feel like submitting a pull request with the fix, I'd be happy to review. The changes should be relatively straight-forward. You can base it upon the RLLib change: 9e473f7
Has Petting Zoo with SB3 example code been tested? The RLLib examples works fine on my side, but the Petting Zoo example (I believe it is not using RLLib, but Stable Baseline 3 instead) is not functioning at this time. The error messages I received suggested that the Melting Pot wrapper for the Petting Zoo may be broken.
No, the example has not been updated to MeltingPot 2.0, that's why I'm linking the changes on RLLib that updated that example to MP 2.0. The PettingZoo & SB3 example was contributed, so I haven't gotten around to updating it.
Now I got it. Thanks for your reply!
I am curious, what do you use internally, RLLib, or is there another way ?
Yes, unfortunately we don't use PettingZoo internally, and only just recently we added tests to the (RLLib) examples. It is on my radar to get this updated to Melting Pot 2.0, but if you know Petting Zoo well enough and feel like submitting a pull request with the fix, I'd be happy to review. The changes should be relatively straight-forward. You can base it upon the RLLib change: 9e473f7
Internally we have our own distributed training system, custom made for MARL.
Hi,
When I tried to run
python3 sb3_train.py
, there were several errors in the original code.The
env_name
here should have two underscores between the environment name and suffix "open", which should becommons_harvest__open
https://github.com/deepmind/meltingpot/blob/bb11b0d999483bccdfb8c3488660b63821e42e50/examples/pettingzoo/sb3_train.py#L86The
__init__
function of the class_MeltingPotPettingZooEnv
uses a wrongbuild
function. I believe it should bebuild_from_config
instead ofbuild
, and the correct argument should beself._env = substrate.build_from_config(self.env_config,roles=self.env_config.default_player_roles)
https://github.com/deepmind/meltingpot/blob/bb11b0d999483bccdfb8c3488660b63821e42e50/examples/pettingzoo/utils.py#L53Even if I fixed mentioned typos, I still got errors as shown below. Any help on this will be appreciated!