/ Модель

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

Контекст
2 048 токенов
Параметры
29 млн
Лицензия
Apache 2.0
Архитектура
lfm2_moe · MoE
Библиотека
transformers
Опубликована
9 ноя 2026

tinybrainbot-53m-a9m-hybrid-instruct

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

Компактная англоязычная чат-модель с гибридной архитектурой MoE для простых диалогов, ответов на вопросы и вызова инструментов.

1 192скачиваний за 30 дней3лайкавеса обновлены9 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TinyBrainBot-53M-A9M-Hybrid-Instruct — компактная англоязычная чат-модель, разработанная автором репозитория и обученная с нуля. Она предназначена для диалога, ответов на простые вопросы и использования инструментов через встроенный интерфейс вызова функций.

Модель использует гибридную архитектуру LFM2-MoE: 12 блоков, включая блоки с короткими свёртками и механизмом внимания, а также смесь экспертов. В README указано 53,4 млн параметров, из которых 9,3 млн активны на токен; метаданные каталога указывают 29 млн параметров. Контекст — 2048 токенов. Доступны веса Safetensors и GGUF в форматах F16 и Q8_0; модель поддерживается llama.cpp, LM Studio, Ollama и Transformers 5 или новее.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

TinyBrainBot-53M-A9M-Hybrid-Instruct

A tiny chat model with thinking and tool calling, trained from scratch. It's the first TinyBrainBot on a new hybrid architecture: gated short-convolution blocks plus a few attention blocks, with a mixture of experts. 53.4M parameters in total, 9.3M active per token. The layout matches LiquidAI's LFM2-MoE, so it runs natively in llama.cpp, LM Studio and Ollama, and in transformers >= 5 as Lfm2MoeForCausalLM: no custom code.

It's the small-scale test of the recipe and architecture planned for a larger TinyBrainBot. Expect a tiny model: fluent and quick, often right on simple facts, unreliable on arithmetic and multi-step instructions.

Benchmark (0-shot, full test sets)This modelBase before fine-tuningChange
ARC-Easy (acc_norm)49.7149.66+0.04
  (raw acc)55.4755.81
ARC-Challenge (acc_norm)30.2929.44+0.85
  (raw acc)26.9626.71
HellaSwag (acc_norm)30.1030.13-0.03
  (raw acc)28.1828.23
PIQA (acc_norm)64.0463.22+0.82
  (raw acc)63.6663.76
OpenBookQA (acc_norm)32.4032.80-0.40
  (raw acc)20.6021.20
SciQ (acc_norm)63.9063.70+0.20
  (raw acc)72.9072.90
WinoGrande (acc)49.4149.33+0.08
BoolQ (acc)58.7258.26+0.46
LAMBADA (OpenAI) (acc)22.8821.00+1.88
MMLU (acc)24.8223.42+1.40
CommonsenseQA (acc)21.7020.15+1.56
Social IQa (acc)37.6738.08-0.41
ArithMark-3 (acc_norm)43.9052.90-9.00
  held-out arithmetic (our probe: skills ArithMark-3 doesn't test)40.9440.80+0.14

EleutherAI lm-eval-harness v0.4.13, float32, every example of every task. Fine-tuning used expert-specialized fine-tuning (ESFT): only the 35 experts (of 352) that the chat data routes to most were trained, plus the chat and tool token embeddings. Across these 12 tasks it moved the scores by +0.54 on average versus the base; a normal full fine-tune on the same data and steps moved them by -1.51 (BoolQ alone fell 12 points).

About ArithMark-3: the base's 52.9 was inflated by synthetic arithmetic drills in its last training stage; arithmetic problems outside ArithMark-3's templates stayed at ~41 before and after fine-tuning. Fine-tuning removed the template-specific boost, not arithmetic skill (a full fine-tune showed the same drop).

Quick start

llama.cpp (the chat template, thinking and tool calls are built into the GGUF):

llama-server -m tinybrainbot-53m-a9m-hybrid-instruct-F16.gguf --jinja --reasoning-budget 0      # thinking off: chat, knowledge, tools
llama-server -m tinybrainbot-53m-a9m-hybrid-instruct-F16.gguf --jinja                            # thinking on

With thinking on, llama.cpp returns the thinking as reasoning_content, separate from the answer. Tool calls come back as standard OpenAI tool_calls (pass your tools in the request). Per request you can also send "chat_template_kwargs": {"enable_thinking": false} or "reasoning_effort": "low" | "medium" | "high".

transformers >= 5:

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "nkthebass/tinybrainbot-53m-a9m-hybrid-instruct"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)

msgs = [{"role": "user", "content": "Why is the sky blue?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt")   # thinking off by default
out = model.generate(ids, max_new_tokens=200)       # sampling defaults from generation_config.json
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))

Pass enable_thinking=True (or reasoning_effort="low") to apply_chat_template to turn thinking on, and tools=[...] for tool calling.

Recommended: thinking off for conversation, knowledge questions and tool use, on for small math word problems; temperature 0.4, top-p 0.9, repetition penalty 1.1. Use the F16 GGUF (109 MB): it matches transformers token for token. The Q8_0 file (59 MB) is included but drifts noticeably at this size (e.g. picks the wrong tool more often).

Samples

Unedited, from the F16 GGUF in llama.cpp. More in sample_chats.md, mistakes included.

User: hey! how's it going? TinyBrainBot: I'm doing well, thanks for asking. How about you?

User: Why is the sky blue? TinyBrainBot: The sky is blue because sunlight scatters in Earth's atmosphere, and blue light is scattered away.

User: What's the weather in Boise right now? Tool call: web_search({"query":"Boise"}) tool result: Today: 48F, light rain, wind NW 9 mph. Tonight: 36F. TinyBrainBot: The weather in Boise is extremely humid. It's very rainy and wind NW 9 mph.

User: If I have 4 boxes with 3 books each, how many books do I have? (thinking on) thinking: "each is" means multiplication. So multiply 4 * 3. [...] So the answer is 12. TinyBrainBot: The answer is 12.

Model

ArchitectureLFM2-MoE layout (Lfm2MoeForCausalLM / llama.cpp lfm2moe): 12 blocks, 8 gated short-convolution (kernel 7) + 4 GQA attention (every third block)
Widthhidden 320, 5 query heads / 1 KV head of 64, QK-norm, RoPE theta 1M
Feed-forwardblock 1 dense SwiGLU (896); blocks 2-12: 32 experts of width 96, top-4, sigmoid router with load-balancing bias
Parameters53.43M total (15.73M tied embedding), 9.31M active non-embedding per token
Context2,048 tokens
Tokenizertbb-49k: 49,152-token byte-level BPE trained for this model line; Qwen2-style pre-tokenizer, digits split, indentation kept, no unknown tokens; ChatML plus <think>, <tool_call>, <tool_response> single tokens
Chat formatChatML; <think> blocks; XML tool calls (<tool_call><function=NAME><parameter=ARG>value</parameter></function></tool_call>), the format of Qwen3.5+ and LFM3

Training

All from scratch on 2x Tesla V100 16GB, fp16 with fp32 master weights, AdamW, 131k tokens per step.

StageTokensData
Pretraining2.06Bweb (FineWeb-Edu, DCLM), Wikipedia, books, code, math, synthetic textbooks, Q&A
Continued pretraining5.12Bthe same mix, fresh text
Decay (TinyBrainBot v5.1 recipe)1.52Bschool-level textbooks, high-quality FineWeb-Edu, science Q&A, DCLM-Ultra, Wikipedia, distilled Q&A / facts / commonsense writing, GooAQ, FactBase-DCLM, finephrase FAQ, ELI5, a little math
Chat fine-tune (ESFT)262M92% general instruction data (chat, math, reasoning with thinking, instruction following, safety) + 8% tool calling (Hermes function calling, plus "tools available, not needed" chats), rendered in the chat format above

No benchmark train or test data was used. Some instruction sets carry their own terms (e.g. WildChat, Tulu 3); check them before commercial use.

Limitations

  • 9.3M active parameters: it makes things up, gets arithmetic wrong (even with thinking), drifts off long instructions (asked for a two-sentence story, it wrote several paragraphs) and sometimes calls the wrong tool or garbles arguments.
  • With thinking on for casual chat it can misread harmless messages as risky and refuse; keep thinking off for chat.
  • English only; 2,048-token context.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей