This is the ONNX version of the Sentence Transformers model Snowflake/snowflake-arctic-embed-m for sentence embedding, optimized for speed and lightweight performance. By utilizing onnxruntime and tokenizers instead of heavier libraries like sentence-transformers and transformers, this version ensures a smaller library size and faster execution. Below are the details of the model:
This ONNX model consists all components in the original sentence transformer model:
Transformer, Pooling, Normalize
Using this model becomes easy when you have
LightEmbed installed:
1from light_embed import TextEmbedding
2sentences = ["This is an example sentence", "Each sentence is converted"]
3
4model = TextEmbedding('Snowflake/snowflake-arctic-embed-m')
5embeddings = model.encode(sentences)
6print(embeddings)