Skip to content

Commit d8c68c9

Browse files
bveeramanijustinvyu
authored andcommitted
[Data] Update data ingest release tests (ray-project#49406)
Signed-off-by: Balaji Veeramani <[email protected]>
1 parent a242b93 commit d8c68c9

10 files changed

+119
-351
lines changed

release/nightly_tests/dataset/autoscaling_gpu_compute.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ advanced_configurations_json:
88

99
head_node_type:
1010
name: head-node
11-
instance_type: m5.2xlarge
11+
# Use a GPU head node so we can test `iter_torch_batches` with `device='cuda'`.
12+
# We use the same number of vCPUs and memory as the default m5.2xlarge head node.
13+
instance_type: g4dn.2xlarge
1214
resources:
1315
cpu: 0
1416

1517
worker_node_types:
1618
- name: worker-node
19+
# Anyscale workspaces use m5.2xlarge worker nodes by default. For consistency, we
20+
# use GPU nodes with the same number of vCPUs and memory.
1721
instance_type: g4dn.2xlarge
1822
min_workers: 0
1923
max_workers: 10

release/nightly_tests/dataset/data_ingest_benchmark.py

-208
This file was deleted.

release/nightly_tests/dataset/data_ingest_benchmark_compute.yaml

-15
This file was deleted.

release/nightly_tests/dataset/data_ingest_benchmark_compute_gce.yaml

-17
This file was deleted.

release/nightly_tests/dataset/data_ingest_benchmark_compute_gpu.yaml

-15
This file was deleted.

release/nightly_tests/dataset/data_ingest_benchmark_compute_gpu_gce.yaml

-17
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
cloud_id: {{env["ANYSCALE_CLOUD_ID"]}}
2+
region: us-west-2
3+
4+
advanced_configurations_json:
5+
IamInstanceProfile: {"Name": "ray-autoscaler-v1"}
6+
7+
head_node_type:
8+
name: head-node
9+
# Default head node type on Anyscale workspaces.
10+
instance_type: m5.2xlarge
11+
resources:
12+
cpu: 0
13+
14+
worker_node_types:
15+
- name: worker-node
16+
# Default worker node type on Anyscale workspaces.
17+
instance_type: m5.2xlarge
18+
min_workers: 10
19+
max_workers: 10
20+
use_spot: false

release/nightly_tests/dataset/read_and_consume_benchmark.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ def consume_fn(ds):
7979

8080
elif args.iter_torch_batches:
8181

82+
# In addition to consuming the data, we also want to test the performance of
83+
# moving data to GPU.
8284
def consume_fn(ds):
83-
for _ in ds.iter_torch_batches():
85+
for _ in ds.iter_torch_batches(device="cuda"):
8486
pass
8587

8688
elif args.to_tf:

0 commit comments

Comments
 (0)