PettingZoo icon indicating copy to clipboard operation
PettingZoo copied to clipboard

[Bug Report] Pistonball Tutorial with Ray RLLib does not support local_dir parameter

Open kuds opened this issue 5 months ago • 0 comments

Describe the bug

When trying to execute the tutorial for RLlib: PPO for Pistonball, the tune object errors out because RLLib has depecrated the local_dir parameter and needs to be switched to storage_path. I know that the tutorial says to use RLIib version 2.7.0, but the latest version is now 2.35.0. Should the tutorial be updated to reflect the new parameter set for tune? If so, I can submit a pull request to update the tutorial.

/python/ray/tune/tune.py image

Code example

tune.run(
   "PPO",
   name="PPO",
   stop={"timesteps_total": 5000000 if not os.environ.get("CI") else 50000},
   checkpoint_freq=10,
   local_dir="~/ray_results/" + env_name,
   config=config.to_dict(),
)

System info

Python Version: 3.10.12 Torch Version: 2.4.0+cu121 Cuda Version: 12.1 Gymnasium Version: 0.28.1 PettingZoo Version: 1.24.3 Ray Version: 2.35.0

Additional context

No response

Checklist

  • [X] I have checked that there is no similar issue in the repo

kuds avatar Sep 14 '24 03:09 kuds