-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sven Cattell
committed
Jan 8, 2024
1 parent
ffcf431
commit ca03a2b
Showing
7 changed files
with
135 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
gcloud config set project hoth-410100 | ||
export PROJECT_ID=$(gcloud config get project) | ||
export REGION=asia-east1 | ||
|
||
gcloud container clusters create hoth-demo --location ${REGION} \ | ||
--workload-pool ${PROJECT_ID}.svc.id.goog \ | ||
--enable-image-streaming \ | ||
--node-locations=$REGION-a \ | ||
--workload-pool=${PROJECT_ID}.svc.id.goog \ | ||
--addons GcsFuseCsiDriver \ | ||
--machine-type n2d-standard-4 \ | ||
--num-nodes 1 --min-nodes 1 --max-nodes 5 \ | ||
--ephemeral-storage-local-ssd=count=2 | ||
|
||
|
||
gcloud container node-pools create p100-test --cluster hoth-demo \ | ||
--accelerator type=nvidia-tesla-p100,count=1,gpu-driver-version=latest \ | ||
--machine-type n1-standard-8 \ | ||
--ephemeral-storage-local-ssd=count=1 \ | ||
--enable-autoscaling --enable-image-streaming \ | ||
--num-nodes=0 --min-nodes=0 --max-nodes=20 \ | ||
--node-locations $REGION-a,$REGION-c --region $REGION --spot |
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,44 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: falcon-7b | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: falcon-7b | ||
template: | ||
metadata: | ||
labels: | ||
app: falcon-7b | ||
spec: | ||
containers: | ||
- name: llm | ||
image: ghcr.io/huggingface/text-generation-inference:1.3.4 | ||
resources: | ||
limits: | ||
nvidia.com/gpu: "1" | ||
env: | ||
- name: MODEL_ID | ||
value: OpenAssistant/falcon-7b-sft-top1-696 | ||
- name: NUM_SHARD | ||
value: "1" | ||
- name: PORT | ||
value: "8080" | ||
- name: QUANTIZE | ||
value: bitsandbytes-nf4 | ||
volumeMounts: | ||
- mountPath: /dev/shm | ||
name: dshm | ||
- mountPath: /data | ||
name: data | ||
volumes: | ||
- name: dshm | ||
emptyDir: | ||
medium: Memory | ||
- name: data | ||
emptyDir: {} | ||
nodeSelector: | ||
cloud.google.com/gke-accelerator: nvidia-tesla-p100 | ||
cloud.google.com/gke-ephemeral-storage-local-ssd: "true" | ||
cloud.google.com/gke-spot: "true" |
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,12 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: mistral-service | ||
spec: | ||
selector: | ||
app: mistral-7b | ||
type: ClusterIP | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 8080 |
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,44 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mistral-7b | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mistral-7b | ||
template: | ||
metadata: | ||
labels: | ||
app: mistral-7b | ||
spec: | ||
containers: | ||
- name: llm | ||
image: ghcr.io/huggingface/text-generation-inference:1.3.4 | ||
resources: | ||
limits: | ||
nvidia.com/gpu: "1" | ||
env: | ||
- name: MODEL_ID | ||
value: mistralai/Mistral-7B-Instruct-v0.2 | ||
- name: NUM_SHARD | ||
value: "1" | ||
- name: PORT | ||
value: "8080" | ||
- name: QUANTIZE | ||
value: bitsandbytes-nf4 | ||
volumeMounts: | ||
- mountPath: /dev/shm | ||
name: dshm | ||
- mountPath: /data | ||
name: data | ||
volumes: | ||
- name: dshm | ||
emptyDir: | ||
medium: Memory | ||
- name: data | ||
emptyDir: {} | ||
nodeSelector: | ||
cloud.google.com/gke-accelerator: nvidia-tesla-p100 | ||
cloud.google.com/gke-ephemeral-storage-local-ssd: "true" | ||
cloud.google.com/gke-spot: "true" |
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