-
Notifications
You must be signed in to change notification settings - Fork 44
[Feature][MISC] Automation Workflow and Runtimes #257
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
base: main
Are you sure you want to change the base?
Changes from all commits
b8b7b9f
8e9cbce
32b9903
65383c7
6b65a4f
b61b286
2f2f2b7
d61a4d9
7d65550
8a5b169
a16413a
a5915ce
ebb0cce
921953b
83a3197
dcb09d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: ome.io/v1beta1 | ||
| kind: ClusterBaseModel | ||
| metadata: | ||
| name: llama-3-1-8b-instruct | ||
| spec: | ||
| vendor: meta | ||
| disabled: false | ||
| version: "1.0.0" | ||
| displayName: meta.llama-3.1-8b-instruct | ||
| storage: | ||
| storageUri: hf://meta-llama/Llama-3.1-8B-Instruct | ||
| path: /raid/models/meta/llama-3-1-8b-instruct | ||
| key: "hf-token" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,5 +9,5 @@ spec: | |
| version: "1.0.0" | ||
| storage: | ||
| storageUri: hf://meta-llama/Llama-3.2-11B-Vision-Instruct | ||
| path: /raid/models/meta/Llama-3.2-11B-Vision-Instruct | ||
| path: /raid/models/meta/llama-3-2-11b-vision-instruct | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why changing this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just to be consistent with what are currently in cluster. All the existing models follows this all lower case pattern. |
||
| key: "hf-token" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,5 +9,5 @@ spec: | |
| version: "1.0.0" | ||
| storage: | ||
| storageUri: hf://meta-llama/Llama-3.2-3B-Instruct | ||
| path: /raid/models/meta/Llama-3.2-3B-Instruct | ||
| path: /raid/models/meta/llama-3-2-3b-instruct | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All lowercase or mimicking the model ID, we just need to agree on a pattern then I will clean up the rest. |
||
| key: "hf-token" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: ome.io/v1beta1 | ||
| kind: ClusterBaseModel | ||
| metadata: | ||
| name: llama-3-2-90b-vision-instruct-fp8 | ||
| spec: | ||
| displayName: meta.llama-3.2-90b-vision-instruct-fp8 | ||
| vendor: meta | ||
| disabled: false | ||
| version: "1.0.0" | ||
| storage: | ||
| storageUri: hf://RedHatAI/Llama-3.2-90B-Vision-Instruct-FP8-dynamic | ||
| path: /raid/models/meta/llama-3-2-90b-vision-instruct-fp8-dynamic | ||
| key: "hf-token" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: ome.io/v1beta1 | ||
| kind: ClusterBaseModel | ||
| metadata: | ||
| name: llama-3-3-70b-instruct-fp8-dynamic | ||
| spec: | ||
| disabled: false | ||
| displayName: meta.llama-3.3-70b-instruct-fp8-dynamic | ||
| storage: | ||
| storageUri: hf://RedHatAI/Llama-3.3-70B-Instruct-FP8-dynamic | ||
| path: /raid/models/meta/llama-3-3-70b-instruct-fp8-dynamic | ||
| key: "hf-token" | ||
| vendor: meta | ||
| version: "1.0.0" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| apiVersion: ome.io/v1beta1 | ||
| kind: ClusterServingRuntime | ||
| metadata: | ||
| name: srt-llama-3-1-8b-instruct | ||
| spec: | ||
| disabled: false | ||
| supportedModelFormats: | ||
| - modelFramework: | ||
| name: transformers | ||
| version: "4.42.3" | ||
| modelFormat: | ||
| name: safetensors | ||
| version: "1.0.0" | ||
| modelArchitecture: LlamaForCausalLM | ||
| autoSelect: false | ||
| priority: 1 | ||
| version: "1.0.0" | ||
| protocolVersions: | ||
| - openAI | ||
| modelSizeRange: | ||
| min: 7B | ||
| max: 9B | ||
| engineConfig: | ||
| annotations: | ||
| prometheus.io/scrape: "true" | ||
| prometheus.io/port: "8080" | ||
| prometheus.io/path: "/metrics" | ||
| labels: | ||
| logging-forward: enabled | ||
| tolerations: | ||
| - key: "nvidia.com/gpu" | ||
| operator: "Exists" | ||
| effect: "NoSchedule" | ||
| volumes: | ||
| - name: dshm | ||
| emptyDir: | ||
| medium: Memory | ||
| runner: | ||
| name: ome-container | ||
| image: docker.io/lmsysorg/sglang:v0.4.8.post1-cu126 | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: http1 | ||
| protocol: TCP | ||
| command: | ||
| - /bin/bash | ||
| - '-lc' | ||
| - -- | ||
| args: | ||
| - | | ||
| python3 -m sglang.launch_server \ | ||
| --host=0.0.0.0 \ | ||
| --port=8080 \ | ||
| --enable-metrics \ | ||
| --log-requests \ | ||
| --model-path="$MODEL_PATH" \ | ||
| --tp-size=1 \ | ||
| --mem-frac=0.9 | ||
| volumeMounts: | ||
| - mountPath: /dev/shm | ||
| name: dshm | ||
| resources: | ||
| requests: | ||
| cpu: 10 | ||
| memory: 30Gi | ||
| nvidia.com/gpu: 1 | ||
| limits: | ||
| cpu: 10 | ||
| memory: 30Gi | ||
| nvidia.com/gpu: 1 | ||
|
|
||
| readinessProbe: | ||
| httpGet: | ||
| path: /health_generate | ||
| port: 8080 | ||
| failureThreshold: 3 | ||
| successThreshold: 1 | ||
| periodSeconds: 60 | ||
| timeoutSeconds: 200 | ||
|
|
||
| livenessProbe: | ||
| httpGet: | ||
| path: /health | ||
| port: 8080 | ||
| failureThreshold: 5 | ||
| successThreshold: 1 | ||
| periodSeconds: 60 | ||
| timeoutSeconds: 60 | ||
|
|
||
| startupProbe: | ||
| httpGet: | ||
| path: /health_generate | ||
| port: 8080 | ||
| failureThreshold: 150 | ||
| successThreshold: 1 | ||
| periodSeconds: 6 | ||
| initialDelaySeconds: 60 | ||
| timeoutSeconds: 30 | ||
| routerConfig: | ||
| runner: | ||
| name: router | ||
| image: ghcr.io/moirai-internal/sgl-router:0.1.4.30f2a44 | ||
| resources: | ||
| limits: | ||
| cpu: "1" | ||
| memory: "2Gi" | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: http | ||
| command: | ||
| - sh | ||
| - -c | ||
| - > | ||
| python3 -m sglang_router.launch_router | ||
| --host "0.0.0.0" | ||
| --port "8080" | ||
| --service-discovery | ||
| --service-discovery-namespace "${NAMESPACE}" | ||
| --service-discovery-port 8080 | ||
| --selector component=engine ome.io/inferenceservice=${INFERENCESERVICE_NAME} | ||
| env: | ||
| - name: NAMESPACE | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.namespace | ||
| - name: INFERENCESERVICE_NAME | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.labels['ome.io/inferenceservice'] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,128 @@ | ||
| apiVersion: ome.io/v1beta1 | ||
| kind: ClusterServingRuntime | ||
| metadata: | ||
| name: srt-llama-3-3-70b-instruct-fp8-dynamic | ||
| spec: | ||
| disabled: false | ||
| supportedModelFormats: | ||
| - modelFramework: | ||
| name: transformers | ||
| version: "4.47.0.dev0" | ||
| modelFormat: | ||
| name: safetensors | ||
| version: "1.0.0" | ||
| modelArchitecture: LlamaForCausalLM | ||
| autoSelect: false | ||
| priority: 1 | ||
| protocolVersions: | ||
| - openAI | ||
| modelSizeRange: | ||
| min: 60B | ||
| max: 75B | ||
| engineConfig: | ||
| annotations: | ||
| prometheus.io/scrape: "true" | ||
| prometheus.io/port: "8080" | ||
| prometheus.io/path: "/metrics" | ||
| labels: | ||
| logging-forward: enabled | ||
| tolerations: | ||
| - key: "nvidia.com/gpu" | ||
| operator: "Exists" | ||
| effect: "NoSchedule" | ||
| volumes: | ||
| - name: dshm | ||
| emptyDir: | ||
| medium: Memory | ||
| runner: | ||
| name: ome-container | ||
| image: docker.io/lmsysorg/sglang:v0.4.8.post1-cu126 | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: http1 | ||
| protocol: TCP | ||
| command: | ||
| - /bin/bash | ||
| - '-lc' | ||
| - -- | ||
| args: | ||
| - | | ||
| python3 -m sglang.launch_server \ | ||
| --host=0.0.0.0 \ | ||
| --port=8080 \ | ||
| --enable-metrics \ | ||
| --log-requests \ | ||
| --model-path="$MODEL_PATH" \ | ||
| --tp-size=2 \ | ||
| --mem-frac=0.9 | ||
| volumeMounts: | ||
| - mountPath: /dev/shm | ||
| name: dshm | ||
| resources: | ||
| requests: | ||
| cpu: 10 | ||
| memory: 160Gi | ||
| nvidia.com/gpu: 2 | ||
| limits: | ||
| cpu: 10 | ||
| memory: 160Gi | ||
| nvidia.com/gpu: 2 | ||
|
|
||
| readinessProbe: | ||
| httpGet: | ||
| path: /health_generate | ||
| port: 8080 | ||
| failureThreshold: 3 | ||
| successThreshold: 1 | ||
| periodSeconds: 60 | ||
| timeoutSeconds: 200 | ||
|
|
||
| livenessProbe: | ||
| httpGet: | ||
| path: /health | ||
| port: 8080 | ||
| failureThreshold: 5 | ||
| successThreshold: 1 | ||
| periodSeconds: 60 | ||
| timeoutSeconds: 60 | ||
|
|
||
| startupProbe: | ||
| httpGet: | ||
| path: /health_generate | ||
| port: 8080 | ||
| failureThreshold: 150 | ||
| successThreshold: 1 | ||
| periodSeconds: 6 | ||
| initialDelaySeconds: 60 | ||
| timeoutSeconds: 30 | ||
| routerConfig: | ||
| runner: | ||
| name: router | ||
| image: ghcr.io/moirai-internal/sgl-router:0.1.4.30f2a44 | ||
| resources: | ||
| limits: | ||
| cpu: "1" | ||
| memory: "2Gi" | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: http | ||
| command: | ||
| - sh | ||
| - -c | ||
| - > | ||
| python3 -m sglang_router.launch_router | ||
| --host "0.0.0.0" | ||
| --port "8080" | ||
| --service-discovery | ||
| --service-discovery-namespace "${NAMESPACE}" | ||
| --service-discovery-port 8080 | ||
| --selector component=engine ome.io/inferenceservice=${INFERENCESERVICE_NAME} | ||
| env: | ||
| - name: NAMESPACE | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.namespace | ||
| - name: INFERENCESERVICE_NAME | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.labels['ome.io/inferenceservice'] |
Uh oh!
There was an error while loading. Please reload this page.