app_config.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. base_image: {{ env["RAY_IMAGE_ML_NIGHTLY_GPU"] }}
  2. env_vars: {"LD_LIBRARY_PATH": "$LD_LIBRARY_PATH:/home/ray/.mujoco/mujoco210/bin", "RLLIB_TEST_NO_JAX_IMPORT": "1"}
  3. debian_packages:
  4. - unzip
  5. - zip
  6. # Needed to run MuJoCo with gymnasium.
  7. - libosmesa6-dev
  8. - libgl1-mesa-glx
  9. - libglfw3
  10. - patchelf
  11. # End: MuJoCo.
  12. python:
  13. pip_packages:
  14. # AutoROM downloads ROMs via torrent when they are built. The torrent is unreliable,
  15. # so we built it for py3 and use that instead. This wheel was tested for python 3.7, 3.8,
  16. # and 3.9.
  17. - https://ray-ci-deps-wheels.s3.us-west-2.amazonaws.com/AutoROM.accept_rom_license-0.5.4-py3-none-any.whl
  18. - pytest
  19. conda_packages: []
  20. post_build_cmds:
  21. - pip3 uninstall -y ray || true && pip3 install -U {{ env["RAY_WHEELS"] | default("ray") }}
  22. - {{ env["RAY_WHEELS_SANITY_CHECK"] | default("echo No Ray wheels sanity check") }}
  23. # Clone the rl-experiments repo for offline-RL files.
  24. - git clone https://github.com/ray-project/rl-experiments.git
  25. - unzip rl-experiments/halfcheetah-sac/2022-12-17/halfcheetah_1500_mean_reward_sac.zip -d ~/.
  26. # Uninstall minigrid (it imports matplotlib, which sometimes causes a filelock error).
  27. # We don't need minigrid for the release tests.
  28. - pip3 uninstall -y minigrid
  29. # Install torch.
  30. - pip3 install torch==2.0.0+cu118 torchvision==0.15.1+cu118 --index-url https://download.pytorch.org/whl/cu118
  31. # TODO(sven): remove once nightly image gets gymnasium and the other new dependencies.
  32. - wget https://mujoco.org/download/mujoco210-linux-x86_64.tar.gz
  33. - mkdir ~/.mujoco
  34. - mv mujoco210-linux-x86_64.tar.gz ~/.mujoco/.
  35. - cd ~/.mujoco
  36. - tar -xf ~/.mujoco/mujoco210-linux-x86_64.tar.gz
  37. # not strictly necessary, but makes debugging easier
  38. - git clone https://github.com/ray-project/ray.git