app_config.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. base_image: {{ env["RAY_IMAGE_ML_NIGHTLY_GPU"] | default("anyscale/ray-ml:nightly-py37-gpu") }}
  2. env_vars: {}
  3. debian_packages:
  4. - curl
  5. python:
  6. pip_packages:
  7. - pytest
  8. - awscli
  9. - cupy-cuda113
  10. - numpy==1.21.0
  11. - protobuf==3.20.0
  12. conda_packages: []
  13. post_build_cmds:
  14. # Install nightly wheel.
  15. - pip3 install --upgrade pip
  16. # Install Alpa from source for now.
  17. # TODO(jungong) : pip install alpa after next release.
  18. - git clone https://github.com/alpa-projects/alpa.git
  19. - pip3 install -e alpa
  20. - pip3 install -e alpa/examples
  21. # Install custom built jaxlib.
  22. - pip install jaxlib==0.3.22+cuda113.cudnn820 -f https://alpa-projects.github.io/wheels.html
  23. # Install nvidia dependencies.
  24. - pip3 install --no-cache-dir nvidia-pyindex
  25. - pip3 install --no-cache-dir nvidia-tensorrt==7.2.3.4
  26. # Huggingface transformers.
  27. # TODO(jungong) : bring llm_serving up to date with latest transforemrs library.
  28. - pip install -U transformers==4.23.1
  29. - pip install -U accelerate
  30. # Install testing wheel after Alpa dependencies, since Alpa's setup.py requires
  31. # Ray 2.1.0 right now, and would have overridden the installed version if this
  32. # order is reversed.
  33. - pip3 uninstall ray -y || true && pip3 install -U {{ env["RAY_WHEELS"] | default("ray") }}
  34. # Sanity check.
  35. - {{ env["RAY_WHEELS_SANITY_CHECK"] | default("echo No Ray wheels sanity check") }}