-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix Ray CR manifests Signed-off-by: Ryan O'Leary <[email protected]> * update rayjob resources Signed-off-by: Ryan O'Leary <[email protected]> * fix test Signed-off-by: Ryan O'Leary <[email protected]> * fix ray job resources Signed-off-by: Ryan O'Leary <[email protected]> --------- Signed-off-by: Ryan O'Leary <[email protected]>
- Loading branch information
1 parent
047699f
commit 714aea6
Showing
7 changed files
with
190 additions
and
35 deletions.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
ray-operator/config/samples/ray-cluster.tpu-v6e-16-multihost.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
apiVersion: ray.io/v1 | ||
kind: RayCluster | ||
metadata: | ||
name: tpu-ray-cluster | ||
spec: | ||
headGroupSpec: | ||
rayStartParams: {} | ||
template: | ||
spec: | ||
containers: | ||
- name: ray-head | ||
image: rayproject/ray:2.37.0-py310 | ||
imagePullPolicy: IfNotPresent | ||
resources: | ||
limits: | ||
cpu: "8" | ||
memory: 40G | ||
requests: | ||
cpu: "8" | ||
memory: 40G | ||
ports: | ||
- containerPort: 6379 | ||
name: gcs | ||
- containerPort: 8265 | ||
name: dashboard | ||
- containerPort: 10001 | ||
name: client | ||
- containerPort: 8000 | ||
name: serve | ||
- containerPort: 8888 | ||
name: grpc | ||
workerGroupSpecs: | ||
- groupName: tpu-group | ||
replicas: 1 | ||
minReplicas: 0 | ||
maxReplicas: 1 | ||
numOfHosts: 4 | ||
rayStartParams: {} | ||
template: | ||
spec: | ||
securityContext: | ||
runAsUser: 0 | ||
containers: | ||
- name: ray-worker | ||
image: rayproject/ray:2.37.0-py310 | ||
imagePullPolicy: IfNotPresent | ||
resources: | ||
limits: | ||
cpu: "24" | ||
google.com/tpu: "4" | ||
memory: 200G | ||
requests: | ||
cpu: "24" | ||
google.com/tpu: "4" | ||
memory: 200G | ||
env: | ||
- name: NODE_IP | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.hostIP | ||
- name: VBAR_CONTROL_SERVICE_URL | ||
value: $(NODE_IP):8353 | ||
- name: JAX_PLATFORMS | ||
value: tpu,cpu | ||
- name: ENABLE_PJRT_COMPATIBILITY | ||
value: "true" | ||
ports: | ||
- containerPort: 8081 | ||
name: mxla | ||
nodeSelector: | ||
cloud.google.com/gke-tpu-accelerator: tpu-v6e-slice | ||
cloud.google.com/gke-tpu-topology: 4x4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
ray-operator/config/samples/ray-job.tpu-v6e-16-multihost.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
apiVersion: ray.io/v1 | ||
kind: RayJob | ||
metadata: | ||
name: v6e-16-job | ||
spec: | ||
entrypoint: python ray-operator/config/samples/tpu/tpu_list_devices.py | ||
runtimeEnvYAML: | | ||
working_dir: "https://github.com/ray-project/kuberay/archive/master.zip" | ||
pip: | ||
- jax[tpu]==0.4.33 | ||
- -f https://storage.googleapis.com/jax-releases/libtpu_releases.html | ||
rayClusterSpec: | ||
rayVersion: '2.37.0' | ||
headGroupSpec: | ||
rayStartParams: {} | ||
template: | ||
spec: | ||
containers: | ||
- name: ray-head | ||
image: rayproject/ray:2.37.0-py310 | ||
ports: | ||
- containerPort: 6379 | ||
name: gcs-server | ||
- containerPort: 8265 | ||
name: dashboard | ||
- containerPort: 10001 | ||
name: client | ||
- containerPort: 8888 | ||
name: grpc | ||
resources: | ||
limits: | ||
cpu: "8" | ||
memory: 40G | ||
requests: | ||
cpu: "8" | ||
memory: 40G | ||
workerGroupSpecs: | ||
- replicas: 1 | ||
minReplicas: 1 | ||
maxReplicas: 1 | ||
numOfHosts: 4 | ||
groupName: tpu-group | ||
rayStartParams: {} | ||
template: | ||
spec: | ||
securityContext: | ||
runAsUser: 0 | ||
containers: | ||
- name: ray-worker | ||
image: rayproject/ray:2.37.0-py310 | ||
resources: | ||
limits: | ||
cpu: "24" | ||
google.com/tpu: "4" | ||
memory: 200G | ||
requests: | ||
cpu: "24" | ||
google.com/tpu: "4" | ||
memory: 200G | ||
env: | ||
- name: NODE_IP | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.hostIP | ||
- name: VBAR_CONTROL_SERVICE_URL | ||
value: $(NODE_IP):8353 | ||
- name: JAX_PLATFORMS | ||
value: tpu,cpu | ||
- name: ENABLE_PJRT_COMPATIBILITY | ||
value: "true" | ||
ports: | ||
- containerPort: 8081 | ||
name: mxla | ||
nodeSelector: | ||
cloud.google.com/gke-tpu-accelerator: tpu-v6e-slice | ||
cloud.google.com/gke-tpu-topology: 4x4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters