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

Feat: Support latest Jumanji version #1134

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

WiemKhlifi
Copy link
Contributor

@WiemKhlifi WiemKhlifi commented Nov 11, 2024

What?

Upgrade to the latest Jumanji version of 1.0.1 instead of 0.3.1 and pin to the original and latest Jumanji and Matrax.

How?

  • Change the requirements.txt to use original versions instead of a fork.
  • Adapt all the wrappers and systems to use cached specs similar to jumanji wrappers and envs.

Extra:

  • Note that this PR will be merged after pushing this PR into jumanji for Connector env updates.
  • Note that in some wrappers, since the specs outputs will be cached, some attributes can't be retrieved if defined after the super().__init__(env) ( The self.__getattr__(env,name) in parent class can't get the attribute from env if it's defined with different name in the env wrapper class).
    For example:
# Should work:
super().__init__(env)
self.time_limit = self._env.time_limit 

# Shouldn't work:
super().__init__(env)
self.time_limit = self._env.max_episode_length

Copy link
Collaborator

@RuanJohn RuanJohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @WiemKhlifi! Just a few questions, but it looks mostly good to me.
As a sanity check can you please do a few test runs to just check that the system performance is unaffected?

mava/configs/env/connector.yaml Show resolved Hide resolved
mava/wrappers/jumanji.py Outdated Show resolved Hide resolved
mava/wrappers/jumanji.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants