-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add kserve gpu tests * add a check to validate gpu mem usage * fix typos * fix typo
- Loading branch information
Showing
5 changed files
with
135 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: KServe GPU Nightly Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
# runs everyday at 5:15am | ||
schedule: | ||
- cron: '15 5 * * *' | ||
|
||
jobs: | ||
kserve-gpu-tests: | ||
runs-on: [self-hosted, regression-test-gpu] | ||
steps: | ||
- name: Clean up previous run | ||
run: | | ||
echo "Cleaning up previous run" | ||
ls -la ./ | ||
sudo rm -rf ./* || true | ||
sudo rm -rf ./.??* || true | ||
ls -la ./ | ||
- name: Install minikube and kubectl | ||
run: | | ||
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | ||
sudo install minikube-linux-amd64 /usr/local/bin/minikube | ||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | ||
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | ||
echo "/usr/local/bin" >> $GITHUB_PATH | ||
- name: Setup Python 3.9 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
architecture: x64 | ||
- name: Install grpcurl | ||
run: | | ||
sudo curl -sSL https://github.com/fullstorydev/grpcurl/releases/download/v1.8.0/grpcurl_1.8.0_linux_x86_64.tar.gz | sudo tar -xz -C /usr/local/bin grpcurl | ||
sudo chmod +x /usr/local/bin/grpcurl | ||
- name: Checkout TorchServe | ||
uses: actions/checkout@v3 | ||
- name: Checkout kserve repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: kserve/kserve | ||
ref: v0.12.1 | ||
path: kserve | ||
- name: Validate torchserve-kfs and Open Inference Protocol | ||
run: ./kubernetes/kserve/tests/scripts/test_mnist.sh gpu |
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,21 @@ | ||
apiVersion: serving.kserve.io/v1beta1 | ||
kind: InferenceService | ||
metadata: | ||
name: "torchserve" | ||
spec: | ||
predictor: | ||
pytorch: | ||
storageUri: gs://kfserving-examples/models/torchserve/image_classifier/v1 | ||
image: pytorch/torchserve-kfs-nightly:latest-gpu | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: 1Gi | ||
nvidia.com/gpu: 1 | ||
requests: | ||
cpu: "100m" | ||
memory: 256Mi | ||
nvidia.com/gpu: 1 | ||
args: | ||
- --disable-token-auth | ||
- --enable-model-api |
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,22 @@ | ||
apiVersion: serving.kserve.io/v1beta1 | ||
kind: InferenceService | ||
metadata: | ||
name: "torchserve-mnist-v2" | ||
spec: | ||
predictor: | ||
pytorch: | ||
protocolVersion: v2 | ||
storageUri: gs://kfserving-examples/models/torchserve/image_classifier/v2 | ||
image: pytorch/torchserve-kfs-nightly:latest-gpu | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: 1Gi | ||
nvidia.com/gpu: 1 | ||
requests: | ||
cpu: "100m" | ||
memory: 256Mi | ||
nvidia.com/gpu: 1 | ||
args: | ||
- --disable-token-auth | ||
- --enable-model-api |
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