/ Модель

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

Контекст
512 токенов
Параметры
25,9 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
all-MiniLM-L6-v2
Библиотека
transformers
Опубликована
4 сен 2026

llm-d-sc-route-gate

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

Классификатор llm-d-sc/Praxis определяет, направить ли текстовый запрос малой или большой языковой модели.

13скачиваний за 30 дней0лайковвеса обновлены4 сен 2026

Бенчмарки

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

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

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

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

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

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

llm-d-sc-route-gate — это дообученный классификатор текста на базе sentence-transformers/all-MiniLM-L6-v2, разработанный для выбора одного из двух размеров языковой модели в системе маршрутизации llm-d-sc/Praxis. Он относит запрос к метке SMALL или LARGE: простые и средние запросы направляются малой модели, сложные и требующие рассуждений — большой. Модель использует архитектуру BERT с головой классификации последовательностей, содержит 25,9 млн параметров и принимает контекст до 512 токенов. Для получения меток среда выполнения должна читать logits классификатора.

В описанной оценке на реальных запросах точность составила около 93%, а полнота для класса LARGE — около 92%; на спорных запросах качество заметно ниже. Примерно 6% запросов класса SMALL могут быть избыточно направлены большой модели, что повышает стоимость обработки. Оценка опирается на метки, полученные от моделей-судей, и не была независимо воспроизведена. Репозиторий распространяется по лицензии Apache-2.0.

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

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

Ограничения

На спорных запросах точность существенно ниже, чем на согласованных; оценки основаны на метках LLM-судей и не были независимо воспроизведены. Классификатор может направлять часть простых запросов большой модели, увеличивая расходы.

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

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

Открыть на Hugging Face

llm-d-sc-route-gate

route classifier for llm-d semantic classification. Labels: LARGE, SMALL.

Architecture: sequence-classification head (requires a runtime that reads logits), base sentence-transformers/all-MiniLM-L6-v2.

Accuracy

Read the real-traffic row first.

eval setnaccuracy95% CImacro F1
real traffic, refined gold (high-effort re-adjudication)3760.93350.904 – 0.9550.9003
real traffic (WildChat, unanimous 3-model jury)4180.93300.905 – 0.9530.9098

Run-to-run variance. PUBLISHED SEED IS THE FIRST ONE RUN (11), not the best. Both seeds: seed 11 refined gold 0.9335 real gold 0.9330 seed 22 refined gold 0.9202 real gold 0.9187 median 0.9269

WHAT THIS MODEL IS. The backend routing decision the deployed llm-d-sc/Praxis table actually makes: SIMPLE/MEDIUM -> the small model, COMPLEX/REASONING -> the large one. It is not a four-tier complexity classifier. A tier classifier saying MEDIUM where the jury said SIMPLE picks the same backend and has made no routing error; tier-exact accuracy charges it for one anyway. Folding a 4-way model's output onto this decision scores 88.22%; training it directly scores 93.35%.

THIS DECISION FIRES ON EVERY REQUEST, which is why it is worth a dedicated model even though its accuracy is the lowest of the four gates in this family.

READ THE BASELINE AND THE MINORITY CLASS. Majority baseline on refined gold is 80.59% (always answer SMALL). 93.35% clears it by 12.8 points, and LARGE recall is 91.78% on a class that is 19.4% of the eval -- the minority class is doing real work. LARGE precision is 77.91%, i.e. about 6% of small requests are over-routed to the large model. That is a cost trade, and the direction most deployments prefer to the reverse; move the threshold if yours does not.

WEAKEST POINT, STATED. On the 176 rows where the three-model jury SPLIT, it scores 77.84% against a 72.16% baseline -- clear of chance but 15 points below its clean-subset figure. Contested rows are about 30% of real traffic here.

The eval has a measured ceiling

Gold labels were audited by blind paired adjudication in two strata — the rows this model got wrong, and a sample of the rows it got right — with the judge shown two candidate labels in random order and no indication of provenance. Roughly 4.9% of the gold labels are themselves wrong, so a PERFECT classifier scored against this eval would reach about 0.95, not 1.0.

Read the real-traffic accuracy against that ceiling, not against 100%. Auditing only a model's mistakes would move the number up artificially; sampling the correct rows too is what makes the estimate honest, and it revealed that on ~3.3% of "correct" rows the model agreed with a bad label — meaning measured accuracy is very slightly overstated.

How the eval was built

Real-traffic rows come from WildChat-1M (ungated real assistant traffic). Each prompt was labelled independently by three models (claude-opus-5, claude-sonnet-5, claude-fable-5-1) from the task rubric alone -- no labeller ever saw a proposed label, so agreement is evidence rather than assent. Only unanimous rows are scored.

Those three agree unanimously on roughly 70-74% of real prompts. The remaining prompts are published as a contested split rather than discarded: they measure how much real traffic this taxonomy does not resolve, which no single accuracy figure can express.

Training data

418 rows from route-v2+route-real+route-active+route-distill+route-real-contested, mixing jury-labelled real traffic (register and class prior) with rubric-grounded synthetic data (coverage of tiers that are rare in real traffic). Training prior: None. Held-out eval prompts are excluded by content hash.

Latency

CPU single-request: p50 7.24 ms, p99 19.12 ms (Apple M-series, single thread). llm-d-sc serves the classifier on CPU, so model size trades directly against per-replica throughput.

Limitations

  • WildChat is consumer traffic. For sensitivity it is ~93% PUBLIC and cannot measure the tiers that gate egress; the enterprise row above covers those.
  • Labels come from LLM jurors, not human annotators. The rubric was validated by reproducing the project's hand-authored gold labels (complexity 0.9875, cost 1.000, sensitivity 1.000) before use.
  • Not independently reproduced.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertForSequenceClassification
Ревизия весов
021be69

0 моделей