Skip to content

Commit

Permalink
point to specified commit in test case
Browse files Browse the repository at this point in the history
Signed-off-by: Lize Cai <lize.cai@sap.com>
  • Loading branch information
lizzzcai committed Mar 30, 2024
1 parent b10d356 commit 883a450
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/huggingfaceserver/huggingfaceserver/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ def test_bert():


def test_model_revision():
# https://huggingface.co/google-bert/bert-base-uncased
model = HuggingfaceModel("bert-base-uncased",
{"model_id": "bert-base-uncased",
"model_revision": "main",
"tokenizer_revision": "main",
"model_revision": "86b5e0934494bd15c9632b12f734a8a67f723594",
"tokenizer_revision": "86b5e0934494bd15c9632b12f734a8a67f723594",
"disable_lower_case": False}
)
model.load()
Expand Down

0 comments on commit 883a450

Please sign in to comment.