Sign inSign up

intel/intel-optimized-text-embedding

Verified Publisher

By Intel Corporation

•Updated about 2 years ago

Home of IntelĀ® Optimized Container for Embeddings

Image
0

10K+

intel/intel-optimized-text-embedding repository overview

⁠Intel Optimized Container for Embeddings

The Intel Optimized Container for Embeddings is a lightweight text embeddig model that can be used for a variety of NLP tasks. The model is distilled from UAE-Large-v1⁠ using the the sentence-transformers and Intel® Extension for Pytorch (IPEX) frameworks. It is a 23M parameter model with an input sequence length of 512 and output embedding size of 512. It achieves average accuracies of 46% and 82% on the MTEB Retrieval and STS tasks respectively. The model files and container source code can be found here⁠.

⁠Run

This model is optimized for IntelĀ® XeonĀ® Archicture using IntelĀ® Extension for Pytorch (IPEX) and enables the use of the latest IntelĀ® Advanced Matrix Extensions (AMX) for accelerated BF16 inference.

Run with built-in torchserve config:

docker run --network=host --cap-add SYS_NICE -t -d --rm -p 7080:7080 --name=local_model intel-text-embedding:latest

Run with custom config:

docker run --network=host --cap-add SYS_NICE -t -d --rm -p 7080:7080 -v ./config.properties:/home/ubuntu/config.properties --name=local_model intel-text-embedding:latest

⁠Local Test

curl -s -X POST \
  -H "Content-Type: application/json" \
  -d @./instances.json \
  http://localhost:7080/predictions/intel_embedding_model/
⁠Training Datasets
DatasetDescriptionLicense
beir/dbpedia-entityDBpedia-Entity is a standard test collection for entity search over the DBpedia knowledge base.CC BY-SA 3.0 license
beir/nqTo help spur development in open-domain question answering, the Natural Questions (NQ) corpus has been created, along with a challenge website based on this data.CC BY-SA 3.0 license
beir/scidocsSciDocs is a new evaluation benchmark consisting of seven document-level tasks ranging from citation prediction, to document classification and recommendation.CC-BY-SA-4.0
beir/trec-covidTREC-COVID followed the TREC model for building IR test collections through community evaluations of search systems.CC-BY-SA-4.0 license
beir/touche2020Given a question on a controversial topic, retrieve relevant arguments from a focused crawl of online debate portals.CC BY 4.0 license
WikiAnswersThe WikiAnswers corpus contains clusters of questions tagged by WikiAnswers users as paraphrases.MIT
Cohere/wikipedia-22-12-en-embeddings DatasetThe Cohere/Wikipedia dataset is a processed version of the wikipedia-22-12 dataset. It is English only, and the articles are broken up into paragraphs.Apache 2.0
MLNIGLUE, the General Language Understanding Evaluation benchmark (https://gluebenchmark.com/⁠) is a collection of resources for training, evaluating, and analyzing natural language understanding systems.MIT

Tag summary

Content type

Image

Digest

sha256:26f7c9aa0…

Size

3.5 GB

Last updated

about 2 years ago

docker pull intel/intel-optimized-text-embedding

This week's pulls

Pulls:

7

Sep 14 to Sep 20