Open pepi99 opened 1 year ago
It's possible that the problem comes from this function in serialization.py (in line 209) in ray rllib:
def __common(d: Dict):
"""Common updates to the dict before we use it to construct spaces"""
ret = d.copy()
del ret["space"]
if "dtype" in ret:
ret["dtype"] = np.dtype(ret["dtype"])
return ret
The essential problem is that the multi binary space has a dtype, and in the MultiBinary class no dtype argument is expected. I don't know how this dtype is set, and from where.
I did a temporary solution (in serializaiton.py), should I commit a fix and link it to this issue?
Could you check if your issue is related to https://github.com/ray-project/ray/pull/34762? If it is the same thing, then installing the new 2.5.0 release should fix the issue. If not, then please submit a PR with your fix. Thanks!
Error:
Versions / Dependencies
ray==2.4.0 gymnasium==0.28.1
Reproduction script
model = Algorithm.from_checkpoint('path_to_model_dir')
Issue Severity
High: It blocks me from completing my task.