Edit model card

snowflake-arctic-embed-l-gguf

Model creator: Snowflake

Original model: snowflake-arctic-embed-l

Original Description

snowflake-arctic-embed is a suite of text embedding models that focuses on creating high-quality retrieval models optimized for performance.

The snowflake-arctic-embedding models achieve state-of-the-art performance on the MTEB/BEIR leaderboard for each of their size variants. Evaluation is performed using these scripts. As shown below, each class of model size achieves SOTA retrieval accuracy compared to other top models.

The models are trained by leveraging existing open-source text representation models, such as bert-base-uncased, and are trained in a multi-stage pipeline to optimize their retrieval performance. First, the models are trained with large batches of query-document pairs where negatives are derived in-batch—pretraining leverages about 400m samples of a mix of public datasets and proprietary web search data. Following pretraining models are further optimized with long training on a smaller dataset (about 1m samples) of triplets of query, positive document, and negative document derived from hard harmful mining. Mining of the negatives and data curation is crucial to retrieval accuracy. A detailed technical report will be available shortly.

Name MTEB Retrieval Score (NDCG @ 10) Parameters (Millions) Embedding Dimension
snowflake-arctic-embed-xs 50.15 22 384
snowflake-arctic-embed-s 51.98 33 384
snowflake-arctic-embed-m 54.90 110 768
snowflake-arctic-embed-m-long 54.83 137 768
snowflake-arctic-embed-l 55.98 335 1024

Aside from being great open-source models, the largest model, snowflake-arctic-embed-l, can serve as a natural replacement for closed-source embedding, as shown below.

Model Name MTEB Retrieval Score (NDCG @ 10)
snowflake-arctic-embed-l 55.98
Google-gecko-text-embedding 55.7
text-embedding-3-large 55.44
Cohere-embed-english-v3.0 55.00
bge-large-en-v1.5 54.29

snowflake-arctic-embed-l

Based on the intfloat/e5-large-unsupervised model, this small model does not sacrifice retrieval accuracy for its small size.

Model Name MTEB Retrieval Score (NDCG @ 10)
snowflake-arctic-embed-l 55.98
UAE-Large-V1 54.66
bge-large-en-v1.5 54.29
mxbai-embed-large-v1 54.39
e5-Large-v2 50.56

Description

This repo contains GGUF format files for the snowflake-arctic-embed-l embedding model.

These files were converted and quantized with llama.cpp PR 5500, commit 34aa045de, on a consumer RTX 4090.

This model supports up to 512 tokens of context.

Compatibility

These files are compatible with llama.cpp as of commit 4524290e8, as well as LM Studio as of version 0.2.19.

Examples

Example Usage with llama.cpp

To compute a single embedding, build llama.cpp and run:

./embedding -ngl 99 -m [filepath-to-gguf].gguf -p 'search_query: What is TSNE?'

You can also submit a batch of texts to embed, as long as the total number of tokens does not exceed the context length. Only the first three embeddings are shown by the embedding example.

texts.txt:

search_query: What is TSNE?
search_query: Who is Laurens Van der Maaten?

Compute multiple embeddings:

./embedding -ngl 99 -m [filepath-to-gguf].gguf -f texts.txt

Example Usage with LM Studio

Download the 0.2.19 beta build from here: Windows MacOS Linux

Once installed, open the app. The home should look like this:

image/png

Search for either "ChristianAzinn" in the main search bar or go to the "Search" tab on the left menu and search the name there.

image/png

Select your model from those that appear (this example uses bge-small-en-v1.5-gguf) and select which quantization you want to download. Since this model is pretty small, I recommend Q8_0, if not f16/32. Generally, the lower you go in the list (or the bigger the number gets), the larger the file and the better the performance.

image/png

You will see a green checkmark and the word "Downloaded" once the model has successfully downloaded, which can take some time depending on your network speeds.

image/png

Once this model is finished downloading, navigate to the "Local Server" tab on the left menu and open the loader for text embedding models. This loader does not appear before version 0.2.19, so ensure you downloaded the correct version.

image/png

Select the model you just downloaded from the dropdown that appears to load it. You may need to play with configurations in the right-side menu, such as GPU offload if it doesn't fit entirely into VRAM.

image/png

All that's left to do is to hit the "Start Server" button:

image/png

And if you see text like that shown below in the console, you're good to go! You can use this as a drop-in replacement for the OpenAI embeddings API in any application that requires it, or you can query the endpoint directly to test it out.

image/png

Example curl request to the API endpoint:

curl http://localhost:1234/v1/embeddings \
  -H "Content-Type: application/json" \
  -d '{
    "input": "Your text string goes here",
    "model": "model-identifier-here"
  }'

For more information, see the LM Studio text embedding documentation.

Acknowledgements

Thanks to the LM Studio team and everyone else working on open-source AI.

This README is inspired by that of nomic-ai-embed-text-v1.5-gguf, another excellent embedding model, and those of the legendary TheBloke.

Downloads last month
0
GGUF
Inference API
Inference API (serverless) has been turned off for this model.

Finetuned from

Collection including ChristianAzinn/snowflake-arctic-embed-l-gguf