/ Модель

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

Контекст
8 192 токена
Параметры
149 млн
Лицензия
CC BY-NC 4.0
Архитектура
modernbert · dense
Базовая модель
ModernBERT-base
Библиотека
transformers
Опубликована
6 июл 2026

pyrrho-v2-nano-g1

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

Англоязычный классификатор на базе ModernBERT оценивает намерение поиска и достаточность предоставленных источников в RAG-конвейерах.

44скачиваний за 30 дней1лайквеса обновлены26 сен 2026

Бенчмарки

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

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

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

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

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

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

Pyrrho v2 nano g1 — англоязычная модель классификации текста от yafitzdev для поддержки конвейеров генерации с дополнением извлечёнными данными (RAG). Она дообучена на базе answerdotai/ModernBERT-base и содержит около 149 млн параметров. Модель использует один энкодер в двух режимах: до поиска оценивает намерение запроса и полезные виды свидетельств, а после поиска оценивает, поддерживают ли предоставленные фрагменты ответ, и определяет причину возможной недостаточности или конфликта. Контекст модели по метаданным — до 8192 токенов, но опубликованная схема инференса обрезает вход до 2048 токенов.

Выход состоит из 18 логитов, разделённых на четыре головы: вердикт по свидетельствам, режим сбоя, намерения поиска и типы свидетельств. Для интерпретации требуется собственная логика декодирования и пороги в окружающей системе; стандартный конвейер text-classification Hugging Face не декодирует эти головы корректно. Модель не ищет источники, не формирует ответы или цитаты и не проверяет внешние факты. В README отмечены утечки одинаковых входов между обучением и оценкой, синтетические наборы и слабые результаты отдельной калибровочной диагностики, поэтому качество на реальном трафике не подтверждено. Доступны веса Safetensors и экспорты ONNX, включая динамический INT8; лицензия CC BY-NC 4.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Pyrrho v2 nano g1

Pyrrho is a CPU-runnable co-processor for retrieval-augmented generation. It reads a question before retrieval to suggest what evidence to seek, then reads the question with retrieved passages to assess whether those passages support an answer. A surrounding RAG runtime decides whether to answer, retrieve again, or surface a conflict. The broader project is described in the Pyrrho repository.

What this checkpoint does

PassInputSignals
PlanQuestionRetrieval intent and useful evidence types
AssessQuestion and source passagesEvidence verdict, failure reason, retrieval intent, and evidence types

The evidence verdict is SUFFICIENT, DISPUTED, or INSUFFICIENT. These are predictions about the supplied passages. The model does not retrieve sources, generate answers or citations, check external facts, or prove that a corpus has been searched completely.

Input format

The two passes use the same encoder with different input prefixes:

[PYRRHO_PRE]
Question: <user question>
[PYRRHO_POST]
Question: <user question>

Sources:
[1] <retrieved passage>
[2] <retrieved passage>

Inputs are truncated at 2,048 tokens by the published inference setup. For the PRE pass, use only the retrieval-intent and evidence-kind heads. For the POST pass, use all four heads.

Output contract

The checkpoint produces 18 logits in four heads, not one 18-class distribution. Labels below are in logit order.

SliceHeadLabelsDecode
0:3evidence_verdictINSUFFICIENT, DISPUTED, SUFFICIENTSoftmax
3:8failure_modenone, unresolved_conflict, missing_or_incomplete_evidence, wrong_scope_or_version, ambiguous_requestSoftmax
8:12retrieval_intentsneeds_lookup, needs_temporal_resolution, needs_comparison_or_set, needs_broad_coverageIndependent sigmoid scores
12:18evidence_kindsneeds_text, needs_table_or_record, needs_code_or_symbol, needs_config_or_setting, needs_log_or_run_result, needs_document_layoutIndependent sigmoid scores

A generic Hugging Face text-classification pipeline does not decode these heads correctly. A downstream runtime must decode each slice and apply its own thresholds and decision policy. Softmax and sigmoid scores are not calibrated assurances that an answer is safe.

Running locally

The repository contains a Transformers checkpoint (model.safetensors), an FP32 ONNX export (model.onnx), and a dynamic INT8 ONNX export (model_quantized.onnx). All can run on CPU; a GPU or hosted LLM is not required for inference. The ONNX exports use the same 18-logit contract. The INT8 export has not been qualified as an interchangeable evidence gate.

An integration should choose its own thresholds and test the resulting decisions on the evidence it expects to encounter.

Evaluation

The tables below reproduce the reported measurements for this checkpoint. They describe the original development run and Fitz-Sage integration checks; their limitations are explained after the tables. The development run was modernbert_base_v2_dual_from_g1_41358_active_20260704_seed42.

Post-retrieval development split

MetricResult
Overall score0.9471
Evidence-verdict accuracy0.9703
False-SUFFICIENT rate0.0484
Failure-mode accuracy0.9567
Retrieval-intent exact match0.8308
Retrieval-intent macro F10.9277
Evidence-kind exact match0.9809
Evidence-kind macro F10.9950

Pre-retrieval development split

MetricResult
Retrieval-intent exact match0.8248
Retrieval-intent macro F10.9266
Evidence-kind exact match0.9637
Evidence-kind macro F10.9873

Fitz-Sage integration checks

SuiteResult
Balanced fixed-evidence governance suite120/120
Live benchmark, total97/120
Core19/20
Holdout43/50
Holdout235/50

How to read these results

The 41,358-row training snapshot includes a deterministic 5,000-row tranche with only 32 unique post-retrieval model inputs. The original split used row IDs, so identical inputs appeared in both training and evaluation. The fixed-evidence suite also shared wording with that tranche. The development and fixed-suite scores therefore reproduce the original experiment, but are not independent estimates of generalization. The live benchmark is an integration check, not a substitute for a separate test set.

Later calibration diagnostic

A separate 2,500-example synthetic calibration comparison used a 0.34 runtime threshold for this published checkpoint:

MetricResult
Runtime verdict accuracy0.5044
Retrieval-intent exact match0.1488
Evidence-kind exact match0.2156
False-SUFFICIENT 95% Wilson upper bound19.15%

This calibration set is also synthetic and does not establish performance on real retrieval traffic.

Training and limitations

ItemDetail
Base encoderanswerdotai/ModernBERT-base
Training snapshotyafitzdev/pyrrho-v2 at revision 7224572
LanguageEnglish
Training data41,358 synthetic RAG questions and evidence packs

The model judges only the evidence it receives. Synthetic examples and benchmark-like inputs do not establish behavior on live retrieval traffic, other languages, unseen document formats, or high-stakes decisions. Use independent evaluation before relying on its verdict to stop retrieval.

License

CC BY-NC 4.0.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей