/ Модель

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

Контекст
8 192 токена
Параметры
149 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
gte-reranker-modernbert-base
Библиотека
sentence-transformers
Опубликована
6 дек 2025

langcache-reranker-v2-mnrl

Ранжирование текстаТекст → score6 профессий

Англоязычный переранжировщик Redis на базе ModernBERT оценивает релевантность пар текстов для семантического кэширования и поиска.

224скачиваний за 30 дней3лайкавеса обновлены16 дек 2025

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Ранжирование» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

redis/langcache-reranker-v2-mnrl — англоязычный Cross-Encoder, разработанный Redis и дообученный на базе Alibaba-NLP/gte-reranker-modernbert-base с использованием библиотеки Sentence Transformers. Модель принимает пары текстов и оценивает их релевантность; её обучали на парах LangCache, чтобы использовать в семантическом кэшировании и ранжировании результатов поиска.

Модель основана на ModernBERT, содержит 149 млн параметров и поддерживает последовательности длиной до 8192 токенов. Она предназначена для английского языка и выдаёт оценку для одной пары текстов, которую можно использовать при классификации пар или переранжировании кандидатов в поиске и RAG.

Модель не генерирует ответы и не формирует эмбеддинги: для оценки нескольких документов требуется отдельно подать каждую пару «запрос — документ». Карточка указывает лицензию Apache-2.0.

Сценарии применения

  • переранжирование результатов поиска по запросу
  • оценка релевантности документов для RAG
  • сравнение пользовательского запроса с сохранёнными ответами кэша
  • классификация пар предложений по смысловому соответствию

Ограничения

Модель рассчитана на английский язык и оценивает пары текстов, поэтому для большого числа кандидатов нужно выполнять отдельные попарные оценки. Она возвращает оценку релевантности, а не генерирует текст или эмбеддинги.

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

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

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

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

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

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

Открыть на Hugging Face

Redis fine-tuned CrossEncoder model for semantic caching on LangCache

This is a Cross Encoder model finetuned from Alibaba-NLP/gte-reranker-modernbert-base on the LangCache Sentence Pairs (subsets=['all'], train+val=True) dataset using the sentence-transformers library. It computes scores for pairs of texts, which can be used for sentence pair classification.

Model Details

Model Description

Model Sources

Usage

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load this model and run inference.

from sentence_transformers import CrossEncoder

# Download from the 🤗 Hub
model = CrossEncoder("redis/langcache-reranker-v2-softmnrl-triplet")
# Get scores for pairs of texts
pairs = [
    [' What high potential jobs are there other than computer science?', ' What high potential jobs are there other than computer science?'],
    [' Would India ever be able to develop a missile system like S300 or S400 missile?', ' Would India ever be able to develop a missile system like S300 or S400 missile?'],
    [' water from the faucet is being drunk by a yellow dog', 'A yellow dog is drinking water from the faucet'],
    [' water from the faucet is being drunk by a yellow dog', 'The yellow dog is drinking water from a bottle'],
    ['! colspan = `` 14 `` `` Players who appeared for Colchester who left during the season ``', '! colspan = `` 14 `` `` Players who appeared for Colchester who left during the season ``'],
]
scores = model.predict(pairs)
print(scores.shape)
# (5,)

# Or rank different texts based on similarity to a single text
ranks = model.rank(
    ' What high potential jobs are there other than computer science?',
    [
        ' What high potential jobs are there other than computer science?',
        ' Would India ever be able to develop a missile system like S300 or S400 missile?',
        'A yellow dog is drinking water from the faucet',
        'The yellow dog is drinking water from a bottle',
        '! colspan = `` 14 `` `` Players who appeared for Colchester who left during the season ``',
    ]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]

Training Details

Training Dataset

LangCache Sentence Pairs (subsets=['all'], train+val=True)

  • Dataset: LangCache Sentence Pairs (subsets=['all'], train+val=True)
  • Size: 76,348,209 training samples
  • Columns: anchor, positive, and negative_1
  • Approximate statistics based on the first 1000 samples:
    anchorpositivenegative_1
    typestringstringstring
    detailsmin: 6 charactersmean: 55.35 charactersmax: 1131 charactersmin: 5 charactersmean: 55.02 charactersmax: 1131 charactersmin: 8 charactersmean: 76.33 charactersmax: 560 characters
  • Samples:
    anchorpositivenegative_1
    "There aren't many places in Gold Coast where you can find a wide variety of wedding dresses.""There aren't many places in Gold Coast where you can find a wide variety of wedding dresses."Where can I get a wide variety of wedding dresses in Gold Coast?
    It's easy to say it's good having siblings, but people often suggest it as a universal truth without considering that not everyone enjoys sibling relationships. Having siblings can lead to conflicts, competition, and stress, which might overshadow any potential benefits like companionship or support. Additionally, individual experiences with siblings can vary greatly depending on personality, family dynamics, and cultural background.It's easy to say it's good having siblings, but people often suggest it as a universal truth without considering that not everyone enjoys sibling relationships. Having siblings can lead to conflicts, competition, and stress, which might overshadow any potential benefits like companionship or support. Additionally, individual experiences with siblings can vary greatly depending on personality, family dynamics, and cultural background.What's it like having siblings?
    To reconcile the idea that 'Education is the Key to Success' with the presence of underemployed graduates and successful criminals, it's important to emphasize that education is one among many factors that contribute to success. Education equips individuals with knowledge, critical thinking skills, and problem-solving abilities, which are essential tools for navigating life's challenges and seizing opportunities. However, success is also influenced by other elements such as personal drive, social connections, opportunities presented, and sometimes sheer luck. Education does not guarantee success on its own; rather, it provides a foundation upon which individuals can build their careers and personal lives. Additionally, the definition of success can be subjective and varies across different cultures and individuals. It's crucial to address practical considerations like ensuring that educational curricula are relevant to the current job market and fostering environments where both hard ...To reconcile the idea that 'Education is the Key to Success' with the presence of underemployed graduates and successful criminals, it's important to emphasize that education is one among many factors that contribute to success. Education equips individuals with knowledge, critical thinking skills, and problem-solving abilities, which are essential tools for navigating life's challenges and seizing opportunities. However, success is also influenced by other elements such as personal drive, social connections, opportunities presented, and sometimes sheer luck. Education does not guarantee success on its own; rather, it provides a foundation upon which individuals can build their careers and personal lives. Additionally, the definition of success can be subjective and varies across different cultures and individuals. It's crucial to address practical considerations like ensuring that educational curricula are relevant to the current job market and fostering environments where both hard ...How do you convince the upcoming generation that "Education is The Key of Success " when we are surrounded by poor graduates and rich criminals?
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "num_negatives": 1,
        "activation_fn": "torch.nn.modules.activation.Sigmoid"
    }
    

Evaluation Dataset

LangCache Sentence Pairs (split=test)

  • Dataset: LangCache Sentence Pairs (split=test)
  • Size: 132,354 evaluation samples
  • Columns: anchor, positive, and negative_1
  • Approximate statistics based on the first 1000 samples:
    anchorpositivenegative_1
    typestringstringstring
    detailsmin: 3 charactersmean: 96.44 charactersmax: 314 charactersmin: 3 charactersmean: 95.52 charactersmax: 314 charactersmin: 10 charactersmean: 72.75 charactersmax: 244 characters
  • Samples:
    anchorpositivenegative_1
    What high potential jobs are there other than computer science? What high potential jobs are there other than computer science?Why IT or Computer Science jobs are being over rated than other Engineering jobs?
    Would India ever be able to develop a missile system like S300 or S400 missile? Would India ever be able to develop a missile system like S300 or S400 missile?Should India buy the Russian S400 air defence missile system?
    water from the faucet is being drunk by a yellow dogA yellow dog is drinking water from the faucetChildlessness is low in Eastern European countries.
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "num_negatives": 1,
        "activation_fn": "torch.nn.modules.activation.Sigmoid"
    }
    

Framework Versions

  • Python: 3.12.3
  • Sentence Transformers: 5.1.0
  • Transformers: 4.56.0
  • PyTorch: 2.8.0+cu128
  • Accelerate: 1.10.1
  • Datasets: 4.0.0
  • Tokenizers: 0.22.0

Citation

BibTeX

Sentence Transformers

@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "https://arxiv.org/abs/1908.10084",
}

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
ModernBertForSequenceClassification
Ревизия весов
3b587cc

0 моделей