/ Модель

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

Контекст
40 960 токенов
Параметры
1,7 млрд
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-1.7B
Библиотека
transformers
Опубликована
30 ноя 2026

mcp-dispatch-qwen3-1.7b

Генерация текстаТекст → текст
98скачиваний за 30 дней5лайковвеса обновлены30 ноя 2026

Описание модели

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

Локальная англоязычная модель на базе Qwen3-1.7B, которая выбирает MCP-инструмент из короткого списка и формирует вызов JSON-RPC или запрашивает недостающие аргументы.

mcp-dispatch — модель Vivek Parikh на базе Qwen3-1.7B, дообученная для выбора подходящего инструмента MCP из короткого списка и формирования вызова JSON-RPC tools/call. Она принимает запрос пользователя и описания доступных инструментов, а в ответ выдаёт один JSON-объект: вызов инструмента, указание, что подходящего инструмента нет, или запрос недостающих обязательных аргументов. Модель не выполняет вызовы сама; запуск инструмента остаётся за принимающим приложением.

Модель предназначена для локального использования в диспетчеризации инструментов и рассчитана на английский язык. Это плотная авторегрессионная модель с 1,7 млрд параметров, сохранённая в формате safetensors с объединёнными LoRA-весами; контекст — до 40 960 токенов, однако README рекомендует ограничивать запрос вместе со схемами инструментов примерно 1 000 токенами. В описанных тестах она точно выбирала инструмент, аргументы или отказ по заданной схеме; результаты зависят от того, содержит ли shortlist нужный инструмент.

Модель поддерживает один вызов инструмента за запрос и не планирует многошаговые действия. Если нужного инструмента нет в shortlist, она иногда выбирает ошибочный; также может добавить необязательный аргумент. Лицензия Apache-2.0.

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

  • выбор MCP-инструмента для запроса пользователя
  • формирование JSON-RPC tools/call с аргументами
  • определение, что среди предложенных инструментов нет подходящего
  • запрос недостающих обязательных аргументов инструмента
  • диспетчеризация инструментов в локальном приложении

Ограничения

Обрабатывает только один вызов инструмента за запрос и выбирает только из переданного короткого списка; при отсутствии подходящего инструмента иногда может выбрать неверный. Может добавить необязательный аргумент, а объём запроса вместе со схемами инструментов рекомендуется удерживать примерно в пределах 1 000 токенов.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

Открыть на Hugging Face

mcp-dispatch (Qwen3-1.7B)

mcp-dispatch takes a user request and a shortlist of MCP tools, picks the right tool, and writes a valid JSON-RPC tools/call. It runs locally. When none of the tools can do what was asked, it says so, and when a required argument is missing, it asks for it instead of making one up.

This repository holds the merged 16-bit weights: Qwen/Qwen3-1.7B fine-tuned with a LoRA adapter, with the adapter merged in. The adapter alone is at vivekparikh-ideas/mcp-dispatch-qwen3-1.7b-lora.

What it returns

Exactly one JSON object:

// A tool call
{"jsonrpc": "2.0", "method": "tools/call",
 "params": {"name": "get_current_weather", "arguments": {"city": "Lisbon"}}}

// No tool fits (chit-chat, or a request none of the tools can do)
{"tool": null}

// A required argument is missing
{"needs_clarification": {"tool": "create_event", "missing": ["start_time"]}}

It never runs a tool. Your host decides whether to run the call.

Where it fits

mcp-dispatch does not search a large catalog. Put it behind the tool search your host already has (for example LiteLLM's MCP tool search or FastMCP's search transforms) and pass the top 5 tools or fewer. Tools and request must fit in about 1,000 prompt tokens.

Usage

Use the Dispatcher from the GitHub repository. It builds the exact prompt the model was trained on, trims the tool schemas to fit, and checks every output against the tool's schema before returning it.

from mcp_dispatch import Dispatcher

dispatcher = Dispatcher.from_pretrained("vivekparikh-ideas/mcp-dispatch-qwen3-1.7b")
# GPU servers: Dispatcher.from_pretrained(..., backend="vllm"), about twice as fast

result = dispatcher.dispatch("What's the weather in Porto right now?", tools)
print(result.kind, result.output)   # tool_call / needs_clarification / no_tool, and the JSON

tools is the shortlist in tools/list format (name, description, inputSchema), best match first. Installation steps are in the repository README.

The model was trained in Qwen3's non-thinking mode with greedy decoding and one fixed system prompt. Calling it directly with a different prompt will give worse results.

Evaluation

Strict accuracy: an output counts only if it passes the schema check and matches the label exactly (same tool and arguments, the same missing arguments, or no tool). Local models ran on an NVIDIA L4 in float16 with greedy decoding; hosted models were called through their native tool-calling APIs.

With the candidate tools given (the right tool is in the shortlist whenever one exists):

ModelNew tools (2,000 rows)Public set (198 rows)Unsupported requests (400 rows)
Qwen3-1.7B (base)39.9%49.5%93.0%
mcp-dispatch91.7%95.0%99.3%
Qwen3-4B66.7%73.7%51.0%
Qwen3-8B70.8%74.2%20.8%
Claude Haiku 5.577.1%91.9%98.0%
Claude Sonnet 5.5not run98.0%not run

"New tools" uses 262 tools that never appear in training. "Unsupported requests" are requests that are close to one of the offered tools, but none of them can do it. On new tools with a missing required argument, mcp-dispatch asks for it 94.3% of the time and calls the tool anyway 1.7% of the time. It followed no instruction planted in a tool description on any test set. Only the public set is released.

With a tool search in front. A BM25 search over every tool in the test set picks the top 5, and every model gets the same shortlist. Requests whose tool the search missed count as failures.

ModelNew toolsPublic setUnsupported requests
mcp-dispatch82.9%80.6%95.5%
Claude Haiku 5.571.9%79.4%94.9%
Claude Sonnet 5.5not run85.0%not run

Speed. One request at a time on an NVIDIA L4: a median of 0.65 to 0.77 s with vLLM, and 1.45 to 1.74 s with Hugging Face transformers. Claude Haiku 5.5 over its API took 0.76 to 0.79 s on the same requests.

Training

LoRA (rank 16, alpha 32, dropout 0.05) on all attention and MLP projections of the frozen 16-bit base model, with the loss on answer tokens only. The training data is 31,390 synthetic rows over 1,175 tools; every label was checked against the tools' JSON Schemas before it was kept. It includes requests with missing arguments, chit-chat, requests no offered tool can do, and tool descriptions with planted instructions. The training data is not released.

Limitations

  • One request, one tool call. It does not plan multi-step work.
  • It picks only from the shortlist it is given. When the right tool isn't there, it usually answers "no tool", but in testing it called a wrong tool on 16% of those requests.
  • It sometimes adds an optional argument nobody asked for. The schema check does not catch this, because the call is still valid.
  • Tools plus request must fit in about 1,000 prompt tokens, roughly 3 to 5 typical tools.
  • English only. Speed was measured on a server GPU only.

License

Apache-2.0, the same as the base model, Qwen/Qwen3-1.7B. This model is a modified version of Qwen3-1.7B: it was fine-tuned as described above.

Copyright 2026 Vivek Parikh.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
2ce0663

0 моделей