Skip to content
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

Add huggingface integration test with bert #298

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions charms/kserve-controller/tests/integration/hugginface-bert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: serving.kserve.io/v1beta1
kind: InferenceService
metadata:
name: huggingface-bert
spec:
predictor:
model:
modelFormat:
name: huggingface
args:
- --model_name=bert
- --model_id=google-bert/bert-base-uncased
resources:
limits:
cpu: 1
memory: 500Mi
requests:
cpu: 100m
memory: 250Mi
5 changes: 3 additions & 2 deletions charms/kserve-controller/tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def create_namespace():
@pytest.mark.parametrize(
"inference_file",
[
"./tests/integration/hugginface-bert.yaml",
"./tests/integration/sklearn-iris.yaml",
"./tests/integration/lgbserver.yaml",
"./tests/integration/pmml-server.yaml",
Expand Down Expand Up @@ -300,8 +301,8 @@ def create_inf_svc():

# Assert InferenceService state is Available
@tenacity.retry(
wait=tenacity.wait_exponential(multiplier=1, min=1, max=15),
stop=tenacity.stop_after_attempt(30),
wait=tenacity.wait_exponential(multiplier=1, min=1, max=30),
stop=tenacity.stop_after_attempt(60),
reraise=True,
)
def assert_inf_svc_state():
Expand Down
Loading