/ Модель

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

Контекст
2 048 токенов
Параметры
395 млн
Архитектура
modernbert · dense
Базовая модель
ModernBERT-large
Библиотека
sentence-transformers
Опубликована
26 окт 2025

finecat-nli-l

Классификация текстаТекст → label6 профессий

Англоязычная модель NLI на базе ModernBERT-large для сравнения посылок с гипотезами и zero-shot классификации текста.

2 400скачиваний за 30 дней6лайковвеса обновлены11 окт 2026

Бенчмарки

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

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

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

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

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

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

dleemiller/finecat-nli-l — англоязычная модель для вывода по естественному языку (NLI), разработанная как дообучение tasksource/ModernBERT-large-nli на наборе FineCat-NLI с дистилляцией логитов от MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli. Она сравнивает посылку и гипотезу и определяет, следует ли гипотеза из посылки, противоречит ей или остаётся нейтральной. Модель подходит для zero-shot классификации: можно задавать описания классов в виде гипотез и ранжировать их по отношению к входному тексту.

Модель основана на плотном двунаправленном энкодере ModernBERT-large с архитектурой ModernBertForSequenceClassification, содержит 394,7 млн параметров и поддерживает контекст до 2048 токенов. По карточке, она показывает результаты на наборах MNLI, SNLI, ANLI, WANLI и других NLI-бенчмарках; для ряда сравнений в README рекомендована более новая версия finecat-nli-v2-l. Доступна в формате safetensors через Sentence Transformers. Лицензия в предоставленных данных не указана.

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

  • определение, следует ли гипотеза из текста
  • проверка противоречий между утверждениями
  • zero-shot классификация текста по заданным описаниям классов
  • сопоставление текста с набором гипотез
  • оценка семантического соответствия посылки и гипотезы

Ограничения

Модель рассчитана на английский язык. В README рекомендуется использовать более новую версию finecat-nli-v2-l.

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

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

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

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

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

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

Открыть на Hugging Face

FineCat-NLI Large


Overview

[!NOTE] This model has been superseded by finecat-nli-v2-l. I recommend using that model instead.

This model is a fine-tune of the excellent tasksource/ModernBERT-large-nli, trained on the dleemiller/FineCat-NLI dataset—a compilation of several high-quality NLI data sources with quality screening and reduction of easy samples in the training split. The training also incorporates logit distillation from MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli, a top-performing NLI model, particularly on ANLI benchmarks.

Distillation loss looks like this: $$ \begin{equation} \mathcal{L} = \alpha \cdot \mathcal{L}{\text{CE}}(z^{(s)}, y) + \beta \cdot \mathcal{L}{\text{MSE}}(z^{(s)}, z^{(t)}) \end{equation} $$

where \(z^{(s)}\) and \(z^{(t)}\) are the student and teacher logits, \(y\) are the ground truth labels, and \(\alpha\) and \(\beta\) are equally weighted at 0.5.

By combining the broad NLI training of the tasksource model (which excels on traditional MNLI/SNLI benchmarks) with the ANLI strengths of the MoritzLaurer model and the high-quality FineCat-NLI dataset, this model achieves strong performance across major NLI benchmarks while retaining the efficiency advantages of the ModernBERT architecture.

This model and dataset specifically targets improving NLI, through high quality sources. The tasksource models are the best checkpoints to start from, although training from ModernBERT is also competitive.


NLI Evaluation Results

F1-Micro scores (equivalent to accuracy) for each dataset. Performance was measured at bs=32 using a Nvidia Blackwell PRO 6000 Max-Q.

Modelfinecatmnlimnli_mismatchedsnlianli_r1anli_r2anli_r3wanlilingnliThroughput (samples/s)Peak GPU Mem (MB)
dleemiller/finecat-nli-v2-l0.83590.91650.91270.93280.77400.60200.57330.76740.8776539.041838.06
MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli0.82330.91210.90790.88980.79600.68300.64000.77000.8821454.963250.44
dleemiller/finecat-nli-l0.82270.91520.92650.91620.74800.57000.54330.77060.8742539.041838.06
tasksource/ModernBERT-large-nli0.79590.89830.92290.91880.72600.51100.49250.69780.8504543.441838.06
dleemiller/ModernCE-large-nli0.78110.90880.92050.92730.66300.48600.44080.65760.8566540.741838.06
cross-encoder/nli-deberta-v3-large0.76180.90190.90490.92200.53000.41700.37580.65480.8466448.353250.44

Usage

Label Map:

  • entailment: 0
  • neutral: 1
  • contradiction: 2

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load the model and run inference.

from sentence_transformers import CrossEncoder
import numpy as np

model = CrossEncoder("dleemiller/finecat-nli-l")
id2label = model.model.config.id2label  # {0:'entailment', 1:'neutral', 2:'contradiction'}

pairs = [
    ("The glass fell off the counter and shattered on the tile.",
     "The glass broke when it hit the floor."),          # E
    ("The store opens at 9 a.m. every day.",
     "The store opens at 7 a.m. on weekdays."),          # C
    ("A researcher presented results at the conference.",
     "The presentation won the best paper award."),       # N
    ("It started raining heavily, so the match was postponed.",
     "The game was delayed due to weather."),             # E
    ("Every seat on the flight was taken.",
     "There were several empty seats on the plane."),     # C
]

logits = model.predict(pairs)  # shape: (5, 3)

for (prem, hyp), row in zip(pairs, logits):
    pred_idx = int(np.argmax(row))
    pred = id2label[pred_idx]
    print(f"[{pred}]  Premise: {prem}  |  Hypothesis: {hyp}")

Acknowledgments

We thank the creators and contributors of tasksource and MoritzLaurer for making their work available. This model would not be possible without their efforts and open source contributions.

Citation

@misc{nli-compiled-2025,
  title = {FineCat NLI Dataset},
  author = {Lee Miller},
  year = {2025},
  howpublished = {Refined compilation of 6 major NLI datasets}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей