Skip to content

Commit

Permalink
chore: test only <1gb files in local
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-space-invader committed Oct 30, 2024
1 parent 9851be2 commit 8eb2474
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_text_cross_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ def test_rerank():

@pytest.mark.parametrize(
"model_name",
[model_name for model_name in CANONICAL_SCORE_VALUES.keys()],
[
model_desc["model"]
for model_desc in TextCrossEncoder.list_supported_models()
if model_desc["size_in_GB"] < 1 and model_desc["model"] in CANONICAL_SCORE_VALUES.keys()
],
)
def test_batch_rerank(model_name):
is_ci = os.getenv("CI")
Expand Down

0 comments on commit 8eb2474

Please sign in to comment.