/ Модель

Характеристики

Лицензия
MIT
Базовая модель
gte-large
Библиотека
sentence-transformers
Опубликована
7 апр 2024

gte-large-gguf

ЭмбеддингиТекст → embedding10 профессий

ChristianAzinn/gte-large-gguf — это квантизированная GGUF-версия модели gte-large, разработанной Alibaba DAMO Academy и опубликованной thenlper.

2 389скачиваний за 30 дней1лайквеса обновлены7 апр 2024

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Репозиторий подготовил ChristianAzinn; исходная модель построена преимущественно на архитектуре BERT и распространяется как модель для создания текстовых эмбеддингов.

Модель предназначена для информационного поиска, оценки семантического сходства текстов, reranking и других задач, где требуется сопоставление текстовых представлений. Она обучалась на крупном корпусе релевантных пар текстов из различных предметных областей. Указан английский язык, максимальная длина контекста — 512 токенов. GGUF-файлы поддерживаются llama.cpp и LM Studio; доступны варианты квантизации от 2 до 8 бит, а также FP16 и FP32. Квантизация уменьшает размер и требования к памяти, но низкобитные варианты могут заметно снижать качество; README рекомендует сбалансированные варианты Q4_K_M, Q5_K_S, Q5_K_M и Q8_0.

Модель не предназначена для генерации текста: её основная функция — получение эмбеддингов для последующего сравнения или поиска. Варианты с высокой степенью квантизации удобны для локального запуска на ограниченных ресурсах, однако требуют оценки влияния потери точности на конкретную задачу. Исходная модель и материалы репозитория распространяются по лицензии MIT.

Для каких профессий подходит10

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

gte-large-gguf

Model creator: thenlper

Original model: gte-large

Original Description

General Text Embeddings (GTE) model. Towards General Text Embeddings with Multi-stage Contrastive Learning

The GTE models are trained by Alibaba DAMO Academy. They are mainly based on the BERT framework and currently offer three different sizes of models, including GTE-large, GTE-base, and GTE-small. The GTE models are trained on a large-scale corpus of relevance text pairs, covering a wide range of domains and scenarios. This enables the GTE models to be applied to various downstream tasks of text embeddings, including information retrieval, semantic textual similarity, text reranking, etc.

Description

This repo contains GGUF format files for the gte-large 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.

Meta-information

Explanation of quantisation methods

Provided Files

NameQuant methodBitsSizeMax RAM requiredUse case
NameQuant methodBitsSizeUse case
gte-large.Q2_K.ggufQ2_K2144 MBsmallest, significant quality loss - not recommended for most purposes
gte-large.Q3_K_S.ggufQ3_K_S3160 MBvery small, high quality loss
gte-large.Q3_K_M.ggufQ3_K_M3181 mBvery small, high quality loss
gte-large.Q3_K_L.ggufQ3_K_L3198 MBsmall, substantial quality loss
gte-large.Q4_0.ggufQ4_04200 MBlegacy; small, very high quality loss - prefer using Q3_K_M
gte-large.Q4_K_S.ggufQ4_K_S4203 MBsmall, greater quality loss
gte-large.Q4_K_M.ggufQ4_K_M4216 MBmedium, balanced quality - recommended
gte-large.Q5_0.ggufQ5_05237 MBlegacy; medium, balanced quality - prefer using Q4_K_M
gte-large.Q5_K_S.ggufQ5_K_S5237 MBlarge, low quality loss - recommended
gte-large.Q5_K_M.ggufQ5_K_M5246 MBlarge, very low quality loss - recommended
gte-large.Q6_K.ggufQ6_K6278 MBvery large, extremely low quality loss
gte-large.Q8_0.ggufQ8_08358 MBvery large, extremely low quality loss - recommended
gte-large.Q8_0.ggufFP1616670 MBenormous, pretty much the original model - not recommended
gte-large.Q8_0.ggufFP32321.34 GBenormous, pretty much the original model - not recommended

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 configuratios 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.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · sentence-transformers

Нельзя запустить

GGUF-веса поддерживаются только для текстовых LLM (llama.cpp).

Ревизия весов
f9fa547

0 моделей