I have problem with rllib in ray container. I try to run container with the command line:
docker run --name ray-server -it --gpus all rayproject/ray:a90150-py38-gpu rllib train --run DQN --env CartPole-v0 --config ‘{“framework”: “tf2”, “eager_tracing”: true, “num_workers”: 7, “num_gpus”: 1}’
The error is:
JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
I think there is some problem with single and double quotas ’ or " in the command.
I will be grateful for any suggestions.
arturn
December 13, 2022, 9:32pm
2
You can resolve this issue by appending --stop ‘{}’ for now because you are missing a (possibly empty) stop condition. Sorry for the error lacking verbosity and thanks a lot for reporting this! Doing a PR right now…
arturn
December 13, 2022, 10:09pm
3
@Peter_Pirog incase you want to track this:
ray-project:master
← ArturNiederfahrenhorst:fixclibehavior
opened 10:08PM - 13 Dec 22 UTC
Signed-off-by: Artur Niederfahrenhorst <artur@anyscale.com>
## Why are these … changes needed?
We have lots of examples inside RLlib of running ray CLI similar to `rllib train --env ... --config ...` that lack a stopping condition.
They error out with the following message.
<img width="705" alt="Screenshot 2022-12-13 at 23 06 18" src="https://user-images.githubusercontent.com/9356806/207454214-f86af816-5406-4dc8-b5e7-cec9e3aafdd0.png">
1. We should not error out, since a workflow to be expected from us is to quickly start an experiment from CLI, observe it and cancel it manually without caring for stopping condidations.
2. The error is not informative. Running experiments "forever" can be costly so we should at least log that this experiment will not stop and how to change that.
## Related issue number
https://discuss.ray.io/t/problem-with-rllib-configuration-by-command-line/8624
## Checks
- [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR.
- [x] I've run `scripts/format.sh` to lint the changes in this PR.
- [ ] I've included any doc changes needed for https://docs.ray.io/en/master/.
- [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
- Testing Strategy
- [ ] Unit tests
- [ ] Release tests
- [ ] This PR is not tested :(
@arturn Thank you for the link
1 Like