Skip to content

Commit

Permalink
fix: Cast all Model2Vec outputs as floats (#1667)
Browse files Browse the repository at this point in the history
cast all outputs as floats
  • Loading branch information
isaac-chung authored Jan 1, 2025
1 parent e4edb66 commit fa0ed6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mteb/models/model2vec_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def encode(
Returns:
The encoded sentences.
"""
return self.static_model.encode(sentences)
return self.static_model.encode(sentences).astype(np.float32)


m2v_base_glove_subword = ModelMeta(
Expand Down

0 comments on commit fa0ed6b

Please sign in to comment.