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 Apr 2, 2024
1 parent 0c05917 commit 2fcd641
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/huggingfaceserver/huggingfaceserver/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ def test_bert():


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

0 comments on commit 2fcd641

Please sign in to comment.