Skip to content

Commit ab9ab73

Browse files
authored
Fix deprecated splade model (#333)
* fix: return prithvida model to supported models * fix: fix deprecation warning stacklevel
1 parent 08925c9 commit ab9ab73

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

fastembed/sparse/sparse_text_embedding.py

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def __init__(
5656
"The right spelling is prithivida/Splade_PP_en_v1. "
5757
"Support of this name will be removed soon, please fix the model_name",
5858
DeprecationWarning,
59+
stacklevel=2,
5960
)
6061
model_name = "prithivida/Splade_PP_en_v1"
6162

fastembed/sparse/splade_pp.py

+10
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
},
2222
"model_file": "model.onnx",
2323
},
24+
{
25+
"model": "prithvida/Splade_PP_en_v1",
26+
"vocab_size": 30522,
27+
"description": "Independent Implementation of SPLADE++ Model for English",
28+
"size_in_GB": 0.532,
29+
"sources": {
30+
"hf": "Qdrant/SPLADE_PP_en_v1",
31+
},
32+
"model_file": "model.onnx",
33+
},
2434
]
2535

2636

0 commit comments

Comments
 (0)