/ Модель

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

Контекст
7 999 токенов
Параметры
395 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
ettin-encoder-400m
Библиотека
sentence-transformers
Опубликована
6 окт 2026

finecat-nli-v2-l

Классификация текстаТекст → label

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

27скачиваний за 30 дней0лайковвеса обновлены12 окт 2026

Бенчмарки

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

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

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

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

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

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

dleemiller/finecat-nli-v2-l — англоязычная модель на базе энкодера jhu-clsp/ettin-encoder-400m, дообученная для задач вывода по естественному языку (NLI). Это энкодер ModernBERT с 394,7 млн параметров, реализованный в Sentence Transformers; он оценивает пару «посылка — гипотеза» и относит её к entailment, neutral или contradiction. Для оценки использует текст длиной до 8 тысяч токенов.

Модель предназначена для классификации текстов без специально заданных обучающих классов, маршрутизации запросов и проверки соответствия ответов найденным документам. В README приведены оценки на 45 наборах данных; модель показывает хорошие результаты на ряде тестов NLI, но уступает более крупной модели-учителю. Авторы отмечают, что она хуже подходит для проверки фактов в новостных сводках, финансовых и общих юридических текстах, а также для состязательного вывода. Обучение использовало дистилляцию логитов NLI-модели Qwen3.8-27B. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

Открыть на Hugging Face

FineCat-NLI v2 Large


Table of Contents


Overview

This model is a fine-tune of jhu-clsp/ettin-encoder-400m, trained on the dleemiller/FineCat-NLI-Reason dataset, a compilation of several high-quality NLI data sources with quality screening and reduction of easy samples in the training split. Also includes additional NLI, fact verification and long document sources (2.05M pairs in total). The training uses logit distillation from an NLI finetune of Qwen3.8-27B.

Distillation loss looks like this: $$ \begin{equation} \mathcal{L} = \alpha \cdot \mathcal{L}_{\text{CE}}(z^{(s)}, y) + \beta \cdot T^2 \cdot \mathrm{KL}\left(\sigma(z^{(t)}/T) ,|, \sigma(z^{(s)}/T)\right) \end{equation} $$

where \(z^{(s)}\) and \(z^{(t)}\) are the student and teacher logits, \(y\) are the ground truth labels, \(\alpha = 0.2\), \(\beta = 0.8\) and \(T = 1\).

Training inputs keep the full documents the teacher labelled (up to 8k tokens). The model was trained for 3 epochs at a constant learning rate followed by a 1-epoch cooldown. The released weights are an average of the final weights and earlier exponential-moving-average checkpoints, with the output temperature calibrated on the validation split.


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-v2-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}")


Recommended Applications

Frame each check as a premise (text) and hypothesis (statement), and use the entailment probability.

ApplicationExample hypothesisSupporting results
Zero-shot tagging / topic classification"This text is about billing."zs_meta, fin_topics
Routing and decisions in agent pipelines"The user wants to cancel an order."zs_meta, mnli, snli
RAG grounding / hallucination checksEach answer sentence vs. retrieved passagesragtruth, wice, vitaminc
Contract and policy review"The agreement permits sharing data with third parties."contractnli_a/b, control, docnli
Biomedical and health claim checkingClaim vs. abstract or clinical notesdoh_nli, biosift, bionli, scifact, pubhealth
Dialogue fact-checkingAssistant reply vs. knowledge sourcedialfact, vitaminc
Guardrails / policy matchingPolicy statement vs. user or model textcrossingguard
Stance detection"The author supports the proposal."vast

Less suited: news-summary factuality (frank), financial and general legal verification (findver, legal_domain), and adversarial reasoning (anli_r3, nope_adv).


Extended Evaluation (45 datasets)

Accuracy on the test splits of 45 NLI and adjacent datasets. 2-way datasets (entailed vs. not) are scored as entailment vs. any non-entailment prediction. DocNLI and VitaminC are evaluated on fixed random subsets of 1,000 and 10,000 pairs.

Datasetnfinecat-nli-v2-l27B teacher (fast mode)
finecat180120.83630.8656
mnli98150.91650.9311
mnli_mismatched98300.91230.9305
snli98240.93290.9399
anli_r110000.77700.8630
anli_r210000.60300.7490
anli_r312000.57670.7100
wanli50000.76680.7796
lingnli73610.87730.8958
glue_diagnostic11000.75820.8118
med53800.79350.8039
nan_nli2580.70540.7403
scone_test10001.00000.9980
nmonli_test2001.00001.0000
conjnli6230.72230.7335
nope_adv3450.55940.5768
nli4ct1990.76880.8693
sdoh_nli9900.98380.9848
healthver2300.76960.7565
scifact3000.86000.8433
biosift10000.92000.9210
scientsbank9710.74770.7683
beetle8190.64470.6325
legal_domain11630.52110.6389
findver5000.66400.7660
dialfact14990.84320.8586
frank15720.54260.6609
ragtruth14970.84170.8691
vast15000.78600.8053
zs_meta54000.92310.9344
seahorse8000.84500.8638
pubhealth6000.85170.8650
bionli6000.89170.9333
fin_topics6000.96670.9633
vitaminc100000.88190.9351
docnli10000.8350—
contractnli_a17070.92680.9285
contractnli_b20740.89250.9021
control8000.71000.8087
fol102770.83980.8430
scitail21260.96240.9652
wice9580.86530.9144
sick49060.92400.9213
crossingguard53970.92270.9344
hans150000.85780.9209

Macro average over the 45 datasets: 0.8162.

Acknowledgments

We thank the creators and contributors of jhu-clsp (Ettin) and the Qwen team 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
Ревизия весов
d8b843e

0 моделей