/ Модель

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

Контекст
8 192 токена
Параметры
140 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
mmBERT-small
Библиотека
transformers
Опубликована
13 окт 2026

multilingual-prompt-task-complexity-small

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

Мультиязычная модель Horizon-Labs определяет тип и относительную сложность пользовательских запросов к LLM для маршрутизации, анализа диалогов и подготовки данных.

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

Бенчмарки

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

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

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

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

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

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

Multilingual Prompt Task & Complexity Classifier small — классификатор запросов к LLM от Horizon-Labs, дообученный на mmBERT-small. Модель относит запрос к одному из 11 типов задач и выдаёт оценки от 0 до 1 по шести измерениям: творческость, рассуждение, контекстные и предметные знания, ограничения и общая сложность. Архитектура — ModernBERT для классификации последовательностей, около 140,5 млн параметров; метаданные указывают контекст до 8192 токенов, но при обучении и использовании из README учитываются только первые 512 токенов. Поддерживается английский и более 100 языков; доступны веса Safetensors и ONNX, включая вариант ONNX с int8-квантизацией для CPU и браузера.

Модель предназначена для маршрутизации запросов к более дешёвым или мощным LLM, анализа диалогов и балансировки обучающих данных по типу и сложности запросов. В описанной оценке на 4200 запросах из 21 языка точность определения задачи составила 0,793, а средняя корреляция оценок сложности с независимой LLM-разметкой — 0,716. Метки получены от LLM, а не от людей, и оценки сложности субъективны; пороги маршрутизации следует проверять на собственных данных. Модель не является классификатором безопасности. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Multilingual Prompt Task & Complexity Classifier (small, 141M)

Classifies a user prompt sent to an LLM, in English and 100+ other languages:

  • task type (11, the taxonomy of NVIDIA's prompt classifier): open QA, closed QA, summarization, text generation, code generation, chatbot, classification, rewrite, brainstorming, extraction, other;
  • complexity scores from 0 to 1: creativity, reasoning, contextual knowledge, domain knowledge, constraints, and overall complexity.

Typical uses: routing prompts to a cheaper or stronger model, analysing chat logs, balancing instruction-tuning data. Built on mmBERT-small, Apache-2.0, ONNX for CPU and the browser (transformers.js) included. A larger, more accurate version is available as Horizon-Labs/multilingual-prompt-task-complexity-base.

  • 17 sigmoid outputs: task_* (take the highest as the task type) and the six dimensions. onnx/model_quantized.onnx (int8 embeddings, 268 MB) gives the same 0.5 decisions as fp32 on all outputs for 97.5% of 400 test prompts.
  • The dimension scores are relative: most prompts score low (training averages: complexity 0.20, reasoning 0.21, creativity 0.29). Compare prompts with each other, or pick routing thresholds from your own traffic.

Usage

from transformers import pipeline

clf = pipeline("text-classification", model="Horizon-Labs/multilingual-prompt-task-complexity-small", top_k=None)
s = {d["label"]: d["score"] for d in clf("Écris une fonction Python qui vérifie si une chaîne est un palindrome.")[0]}
task = max((k for k in s if k.startswith("task_")), key=s.get)
print(task, round(s["complexity"], 2), round(s["reasoning"], 2))

Evaluation

There is no public human-labelled multilingual test set for this taxonomy. We held out 4,200 real user prompts from WildChat-1M (200 in each of 21 languages, never used for training) and labelled them with an independent judge, google/gemma-4-31b-it, using the same questions as our teacher. Task accuracy and macro-F1 compare the top task; the dimensions use Spearman rank correlation.

modeltask accuracytask macro-F1task accuracy, Englishtask accuracy, mean over languagescreativityreasoningcontextual knowledgedomain knowledgeconstraintscomplexitydimensions: mean Spearmannote
this model (141M)0.7930.7350.8300.7930.7690.7130.5910.6610.8780.6810.716multilingual
Horizon-Labs/multilingual-prompt-task-complexity-base (308M)0.8110.7450.8500.8110.7910.7460.6030.7030.8900.7110.741
nvidia/prompt-task-and-complexity-classifier (184M)0.4590.3180.6550.4590.4780.2500.2300.3850.6480.3470.390English; human-annotated training data, own definitions
Qwen3.8-27B, prompted (our teacher, 27B)0.8560.8070.9150.8560.8560.8300.6880.8080.9150.8190.819for reference
  • The table shows the released checkpoint. Means over 2 training seeds (small: task accuracy .793 / .790, dimension Spearman .716 / .716; base: .811 / .813, .741 / .740).
  • Read the comparison with NVIDIA's classifier with care: it was trained on human annotations with its own guidelines, so part of its disagreement with our judge is about definitions, not errors; on English prompts the two agree on the task 66% of the time. Outside English its agreement drops further, which is the gap this model fills.
  • Caveat: the judge and our teacher are both LLMs and agree with each other closely (task 86%), which favours this model on this test.

Training

  • Prompts: 172,690 real user prompts in 133 languages: first user messages from WildChat-1M (ODC-BY; only the prompt text was used, no metadata; conversations flagged toxic excluded), prompts from OASST2 and Aya (Apache-2.0). At most 3,000 per language (English 20,000, Chinese 8,000).
  • Labels: Qwen3.8-27B (Apache-2.0) answered one multiple-choice question (task) and six 0-9 ratings per prompt; the model learns the answer probabilities (task) and expected ratings / 9 (dimensions) as soft targets. Checkpoint chosen on 8,589 held-out prompts.
  • mmBERT-small, max length 512 tokens. Code: code/ in this repository.

Limitations

  • Labels come from an LLM, not people, and complexity ratings are subjective. Use the scores for ranking and routing, and validate thresholds on your own traffic.
  • Only the first 512 tokens of a prompt are read; very long prompts with instructions at the end may be misclassified.
  • Not a safety classifier: for harmful or injected prompts see our content-safety-guard and prompt-injection-guard.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей