-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove outdated manifests - replace LoadBalancer by ClusterIP, won't directly access to IP anymore Signed-off-by: jerryzhuang <[email protected]>
- Loading branch information
Showing
24 changed files
with
177 additions
and
86 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 |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: true |
51 changes: 0 additions & 51 deletions
51
presets/workspace/test/manifests/falcon-7b-with-adapter/falcon-7b.yaml
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
type: ClusterIP | ||
publishNotReadyAddresses: true |
13 changes: 13 additions & 0 deletions
13
...workspace/test/manifests/qwen2-5-coder-7b-instruct/qwen2-5-coder-7b-instruct-service.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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: qwen2-5-coder-7b-instruct | ||
spec: | ||
selector: | ||
app: qwen2-5-coder-7b-instruct | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: ClusterIP | ||
publishNotReadyAddresses: true |
55 changes: 55 additions & 0 deletions
55
presets/workspace/test/manifests/qwen2-5-coder-7b-instruct/qwen2-5-coder-7b-instruct_hf.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,55 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: qwen2-5-coder-7b-instruct | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: qwen2-5-coder-7b-instruct | ||
template: | ||
metadata: | ||
labels: | ||
app: qwen2-5-coder-7b-instruct | ||
spec: | ||
containers: | ||
- name: qwen2-5-coder-7b-instruct-container | ||
image: REPO_HERE.azurecr.io/qwen2.5-coder-7b-instruct:TAG_HERE | ||
command: | ||
- /bin/sh | ||
- -c | ||
- accelerate launch --num_processes 1 --num_machines 1 --machine_rank 0 --gpu_ids all /workspace/tfs/inference_api.py --pipeline text-generation --torch_dtype auto --trust_remote_code | ||
resources: | ||
requests: | ||
nvidia.com/gpu: 2 | ||
limits: | ||
nvidia.com/gpu: 2 | ||
livenessProbe: | ||
httpGet: | ||
path: /health | ||
port: 5000 | ||
initialDelaySeconds: 600 # 10 Min | ||
periodSeconds: 10 | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: 5000 | ||
initialDelaySeconds: 30 | ||
periodSeconds: 10 | ||
volumeMounts: | ||
- name: dshm | ||
mountPath: /dev/shm | ||
volumes: | ||
- name: dshm | ||
emptyDir: | ||
medium: Memory | ||
tolerations: | ||
- effect: NoSchedule | ||
key: sku | ||
operator: Equal | ||
value: gpu | ||
- effect: NoSchedule | ||
key: nvidia.com/gpu | ||
operator: Exists | ||
nodeSelector: | ||
pool: qwen25coder7 |
83 changes: 83 additions & 0 deletions
83
...ts/workspace/test/manifests/qwen2-5-coder-7b-instruct/qwen2-5-coder-7b-instruct_vllm.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,83 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: qwen2-5-coder-7b-instruct | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: qwen2-5-coder-7b-instruct | ||
template: | ||
metadata: | ||
labels: | ||
app: qwen2-5-coder-7b-instruct | ||
spec: | ||
containers: | ||
- name: qwen2-5-coder-7b-instruct-container | ||
image: REPO_HERE.azurecr.io/qwen2.5-coder-7b-instruct:TAG_HERE | ||
command: | ||
- /bin/sh | ||
- -c | ||
- python3 /workspace/vllm/inference_api.py --kaito-config-file /mnt/config/inference_config.yaml | ||
resources: | ||
requests: | ||
nvidia.com/gpu: 2 | ||
limits: | ||
nvidia.com/gpu: 2 | ||
livenessProbe: | ||
httpGet: | ||
path: /health | ||
port: 5000 | ||
initialDelaySeconds: 600 # 10 Min | ||
periodSeconds: 10 | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: 5000 | ||
initialDelaySeconds: 30 | ||
periodSeconds: 10 | ||
volumeMounts: | ||
- name: dshm | ||
mountPath: /dev/shm | ||
- mountPath: /mnt/config | ||
name: config-volume | ||
volumes: | ||
- name: dshm | ||
emptyDir: | ||
medium: Memory | ||
- configMap: | ||
defaultMode: 420 | ||
name: qwen2-5-coder-7b-inference-params | ||
name: config-volume | ||
tolerations: | ||
- effect: NoSchedule | ||
key: sku | ||
operator: Equal | ||
value: gpu | ||
- effect: NoSchedule | ||
key: nvidia.com/gpu | ||
operator: Exists | ||
nodeSelector: | ||
pool: qwen25coder7 | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: qwen2-5-coder-7b-inference-params | ||
data: | ||
inference_config.yaml: | | ||
# Maximum number of steps to find the max available seq len fitting in the GPU memory. | ||
max_probe_steps: 6 | ||
vllm: | ||
cpu-offload-gb: 0 | ||
gpu-memory-utilization: 0.95 | ||
swap-space: 4 | ||
served-model-name: test | ||
dtype: float16 | ||
tensor-parallel-size: 2 | ||
# max-seq-len-to-capture: 8192 | ||
# num-scheduler-steps: 1 | ||
# enable-chunked-prefill: false | ||
# see https://docs.vllm.ai/en/stable/models/engine_args.html for more options. |