-
Notifications
You must be signed in to change notification settings - Fork 86
Add Kimi K2.5 generation vLLM runtime and K2.6/K2.7-Code models #633
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
Open
Juno13340
wants to merge
4
commits into
ome-projects:main
Choose a base branch
from
Juno13340:genhuang/kimi-k2-6-k2-7-runtimes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+211
−0
Open
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
8935008
Add Kimi K2.5 generation vLLM runtime and K2.6/K2.7-Code models
Juno13340 7edbe69
Address review: drop unused fit-quantization annotation, add router r…
Juno13340 421852c
Add TEXT_TO_TEXT capability to Kimi K2.6/K2.7-Code, matching general-…
Juno13340 b4a2ad6
Rename Kimi K2.5 runtime to vllm-kimi-k25-tp8
Juno13340 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,14 @@ | ||
| apiVersion: ome.io/v1beta1 | ||
| kind: ClusterBaseModel | ||
| metadata: | ||
| name: kimi-k2-6 | ||
| spec: | ||
| modelCapabilities: | ||
| - IMAGE_TEXT_TO_TEXT | ||
| vendor: moonshotai | ||
| displayName: moonshotai.kimi-k2-6 | ||
| disabled: false | ||
| version: "1.0.0" | ||
| storage: | ||
| storageUri: hf://moonshotai/Kimi-K2.6 | ||
| path: /raid/models/moonshotai/Kimi-K2.6 | ||
This file contains hidden or 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,14 @@ | ||
| apiVersion: ome.io/v1beta1 | ||
| kind: ClusterBaseModel | ||
| metadata: | ||
| name: kimi-k2-7-code | ||
| spec: | ||
| modelCapabilities: | ||
| - IMAGE_TEXT_TO_TEXT | ||
| vendor: moonshotai | ||
| displayName: moonshotai.kimi-k2-7-code | ||
| disabled: false | ||
| version: "1.0.0" | ||
| storage: | ||
| storageUri: hf://moonshotai/Kimi-K2.7-Code | ||
| path: /raid/models/moonshotai/Kimi-K2.7-Code |
This file contains hidden or 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
188 changes: 188 additions & 0 deletions
188
config/runtimes/vllm/moonshotai/kimi-k25-single-node-8gpu-rt.yaml
This file contains hidden or 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,188 @@ | ||
| apiVersion: ome.io/v1beta1 | ||
| kind: ClusterServingRuntime | ||
| metadata: | ||
| name: vllm-kimi-k25-single-node-8gpu | ||
|
Juno13340 marked this conversation as resolved.
Outdated
|
||
| annotations: | ||
| ome.io/fit-quantization: int4 | ||
|
Juno13340 marked this conversation as resolved.
Outdated
|
||
| ome.io/engine-ready-timeout-sec: "3600" | ||
| spec: | ||
| acceleratorRequirements: | ||
| acceleratorClasses: | ||
| - nvidia-b200-8 | ||
| - nvidia-h200-8 | ||
| # - nvidia-b300-8 | ||
|
Juno13340 marked this conversation as resolved.
Outdated
|
||
| # - nvidia-h100-8 | ||
| # - nvidia-a100-80gb-8 | ||
| disabled: false | ||
| routerConfig: | ||
| annotations: | ||
| prometheus.io/path: /metrics | ||
| prometheus.io/port: '29000' | ||
| prometheus.io/scrape: 'true' | ||
| labels: | ||
| logging-forward: enabled | ||
| runner: | ||
| name: router | ||
| image: docker.io/lightseekorg/smg:1.5.0 | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: http | ||
| resources: | ||
| limits: | ||
| cpu: "1" | ||
| memory: 2Gi | ||
| args: | ||
| - --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) | ||
| - --enable-igw | ||
| - --request-id-headers | ||
| - opc-request-id | ||
| - --log-json | ||
| - --disable-retries | ||
| - --disable-circuit-breaker | ||
| - --disable-tokenizer-autoload | ||
| env: | ||
| - name: NAMESPACE | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.namespace | ||
| - name: INFERENCESERVICE_NAME | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.labels['ome.io/inferenceservice'] | ||
| readinessProbe: | ||
| httpGet: | ||
| path: /readiness | ||
| port: 8080 | ||
| failureThreshold: 5 | ||
| periodSeconds: 30 | ||
| timeoutSeconds: 10 | ||
| livenessProbe: | ||
| httpGet: | ||
| path: /liveness | ||
| port: 8080 | ||
| failureThreshold: 5 | ||
| periodSeconds: 30 | ||
| timeoutSeconds: 10 | ||
| startupProbe: | ||
| httpGet: | ||
| path: /readiness | ||
|
Juno13340 marked this conversation as resolved.
Outdated
|
||
| port: 8080 | ||
| failureThreshold: 177 | ||
| periodSeconds: 20 | ||
| timeoutSeconds: 10 | ||
| initialDelaySeconds: 60 | ||
| supportedModelFormats: | ||
| - modelFramework: | ||
| name: transformers | ||
| version: "4.57.1" | ||
| modelFormat: | ||
| name: safetensors | ||
| version: "1.0.0" | ||
| modelArchitecture: KimiK25ForConditionalGeneration | ||
| autoSelect: true | ||
| priority: 1 | ||
| acceleratorConfig: | ||
| nvidia-b200-8: | ||
| tensorParallelismOverride: | ||
| tensorParallelSize: 8 | ||
| nvidia-h200-8: | ||
| tensorParallelismOverride: | ||
| tensorParallelSize: 8 | ||
| # nvidia-b300-8: | ||
| # tensorParallelismOverride: | ||
| # tensorParallelSize: 8 | ||
| # nvidia-h100-8: | ||
| # tensorParallelismOverride: | ||
| # tensorParallelSize: 8 | ||
| # nvidia-a100-80gb-8: | ||
| # tensorParallelismOverride: | ||
| # tensorParallelSize: 8 | ||
| modelSizeRange: | ||
| min: 150B | ||
| max: 300B | ||
| protocolVersions: | ||
| - openAI | ||
| engineConfig: | ||
| annotations: | ||
| prometheus.io/scrape: "true" | ||
| prometheus.io/port: "8080" | ||
| prometheus.io/path: "/metrics" | ||
| labels: | ||
| logging-forward: enabled | ||
| volumes: | ||
| - name: dshm | ||
| emptyDir: | ||
| medium: Memory | ||
| runner: | ||
| name: ome-container | ||
| image: docker.io/vllm/vllm-openai:v0.23.0-cu129 | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: http1 | ||
| protocol: TCP | ||
| args: | ||
| - $(MODEL_PATH) | ||
| - --port=8080 | ||
| - --max-log-len=0 | ||
| - --served-model-name=vllm-model | ||
| - --trust-remote-code | ||
| - --enable-expert-parallel | ||
| - --tensor-parallel-size=8 | ||
| - --max-model-len=262144 | ||
| - '--limit-mm-per-prompt={"image":5,"video":1}' | ||
| - --tool-call-parser=kimi_k2 | ||
| - --enable-auto-tool-choice | ||
| - --reasoning-parser=kimi_k2 | ||
| - --mm-encoder-tp-mode=data | ||
| env: | ||
| - name: VLLM_ENGINE_READY_TIMEOUT_S | ||
| value: '3600' | ||
| - name: VLLM_RPC_TIMEOUT | ||
| value: '600000' | ||
| volumeMounts: | ||
| - mountPath: /dev/shm | ||
| name: dshm | ||
| resources: | ||
| requests: | ||
| cpu: 64 | ||
| memory: 512Gi | ||
| nvidia.com/gpu: 8 | ||
| limits: | ||
| cpu: 64 | ||
| memory: 512Gi | ||
| nvidia.com/gpu: 8 | ||
| readinessProbe: | ||
| httpGet: | ||
| path: /health | ||
| port: 8080 | ||
| failureThreshold: 3 | ||
| successThreshold: 1 | ||
| periodSeconds: 90 | ||
| timeoutSeconds: 60 | ||
| livenessProbe: | ||
| httpGet: | ||
| path: /health | ||
| port: 8080 | ||
| failureThreshold: 5 | ||
| successThreshold: 1 | ||
| periodSeconds: 60 | ||
| timeoutSeconds: 60 | ||
| startupProbe: | ||
| httpGet: | ||
| path: /health | ||
| port: 8080 | ||
| failureThreshold: 348 | ||
| successThreshold: 1 | ||
| periodSeconds: 10 | ||
| initialDelaySeconds: 120 | ||
| timeoutSeconds: 30 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.