2022-05-17 17:03:12 +01:00
|
|
|
base_image: {{ env["RAY_IMAGE_NIGHTLY_CPU"] | default("anyscale/ray:nightly-py37") }}
|
2021-07-14 09:38:55 +02:00
|
|
|
env_vars: {}
|
|
|
|
debian_packages:
|
|
|
|
- curl
|
|
|
|
|
|
|
|
python:
|
|
|
|
pip_packages:
|
|
|
|
- pytest
|
|
|
|
- lightgbm_ray
|
|
|
|
- petastorm
|
|
|
|
- tblib
|
|
|
|
conda_packages: []
|
|
|
|
|
|
|
|
post_build_cmds:
|
2021-11-10 18:00:16 -08:00
|
|
|
- pip uninstall -y ray || true
|
2021-07-14 09:38:55 +02:00
|
|
|
- pip3 install -U {{ env["RAY_WHEELS"] | default("ray") }}
|
2022-03-10 08:14:31 +00:00
|
|
|
- pip3 install ray[default] # Needed for Ray Client to work.
|
|
|
|
- pip3 install -U "xgboost<1.5" xgboost_ray petastorm # Install latest releases, pin xgboost to <1.5
|
|
|
|
- {{ env["RAY_WHEELS_SANITY_CHECK"] | default("echo No Ray wheels sanity check") }}
|
2021-07-14 09:38:55 +02:00
|
|
|
- sudo mkdir -p /data || true
|
|
|
|
- sudo chown ray:1000 /data || true
|
|
|
|
- rm -rf /data/classification.parquet || true
|
2022-03-10 08:14:31 +00:00
|
|
|
- curl -o create_test_data.py https://raw.githubusercontent.com/ray-project/ray/releases/1.3.0/release/xgboost_tests/create_test_data.py
|
2021-07-14 09:38:55 +02:00
|
|
|
- python ./create_test_data.py /data/classification.parquet --seed 1234 --num-rows 1000000 --num-cols 40 --num-partitions 100 --num-classes 2
|