-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add image build details and examples for multi-host inference (#278)
Add downstream details to support multi-host infer
- Loading branch information
Showing
3 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
apiVersion: orchestration.aibrix.ai/v1alpha1 | ||
kind: RayClusterFleet | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: aibrix | ||
app.kubernetes.io/managed-by: kustomize | ||
name: facebook-opt-13b | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
models.aibricks.ai: facebook-opt-13b | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
models.aibricks.ai: facebook-opt-13b | ||
annotations: | ||
ray.io/overwrite-container-cmd: "true" | ||
spec: | ||
rayVersion: '2.10.0' # should match the Ray version in the image of the containers | ||
headGroupSpec: | ||
rayStartParams: | ||
dashboard-host: '0.0.0.0' | ||
template: | ||
spec: | ||
containers: | ||
- name: ray-head | ||
image: rayproject/ray:2.10.0 | ||
ports: | ||
- containerPort: 6379 | ||
name: gcs-server | ||
- containerPort: 8265 | ||
name: dashboard | ||
- containerPort: 10001 | ||
name: client | ||
- containerPort: 8000 | ||
name: service | ||
command: ["/bin/bash", "-lc", "--"] | ||
args: ["ulimit -n 65536; echo head; $KUBERAY_GEN_RAY_START_CMD"; vllm serve facebook/opt-125m --tensor-parallel-size 2 --distributed-executor-backend ray] | ||
resources: | ||
limits: | ||
cpu: "1000m" | ||
nvidia.com/gpu: 1 | ||
requests: | ||
cpu: "200m" | ||
nvidia.com/gpu: 1 | ||
workerGroupSpecs: | ||
# the pod replicas in this group typed worker | ||
- replicas: 1 | ||
minReplicas: 1 | ||
maxReplicas: 5 | ||
groupName: small-group | ||
rayStartParams: {} | ||
template: | ||
spec: | ||
containers: | ||
- name: ray-worker # must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc' | ||
image: rayproject/ray:2.10.0 | ||
lifecycle: | ||
preStop: | ||
exec: | ||
command: [ "/bin/sh","-c","ray stop" ] | ||
resources: | ||
limits: | ||
cpu: "1000m" | ||
nvidia.com/gpu: 1 | ||
requests: | ||
cpu: "200m" | ||
nvidia.com/gpu: 1 |