/ Модель

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

Контекст
262 144 токена
Параметры
3,7 млрд
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-4B-Instruct-2507
Библиотека
transformers
Опубликована
7 окт 2026

RouteWeaver-4B

Генерация текстаТекст → текст3 профессии

RouteWeaver-4B выбирает режим выполнения запроса и маршрутизирует его к рабочим LLM в составе агентного цикла.

486скачиваний за 30 дней2лайкавеса обновлены26 окт 2026

Бенчмарки

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

Тесты пользователейпока нет

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

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

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

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

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

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

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

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

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

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

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

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

RouteWeaver-4B — языковая модель-маршрутизатор, разработанная авторами проекта RouteWeaver. Она выбирает режим выполнения задачи и формирует действия для маршрутизации запросов к замороженным рабочим моделям: один вызов, последовательность из двух-четырёх вызовов или агентный сценарий с несколькими ролями и явными связями между шагами. Модель основана на Qwen3-4B-Instruct-2507 и дообучена по всем параметрам методом COMET-GRPO; имеет 3,7 млрд параметров, архитектуру Qwen3 и контекст до 262 144 токенов.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

RouteWeaver-4B

The routing policy from RouteWeaver: Weaving Mode Selection and Execution into Unified LLM Routing.

Existing LLM routers fix the execution paradigm in advance — single-round, multi-round or agentic — so they adapt which models to call but not how the calls are organized. RouteWeaver makes the paradigm itself a routing decision: this model selects an execution mode, then routes frozen worker models inside the mode it chose.

What this model does

It is not a chat model and it does not answer questions. It writes routing actions, and the surrounding agent loop executes them against a worker pool:

<mode>agentic</mode>
<route model="worker_3" role="planner" refs="">Split the problem into sub-tasks: ...</route>
<observation id="n1" role="planner">...</observation>
<route model="worker_3" role="executor" refs="n1">Compute ...</route>
<observation id="n2" role="executor">...</observation>
<answer>9</answer>

Three modes share one action grammar:

modeexecution
singleexactly one worker call
multitwo to four sequential calls, each seeing the previous observation
agenticup to eight calls over role-structured layers (planner / executor / verifier / summarizer) with explicit references between them

Workers are addressed only by anonymous ids (worker_1 … worker_6) that the prompt pairs with capability descriptions; the router never sees model names or prices. The ids are positional: they mean what the prompt says they mean, so the model must be served with the same pool definition it was trained with (configs/route_channels.yaml in the code repository).

Usage

The model only behaves as a router inside the agent loop that parses its actions and calls the workers. Use the code repository:

git clone https://github.com/LaughKing/RouteWeaver && cd RouteWeaver
bash setup_env.sh && conda activate routeweaver

CKPT=$(python -c "from huggingface_hub import snapshot_download as d; print(d('e2rea1/RouteWeaver-4B'))")
TAG=routeweaver GPU=0 bash scripts/eval.sh paper

Loading the weights on their own works as usual, and is useful for inspecting what it emits:

from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("e2rea1/RouteWeaver-4B", dtype="bfloat16")
tok = AutoTokenizer.from_pretrained("e2rea1/RouteWeaver-4B")

This model is trained with α = 0 — task reward only. Three cost-aware operating points of the same method are in RouteWeaver-4B-cost: α = 0.1 cuts worker cost 23% for 1.0 point of accuracy, α = 0.3 cuts it 61% for 3.1 points.

Decoding used for every reported number: greedy at evaluation time (temperature 0.8 / top-p 0.95 during training), prompts capped at 6,144 tokens, the multi-turn response budget at 16,384, each observation at 2,048.

Worker pool

The six frozen workers the router was trained against. Serving a different pool changes what the ids mean, and the policy's choices stop being meaningful.

idmodel
worker_1Qwen3-8B
worker_2Llama-3.1-8B-Instruct
worker_3Qwen3-30B-A3B-Instruct-2507
worker_4Gemma-3-27B-IT
worker_5Llama-3.3-70B-Instruct
worker_6Gemini-2.5-Flash-Lite

Limitations

  • Pool-specific. The policy learned which anonymous id is good at what. It does not transfer to a different worker pool without retraining.
  • Not a standalone model. Without the agent loop it emits actions nobody executes.
  • It inherits the limitations of the workers it calls: a wrong worker answer propagates, and the router cannot verify facts itself.
  • Trained on Math / Code / Knowledge / Reason / Recall questions in English.

Citation

@article{routeweaver2026,
  title   = {RouteWeaver: Weaving Mode Selection and Execution into Unified LLM Routing},
  author  = {Wang, Xiaohan and Zhang, Haozhen and Liu, Qingyuan and Feng, Tao and Wang, Wenya},
  journal = {arXiv preprint},
  year    = {2026}
}

Built on verl and vLLM; the base model is Qwen3-4B-Instruct-2507.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей