[RLlib] params.json
is not a valid JSON file when using PPO
#50051
Labels
bug
Something that is supposed to be working; but isn't
rllib
RLlib related issues
rllib-checkpointing-or-recovery
An issue related to checkpointing/recovering RLlib Trainers.
rllib-oldstack-cleanup
Issues related to cleaning up classes, utilities on the old API stack
What happened + What you expected to happen
Bug: When running a training using the PPO algorithm, the
params.json
file in the experiment directory is not a valid JSON file representing the parameters of the experiment, while the `params.pkl' file is ok because it is the serialization of the PPOConfig object.As an example, I run an experiment with a simple environment using PPO and in the result directory is the content of the
params.json
file:Expected behavior: The `params.json' file should contain a valid JSON representation of the PPOConfig object.
This is a low severity issue because the
params.pkl
is serialized correctly and Ray RLLib uses this file, not the JSON one, when loading from a checkpoint. I have not tried other algorithms. But anyway, the JSON is the only way to have an interoperable, human-readable, Python-version-independent log of the algorithm configuration.Versions / Dependencies
Ubuntu 24.04.1 LTS wit Ray 2.40.0.
Reproduction script
Just run this script and then browse the results directory to find the `params.json' file.
Issue Severity
Low: It annoys or frustrates me.
The text was updated successfully, but these errors were encountered: