-
Notifications
You must be signed in to change notification settings - Fork 24
Updates for speculative decoding benchmarking #371
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
syeda-anjum
wants to merge
14
commits into
main
Choose a base branch
from
sanjum-infperf-kustomize
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.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
df8524e
update new structure
syeda-anjum f183a41
update kustomize
syeda-anjum f09d760
update kustomize
syeda-anjum 5c5bc50
spell check
syeda-anjum 837c2e7
simplify
syeda-anjum ee9d4d1
Update to speculative decoding readme
syeda-anjum 961041d
new line
syeda-anjum 545ad9b
update readme with prettier fix
syeda-anjum 1591195
Merge branch 'main' into sanjum-infperf-kustomize
syeda-anjum 05af22f
Merge branch 'main' into sanjum-infperf-kustomize
alizaidis 85fbaf1
fixes from PR review
syeda-anjum 34c8bbb
prettier fix
syeda-anjum 1892f8b
prettier fix
syeda-anjum 3240bd6
readme reorder
syeda-anjum 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| dailymail | ||
| dtype | ||
| flashinfer | ||
| matplot | ||
|
|
||
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
60 changes: 60 additions & 0 deletions
60
...ernetes-manifests/inference-perf-bench/vllm-spec-decoding/sd-eagle/configure_benchmark.sh
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,60 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Copyright 2025 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| set -o errexit | ||
| set -o nounset | ||
| set -o pipefail | ||
|
|
||
| MY_PATH="$( | ||
| cd "$(dirname "$0")" >/dev/null 2>&1 | ||
| pwd -P | ||
| )" | ||
|
|
||
| # Update benchmarking namespace depending on TPU or GPU selection | ||
| TARGET_FILE="${MY_PATH}/templates/benchmarking.tpl.env" | ||
| GPU_NS="${ira_online_gpu_kubernetes_namespace_name}" | ||
| TPU_NS="${ira_online_tpu_kubernetes_namespace_name}" | ||
|
|
||
| # Determine the correct namespace | ||
| if [[ "$ACCELERATOR" == "GPU" ]]; then | ||
| export BENCHMARKING_KUBERNETES_NAMESPACE=$GPU_NS | ||
| elif [[ "$ACCELERATOR" == "TPU" ]]; then | ||
| export BENCHMARKING_KUBERNETES_NAMESPACE=$TPU_NS | ||
| else | ||
| echo "Error: Please specify 'GPU' or 'TPU'" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Use sed to update the value | ||
| if grep -q "BENCHMARKING_KUBERNETES_NAMESPACE=" "$TARGET_FILE"; then | ||
| sed -i "s/^BENCHMARKING_KUBERNETES_NAMESPACE=.*/BENCHMARKING_KUBERNETES_NAMESPACE=$BENCHMARKING_KUBERNETES_NAMESPACE/" "$TARGET_FILE" | ||
| echo "Successfully updated $TARGET_FILE: BENCHMARKING_KUBERNETES_NAMESPACE=$BENCHMARKING_KUBERNETES_NAMESPACE" | ||
| else | ||
| echo "Variable not found" | ||
| fi | ||
|
|
||
| source "${MY_PATH}/../../../../terraform/_shared_config/scripts/set_environment_variables.sh" | ||
|
|
||
| envsubst < "${MY_PATH}/templates/benchmarking.tpl.env" | sponge "${MY_PATH}/benchmarking.env" | ||
|
|
||
| envsubst < "${MY_PATH}/templates/configmap-benchmark.tpl.yaml" | sponge "${MY_PATH}/configmap-benchmark.yaml" | ||
|
|
||
| envsubst < "${MY_PATH}/templates/secretproviderclass-huggingface-tokens.tpl.yaml" | sponge "${MY_PATH}/secretproviderclass-huggingface-tokens.yaml" | ||
|
|
||
|
|
||
| cd "${MY_PATH}" | ||
| SHORT_HASH=$(echo -n "${APP_LABEL}" | sha256sum | cut -c1-10) | ||
| kustomize edit set nameprefix "${SHORT_HASH}-" | ||
|
|
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 |
|---|---|---|
|
|
@@ -57,3 +57,5 @@ spec: | |
| volumeAttributes: | ||
| secretProviderClass: huggingface-token-read | ||
| name: huggingface-token | ||
|
|
||
|
|
||
File renamed without changes.
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 |
|---|---|---|
|
|
@@ -32,3 +32,4 @@ spec: | |
| - pod | ||
| - container | ||
| - node | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -22,3 +22,5 @@ spec: | |
| spec: | ||
| nodeSelector: | ||
| cloud.google.com/compute-class: model-download | ||
|
|
||
|
|
||
File renamed without changes.
63 changes: 63 additions & 0 deletions
63
...s/inference-perf-bench/vllm-spec-decoding/sd-eagle/templates/configmap-benchmark.tpl.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,63 @@ | ||
| # Copyright 2025 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: inference-perf-config | ||
| namespace: ${BENCHMARKING_KUBERNETES_NAMESPACE} | ||
| data: | ||
| config.yaml: | | ||
| load: | ||
| type: constant | ||
| interval: 1.0 | ||
| sweep: | ||
| type: linear | ||
| timeout: 250 | ||
| num_stages: 7 | ||
| stage_duration: 30 | ||
| num_workers: 20 | ||
| worker_max_concurrency: 15 | ||
| worker_max_tcp_connections: 2500 | ||
| api: | ||
| type: completion | ||
| streaming: true | ||
| server: | ||
| type: vllm | ||
| model_name: /gcs/${HF_MODEL_ID} | ||
| base_url: http://${APP_LABEL}.${BENCHMARKING_KUBERNETES_NAMESPACE}.svc.cluster.local:8000 | ||
| ignore_eos: true | ||
| tokenizer: | ||
| pretrained_model_name_or_path: ${HF_MODEL_ID} | ||
| data: | ||
| type: cnn_dailymail | ||
| metrics: | ||
| type: prometheus | ||
| prometheus: | ||
| scrape_interval: 15 | ||
| google_managed: true # Whether using Google Managed Prometheus | ||
| filters: [] | ||
| report: | ||
| request_lifecycle: | ||
| summary: true | ||
| per_stage: true | ||
| per_request: true | ||
| prometheus: | ||
| summary: true | ||
| per_stage: true | ||
| storage: | ||
| google_cloud_storage: | ||
| bucket_name: ${hub_models_bucket_bench_results_name} # Required GCS bucket | ||
| report_file_prefix: null # Optional filename prefix | ||
|
|
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
Oops, something went wrong.
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.