Skip to content

Commit

Permalink
Hf sources (#429)
Browse files Browse the repository at this point in the history
* HF sources for all models
  • Loading branch information
I8dNLo authored Dec 24, 2024
1 parent cec8d54 commit e89654d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions fastembed/text/onnx_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"license": "mit",
"size_in_GB": 0.42,
"sources": {
"hf": "Qdrant/fast-bge-base-en",
"url": "https://storage.googleapis.com/qdrant-fastembed/fast-bge-base-en.tar.gz",
},
"model_file": "model_optimized.onnx",
Expand Down Expand Up @@ -50,6 +51,7 @@
"license": "mit",
"size_in_GB": 0.13,
"sources": {
"hf": "Qdrant/bge-small-en",
"url": "https://storage.googleapis.com/qdrant-fastembed/BAAI-bge-small-en.tar.gz",
},
"model_file": "model_optimized.onnx",
Expand All @@ -72,6 +74,7 @@
"license": "mit",
"size_in_GB": 0.09,
"sources": {
"hf": "Qdrant/bge-small-zh-v1.5",
"url": "https://storage.googleapis.com/qdrant-fastembed/fast-bge-small-zh-v1.5.tar.gz",
},
"model_file": "model_optimized.onnx",
Expand Down
1 change: 0 additions & 1 deletion fastembed/text/onnx_text_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def onnx_embed(
onnx_input["token_type_ids"] = np.array(
[np.zeros(len(e), dtype=np.int64) for e in input_ids], dtype=np.int64
)

onnx_input = self._preprocess_onnx_input(onnx_input, **kwargs)

model_output = self.model.run(self.ONNX_OUTPUT_NAMES, onnx_input)
Expand Down

0 comments on commit e89654d

Please sign in to comment.