-
Notifications
You must be signed in to change notification settings - Fork 98
[KubeAI][Models] Added 2 new model files and updated model parameters #1150
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
0802ae8
Added 2 new model files and updated model parameters
vrantala ce8ce09
Added README.md fille and updated model parameters
vrantala 71473ce
Fixed README link and updated model files according to review comments
vrantala be29b46
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 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,24 @@ | ||
| # Model Files | ||
|
|
||
| This directory contains YAML configuration files for various AI models designed to run on Kubernetes clusters. These files define the specifications, arguments, and resource profiles required for deploying and running the models efficiently. | ||
|
|
||
| ## Benchmarking | ||
|
|
||
| The parameters for the models were determined using the KubeAI benchmarking tool 'benchmark_serving.py' The benchmarking script can be found [here](https://github.com/substratusai/kubeai/blob/main/benchmarks/chat-py/benchmark_serving.py). | ||
|
|
||
| The following arguments were used during benchmarking: | ||
|
|
||
| - `--request-rate=800` | ||
| - `--max-concurrency=800` | ||
| - `--num-prompts=8000` | ||
| - `--max-conversations=800` | ||
|
|
||
| These parameters were chosen to optimize the model's performance in terms of throughput. | ||
|
|
||
| ## Additional Notes | ||
|
|
||
| - The `cacheProfile` is set to `default`. | ||
| - The `targetRequests` value matches the `max-num-seqs` (batch size). | ||
| - Most Models enabled autoscaling (`maxReplicas` > `MinReplicas`) so vLLM warmup is disabled as it would slow down new Gaudi vLLM instances startup too much | ||
|
|
||
| For more details, refer to the individual YAML files in this directory. | ||
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
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
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,32 @@ | ||
| # Copyright (C) 2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Source: models/templates/models.yaml | ||
| apiVersion: kubeai.org/v1 | ||
| kind: Model | ||
| metadata: | ||
| name: mistral-7b-instruct-v0.3-gaudi | ||
| spec: | ||
| features: [TextGeneration] | ||
| url: hf://mistralai/Mistral-7B-Instruct-v0.3 | ||
| cacheProfile: default | ||
| engine: VLLM | ||
| args: | ||
| - --model=mistralai/Mistral-7B-Instruct-v0.3 | ||
| - --load_format=mistral | ||
| - --config_format=mistral | ||
| - --tensor-parallel-size=1 | ||
| - --block-size=128 | ||
| - --max-num-seqs=512 | ||
| - --max-seq-len-to-capture=2048 | ||
| - --max-model-len=2048 | ||
| - --max-num-batched-token=2048 | ||
| - --disable-log-request | ||
| env: | ||
| OMPI_MCA_btl_vader_single_copy_mechanism: none | ||
| VLLM_SKIP_WARMUP: "true" | ||
| minReplicas: 1 | ||
| maxReplicas: 8 | ||
| # Equals to max-num-seqs (batch-size) parameter | ||
vrantala marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| targetRequests: 512 | ||
| resourceProfile: gaudi-for-text-generation:1 | ||
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,31 @@ | ||
| # Copyright (C) 2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Source: models/templates/models.yaml | ||
| apiVersion: kubeai.org/v1 | ||
| kind: Model | ||
| metadata: | ||
| name: mixtral-8x7b-instruct-v0.1-gaudi | ||
| spec: | ||
| features: [TextGeneration] | ||
| url: hf://mistralai/Mixtral-8x7B-Instruct-v0.1 | ||
| cacheProfile: default | ||
| engine: VLLM | ||
| args: | ||
| - --model=mistralai/Mixtral-8x7B-Instruct-v0.1 | ||
| - --tensor-parallel-size=2 | ||
| - --block-size=128 | ||
| - --max-num-seqs=512 | ||
| - --max-model-len=32000 | ||
| - --max-seq-len-to-capture=32000 | ||
| - --max-num-batched-token=64000 | ||
| - --disable-log-request | ||
| env: | ||
| OMPI_MCA_btl_vader_single_copy_mechanism: none | ||
| PT_HPU_ENABLE_LAZY_COLLECTIVES: "true" | ||
| VLLM_SKIP_WARMUP: "true" | ||
| minReplicas: 1 | ||
| maxReplicas: 4 | ||
| # same as max-num-seqs (batch size) | ||
| targetRequests: 512 | ||
| resourceProfile: gaudi-for-text-generation:2 |
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 |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| # Copyright (C) 2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Source: models/templates/models.yaml | ||
| apiVersion: kubeai.org/v1 | ||
| kind: Model | ||
|
|
@@ -9,18 +8,21 @@ metadata: | |
| spec: | ||
| features: [TextGeneration] | ||
| url: hf://Qwen/Qwen2.5-7B-Instruct | ||
| cacheProfile: nfs | ||
| cacheProfile: default | ||
| engine: VLLM | ||
| args: | ||
| - --tensor-parallel-size=1 | ||
| - --block-size=128 | ||
| - --max-num-seqs=256 | ||
| - --max-model-len=2048 | ||
| - --max-seq-len-to-capture=2048 | ||
| - --max-num-batched-token=2048 | ||
| - --max-num-seqs=512 | ||
| - --gpu-memory-utilization=0.9 | ||
| - --disable-log-requests | ||
| env: | ||
| OMPI_MCA_btl_vader_single_copy_mechanism: "none" | ||
| # vLLM startup takes too long for autoscaling, especially with Gaudi | ||
| OMPI_MCA_btl_vader_single_copy_mechanism: none | ||
| VLLM_SKIP_WARMUP: "true" | ||
| minReplicas: 1 | ||
| maxReplicas: 4 | ||
| targetRequests: 120 | ||
| resourceProfile: gaudi-for-text-generation:1 | ||
| maxReplicas: 8 | ||
| # Equals to max-num-seqs (batch-size) | ||
| targetRequests: 512 | ||
| resourceProfile: gaudi-for-text-generation::1 | ||
|
Collaborator
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. Missed the double double-colon typo... |
||
Oops, something went wrong.
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.