Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Add gke bucket yaml #1372

Merged
merged 3 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions ray-operator/config/samples/ray-cluster.gke-bucket.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: ray.io/v1alpha1
kind: RayCluster
metadata:
name: raycluster-mini
spec:
rayVersion: '2.6.3'
headGroupSpec:
rayStartParams:
dashboard-host: '0.0.0.0'
template:
spec:
serviceAccountName: my-ksa
nodeSelector:
iam.gke.io/gke-metadata-server-enabled: "true"
containers:
- name: ray-head
image: rayproject/ray:2.6.3
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 1
memory: 2Gi
ports:
- containerPort: 6379
name: gcs-server
- containerPort: 8265
name: dashboard
- containerPort: 10001
name: client
2 changes: 1 addition & 1 deletion ray-operator/config/samples/ray-job.batch-inference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ data:
class ImageClassifier:
def __init__(self):
# If doing CPU inference, set `device="cpu"` instead.
self.classifier = pipeline("image-classification", model="google/vit-base-patch16-224", device=0) # TODO:archit
self.classifier = pipeline("image-classification", model="google/vit-base-patch16-224", device=0)

def __call__(self, batch: Dict[str, np.ndarray]):
# Convert the numpy array of images into a list of PIL images which is the format the HF pipeline expects.
Expand Down
1 change: 1 addition & 0 deletions tests/test_sample_raycluster_yamls.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
'ray-cluster.autoscaler.large.yaml':
'Skip this test because it requires a lot of resources.',
'ray-cluster-tpu.yaml': 'Skip this test because it requires TPU resources.',
'ray-cluster.gke-bucket.yaml': 'Skip this test because it requires GKE and k8s service accounts.',
}

rs = RuleSet([HeadPodNameRule(), EasyJobRule(), HeadSvcRule()])
Expand Down
Loading