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

Update pettingzoo stable-baselines3 training script & compatibility wrapper #117

Closed
wants to merge 0 commits into from

Conversation

elliottower
Copy link
Contributor

I've updated the pettingzoo stable-baselines3 (SB3) training script to work with the current pettingzoo API and use gymnasium rather than gym. I had to restructureexamples/pettingzoo/utils.py but it now aligns better with other pettingzoo compatibility wrappers. I'm currently working on creating a PR in https://github.com/Farama-Foundation/Shimmy so that the conversion code can be more easily found and better documented. This will remove the need for utils.py, but I am keeping it as a placeholder for now.

Note that this relies on a feature branch of SB3 which is not yet merged: DLR-RM/stable-baselines3#1327
This also relies on a PR of supersuit which is not yet merged: Farama-Foundation/SuperSuit#206

Once those two are merged I can update requirements.txt to reflect it, and/or modify install_extras.sh to include stable-baselines3 and supersuit.

@elliottower
Copy link
Contributor Author

Note: this PR will be updated to use shimmy rather than utils.py once Farama-Foundation/Shimmy#39 is merged. I am thinking it's probably best to also do a separate tutorial file (or other documentation) to demonstrate using melting pot with pettingzoo (using shimmy), and either mark that the SB3 tutorial is not currently working, or wait on merging this PR until SB3 is updated to support the updated gymnasium API (see DLR-RM/stable-baselines3#780)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant