Skip to content

Commit 34116db

Browse files
chore: test only <1gb files in local
1 parent 4eee694 commit 34116db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_text_cross_encoder.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ def test_rerank():
4040

4141
@pytest.mark.parametrize(
4242
"model_name",
43-
[model_name for model_name in CANONICAL_SCORE_VALUES.keys()],
43+
[
44+
model_desc["model"]
45+
for model_desc in TextCrossEncoder.list_supported_models()
46+
if model_desc["size_in_GB"] < 1 and model_desc["model"] in CANONICAL_SCORE_VALUES.keys()
47+
],
4448
)
4549
def test_batch_rerank(model_name):
4650
is_ci = os.getenv("CI")

0 commit comments

Comments
 (0)