Skip to content

Commit

Permalink
fix: Fix batch embedding test
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-space-invader committed Nov 5, 2024
1 parent 2c4d320 commit e008a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_multi_task_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def test_batch_embedding():
embedding_arrays = [e.embedding for e in embeddings]
embeddings = np.stack(embedding_arrays)

assert np.allclose(embeddings, expected_vectors, atol=task_tolerance)
assert np.allclose(embeddings[:docs], expected_vectors, atol=task_tolerance)

if is_ci:
shutil.rmtree(model.model._model_dir)
Expand Down

0 comments on commit e008a46

Please sign in to comment.