2021-11-10 18:00:16 -08:00
|
|
|
base_image: "anyscale/ray:nightly-py37"
|
2021-06-16 21:37:17 +01:00
|
|
|
env_vars: {}
|
2021-11-18 11:51:46 -08:00
|
|
|
|
2021-06-16 21:37:17 +01:00
|
|
|
debian_packages:
|
|
|
|
- curl
|
2021-06-28 10:01:55 -07:00
|
|
|
- unzip
|
2021-06-16 21:37:17 +01:00
|
|
|
|
|
|
|
python:
|
|
|
|
pip_packages:
|
2021-11-10 18:00:16 -08:00
|
|
|
- gym[atari]
|
|
|
|
- pytest
|
|
|
|
- tensorflow
|
2021-06-16 21:37:17 +01:00
|
|
|
conda_packages: []
|
|
|
|
|
|
|
|
post_build_cmds:
|
2021-07-20 17:03:14 -07:00
|
|
|
- 'rm -r wrk || true && git clone https://github.com/wg/wrk.git /tmp/wrk && cd /tmp/wrk && make -j && sudo cp wrk /usr/local/bin'
|
2021-11-04 13:38:05 -07:00
|
|
|
- pip3 install pytest || true
|
[RLlib] Upgrade gym version to 0.21 and deprecate pendulum-v0. (#19535)
* Fix QMix, SAC, and MADDPA too.
* Unpin gym and deprecate pendulum v0
Many tests in rllib depended on pendulum v0,
however in gym 0.21, pendulum v0 was deprecated
in favor of pendulum v1. This may change reward
thresholds, so will have to potentially rerun
all of the pendulum v1 benchmarks, or use another
environment in favor. The same applies to frozen
lake v0 and frozen lake v1
Lastly, all of the RLlib tests and have
been moved to python 3.7
* Add gym installation based on python version.
Pin python<= 3.6 to gym 0.19 due to install
issues with atari roms in gym 0.20
* Reformatting
* Fixing tests
* Move atari-py install conditional to req.txt
* migrate to new ale install method
* Fix QMix, SAC, and MADDPA too.
* Unpin gym and deprecate pendulum v0
Many tests in rllib depended on pendulum v0,
however in gym 0.21, pendulum v0 was deprecated
in favor of pendulum v1. This may change reward
thresholds, so will have to potentially rerun
all of the pendulum v1 benchmarks, or use another
environment in favor. The same applies to frozen
lake v0 and frozen lake v1
Lastly, all of the RLlib tests and have
been moved to python 3.7
* Add gym installation based on python version.
Pin python<= 3.6 to gym 0.19 due to install
issues with atari roms in gym 0.20
Move atari-py install conditional to req.txt
migrate to new ale install method
Make parametric_actions_cartpole return float32 actions/obs
Adding type conversions if obs/actions don't match space
Add utils to make elements match gym space dtypes
Co-authored-by: Jun Gong <jungong@anyscale.com>
Co-authored-by: sven1977 <svenmika1977@gmail.com>
2021-11-03 08:24:00 -07:00
|
|
|
- pip3 install -U ray[all] gym[atari] autorom[accept-rom-license]
|
2021-11-10 18:00:16 -08:00
|
|
|
- pip3 install ray[all]
|
2021-11-18 11:51:46 -08:00
|
|
|
# TODO (Alex): Ideally we would install all the dependencies from the new
|
|
|
|
# version too, but pip won't be able to find the new version of ray-cpp.
|
2021-12-17 16:25:15 -08:00
|
|
|
- pip3 uninstall ray -y && pip3 install -U {{ env["RAY_WHEELS"] | default("ray") }}
|
2021-09-10 17:50:31 +01:00
|
|
|
- {{ env["RAY_WHEELS_SANITY_CHECK"] | default("echo No Ray wheels sanity check") }}
|