Does converting model to onnx format cause performance degradation of model?

Open
#554 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by reproducing the reported comparison using TextEmbedding.add_custom_model() with Alibaba-NLP/gte-multilingual-base and the onnx-community model, then compare their hit@1 results with the original Hugging Face model on an equivalent dataset. Done means establishing whether conversion or model integration accounts for the degradation and documenting the evidence.

Written by the indexing model from the issue text.

Description

I just converted the unsupported model is Alibaba-NLP/gte-multilingual-base to onnx format to use fastembed via TextEmbedding.add_custom_model(), the result is that it works with this library. However, the problem is that I noticed that the performance of the embedding model dropped significantly when comparing the hit@1 score with the original HuggingFace model on my personal dataset, I also tried using the pre-converted model of onnx-community and the result is similar.

Dominant language
Python
Stars
3.3k
Forks
314
Avg merge
5d 7h
Merged PRs (30d)
23

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from qdrant/fastembed

All issues in qdrant/fastembed

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.