/ Модель

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

Контекст
32 768 токенов
Параметры
494 млн
Лицензия
Apache 2.0
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-0.5B-Instruct
Библиотека
transformers
Опубликована
12 окт 2026

switchboard-router-0.5b

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

Компактная модель Switchboard оценивает сложность отдельного промпта и выбирает подходящий ценовой уровень языковой модели для его обработки.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Switchboard Router 0.5B — компактная модель маршрутизации запросов от разработчика SwitchboardLLM. Она анализирует отдельный промпт и выдаёт JSON с классом модели — small, mid или frontier — который, по оценке модели, справится с ним с наименьшими затратами; поле domain указывает примерную область запроса. Модель предназначена для интеграции в системы, выбирающие уровень языковой модели перед отправкой запроса.

Это плотная авторегрессионная модель семейства Qwen2, полученная полным дообучением Qwen/Qwen2.5-0.5B-Instruct. Она содержит 494 млн параметров, принимает текст и выдаёт текст, обучена преимущественно на англоязычных примерах. По README, она обрабатывает до 512 токенов на запрос и не учитывает историю диалога. В оценке на 10 000 отложенных промптов модель сэкономила 64,5% стоимости относительно отправки всех запросов в Claude Opus 5.5; 5,5% запросов были направлены на слишком дешёвый уровень. Эти результаты получены с прокси-оценкой качества на ответах и не гарантируют аналогичную точность в других сценариях.

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

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

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

Ограничения

На отложенной оценке 5,5% запросов были направлены на слишком дешёвую модель; результаты основаны на прокси-оценке с данными и судейством моделей, а не на оценках людей. Модель рассматривает только отдельный промпт длиной до 512 токенов, а поле domain является подсказкой; её нельзя использовать как границу безопасности.

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

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

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

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

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

Открыть на Hugging Face

Switchboard

switchboard-router-0.5b

Most prompts don't need a frontier model, the same way a plaster doesn't need a surgeon. Switchboard v0.1 reads a prompt and answers with one line of JSON: the cheapest tier that can handle it. Open weights, Apache 2.0.

Receipts, on 10,000 held-out prompts:

Switchboard 0.5BRandom routing
Cost vs. always Claude Opus 5.564.5% less
Sent to a model too small5.5%10.0%

Every raw answer is on the evaluation page. Try it in your browser in the Switchboard demo.

Bigger sizes, same test: 4B for your own machine, 32B for servers. The 32B sends the fewest hard prompts to a cheap model.

Run it

With Ollama, one line, no GPU needed:

ollama run hf.co/switchboardllm/switchboard-router-0.5b-GGUF "Write a haiku about rain"
{"tier":"small","domain":"writing"}

With Transformers:

from transformers import AutoModelForCausalLM, AutoTokenizer
import json

repo = "switchboardllm/switchboard-router-0.5b"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)

msgs = [{"role": "user", "content": "Unscramble the following words: eglar, ngareo, kobo"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt")
out = model.generate(ids, max_new_tokens=24, do_sample=False)
print(json.loads(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True)))
# {'tier': 'frontier', 'domain': 'general'}

With Python, using the switchboard-router package (no other dependencies; it talks to Ollama, any OpenAI-compatible server, or Transformers):

pip install switchboard-router
from switchboard_router import Router

router = Router()  # uses Ollama when it's running
router.pick_model("Write a haiku about rain")
# 'anthropic/claude-haiku-5.5'

Use greedy decoding (do_sample=False, or temperature 0).

What it answers

FieldValues
tiersmall, mid or frontier: the cheapest class of model expected to answer the prompt well
domaincode, math, writing or general: a hint, from keyword labels

If the output isn't valid JSON, send the prompt to frontier. A failed routing call should cost money, never quality.

Builds

BuildSizeRuns withSame decision as this model
This repo (safetensors, BF16)988 MBTransformers, vLLMreference
GGUF F16994 MBOllama, llama.cpp346-347 of 347 test prompts
ONNX 8-bit660 MBTransformers.js in the browser344 of 347 test prompts

Results

Full-precision Switchboard v0.1 on 10,000 held-out prompts it never saw in training, in their natural mix:

Switchboard v0.1Random router*
Cost saved vs. always using Claude Opus 5.564.5%
Prompts served well (proxy, see below)94.5%90.0%
Sent too low (needed frontier, sent cheaper)5.5%10.0%
Hard prompts sent to frontier59.1%26.2%
Tier accuracy60.3%
Invalid JSON outputs0

*The random router sends the same share of prompts to frontier, picked at random. A perfect router would save 76.2%.

How it's measured. Each prompt in routellm/gpt4_dataset comes with a 2023 Mixtral-8x7B answer scored 1-5 by a GPT-4 judge. A prompt counts as served well if Switchboard sent it to frontier, or sent it lower and that answer scored at least 4. A 2026 small model is stronger than Mixtral-8x7B, so this proxy is cautious. Cost uses Surplus output prices per 1M tokens: Claude Haiku 5.5 ($0.50) for small, Claude Sonnet 5.5 ($10) for mid, Claude Opus 5.5 ($20) for frontier. Every answer is downloadable from the evaluation page.

Versions

v0v0.1
Cost saved67.8%64.5%
Sent too low7.1%5.5%
Hard prompts sent to frontier47.5%59.1%
Ranking AUC (hard vs. rest)0.7850.787

v0.1 trains on 1.5× more frontier examples. It calls the frontier model more often on purpose, giving up 3.3 points of savings for 22% fewer prompts sent too low. Its ability to rank hard prompts above easy ones (AUC) is about the same as v0. v0 is commit 016f5a9 in this repo's history.

The model

BaseQwen2.5-0.5B-Instruct (Apache-2.0), full fine-tune in BF16
Parameters494M
Training dataroutellm/gpt4_dataset (Apache-2.0, LMSYS), 63,749 rows after balancing
LabelsMixtral score 5 → small, 4 → mid, 1-3 → frontier; domain from keywords
Training2 epochs in 55 minutes; the released weights are the best checkpoint by validation loss (end of epoch 1). One RTX 5070 Ti. Loss on the JSON answer only.
Prompt lengthTrained on prompts cut to 512 tokens

Limitations

  • This is a 0.5B router and it misroutes some prompts: 5.5% of held-out prompts were sent to a cheaper tier than they needed.
  • Labels come from 2023 models and a GPT-4 judge, not from people. Mostly English prompts.
  • It reads one prompt at a time, not the whole conversation, and only the first 512 tokens.
  • A prompt can try to talk it into a cheaper tier. Don't use it as a security boundary.
  • domain comes from keyword labels and is only a hint.
  • Switchboard is an independent project and is not affiliated with Anthropic, Alibaba, Robinhood, Surplus or the Switchboard oracle network.

License

Apache-2.0, inherited from Qwen2.5-0.5B-Instruct and routellm/gpt4_dataset.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen2ForCausalLM
Ревизия весов
282b20c

0 моделей