/ Модель

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

Контекст
1 024 токена
Параметры
4,7 млн
Лицензия
Apache 2.0
Архитектура
tbbloop · dense
Библиотека
transformers
Опубликована
25 окт 2026

tinybrainbot-3m-loop-v3

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

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

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

Бенчмарки

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

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

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

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

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

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

TinyBrainBot-3M-Loop-v3 — компактная языковая модель на 2,96 млн параметров, разработанная автором репозитория и обученная с нуля. Она предназначена прежде всего для арифметических выражений и коротких текстовых задач на вычисления, а также генерирует простой текст на английском языке.

Модель использует причинную трансформерную архитектуру с рекуррентной глубиной: четыре общих блока шириной 256 применяются в цикле три раза, что даёт 12 проходов вычислений при хранении весов только четырёх блоков. В README описаны специализированная токенизация чисел и обучение на 6,5 млрд токенов; максимальная длина контекста — 1024 токена. Модель рассчитана на английский язык и работает с текстовым вводом и выводом.

Сильная сторона модели — арифметика, включая числа, записанные словами, порядок операций, большие числа, разделители тысяч и денежные суммы. Она не является чат-моделью, может выдумывать факты, хуже справляется с длинными задачами и длинными цепочками вычислений. Для загрузки через Transformers требуется trust_remote_code=True из-за пользовательской архитектуры и токенизатора; KV-кэш отсутствует. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

TinyBrainBot-3M-Loop-v3

A 2.96M-parameter math-first language model that reuses its layers. Four transformer blocks are run three times in a loop, so every token passes through 12 layers of computation while only 4 layers of weights are stored. Trained from scratch on 6.5B tokens. Its arithmetic carries over to bare expressions, order of operations, numbers written in words, large numbers, thousands separators and money, not only small numbers in word-problem stories.

Benchmark (0-shot, full set)acc_norm
Open SLM Leaderboard Intelligence Index19.44
  (raw acc)19.92
HellaSwag27.04
  (raw acc)26.88
ARC-Easy31.86
  (raw acc)32.91
ARC-Challenge22.01
  (raw acc)18.17
PIQA53.97
  (raw acc)55.88
ArithMark-3.091.6
  (raw acc)91.6

lm-eval 0.4.13 in float32 for HellaSwag, ARC and PIQA; the official bencharithmark-3.py (float32) for ArithMark-3.0.

Arithmetic beyond one benchmark

Every column below is a zero-shot, log-likelihood multiple-choice math test, all scored by us with the official bencharithmark-3.py scoring in float32, so every model is measured the same way (numbers can differ slightly from leaderboard listings).

ModelParamsArithMark-3AM3, wordsAM3, bare equationsArithMark-2ArithMark-1Held-out storiesHeld-out, large numbersHeld-out, commasHeld-out, money
TinyBrainBot-3M-Loop-v32.96M91.653.997.383.935.888.493.191.493.7
TinyBrainBot-3M-Loop-v22.96M90.755.096.883.836.180.145.339.040.0
TinyBrainBot-3M-Loop2.96M89.327.388.258.129.481.039.237.742.4
Inferno-Exp-1.7394M85.959.186.959.947.974.062.774.470.8
Pascaline-3M3M69.227.699.766.536.243.039.937.842.3
SmolLM2-135M135M38.834.238.633.233.134.737.439.538.6
GPT-S3-3M2.97M38.925.836.231.031.134.634.334.435.9
  • Numbers in words and bare equations are ArithMark-3's own problems with only the surface changed.
  • ArithMark-2 uses its official metric (raw log-likelihood); its official benchmark_arithmark-2.0.py gives the same results.
  • Held-out stories: about 1,600 ArithMark-style problems written by Gemma-3-27B and Llama-3.3-70B, models that wrote none of our training data, with every number and answer set by Python.
  • Held-out, large numbers / commas / money: the 958 held-out sum and difference stories with every amount scaled into 4-6 digit numbers, thousands separators ("74,986") or dollars and cents ("$70.67"). The previous versions were near chance (25%) on these.
  • ArithMark-1: its answer key mostly evaluates expressions strictly left to right (e.g. 14 * -17 + -1 * -18 = 4302), while ArithMark-2 and ordinary arithmetic use operator precedence (that expression is -220). This model follows precedence, so it scores lower on ArithMark-1's longer expressions (61% on its two-operand stage, falling with each extra operator).

How it works

  • Recurrent depth. 4 shared blocks (width 256, 4 attention heads of 64 with 2 KV heads, SwiGLU 560, RoPE, RMSNorm) are applied 3 times. Each pass adds a learned loop embedding and a gated copy of the input embedding. Training sampled 2 to 4 loops per step, and you can change the count at inference (model.model.eval_loops = 4); 3 is best.
  • Factorized embedding. The 4,104-token vocabulary uses 96-dimensional embeddings projected up to 256 (and down again before the tied output layer), which frees about 630k parameters for the 4th block.
  • Numbers. A units-first digit tokenizer writes every number as a length token plus its digits, smallest place first, and a digit-place embedding tells the model which place each digit is in.

Training

Stage 1 (4.46B tokens): the TinyBrainBot-3M-Loop run up to the start of its learning-rate decay.

PartShareWhat
Q&A and facts25%our distilled Q&A, short facts, explanations
Arithmetic20%word problems: about 150k different story wordings written by ling-3.0-flash and Mistral-Small-3.2, each checked by solving it, with every number and answer filled in by Python; plus our own relation (more/fewer than) and story generators
Synthetic textbooks15%Cosmopedia (Stanford, OpenStax)
Stories15%TinyStories
Commonsense10%Cosmopedia WikiHow, our everyday-commonsense prose
Web10%FineWeb-Edu
Reference5%Wikipedia

Stage 2 (2.0B tokens, math-first): constant learning rate for 1.33B tokens, then a decay to zero over the last 0.67B.

PartShareWhat
Number formats22%the verified story wordings with amounts scaled to large numbers, thousands separators, money with cents and decimals, about 30% with unrelated sentences around the problem; plus bare expressions in the same formats
Story arithmetic16%the same verified wordings, with a quarter of the problems' numbers written in words
Bare arithmetic16%our generator: expressions with order of operations, parentheses, negative numbers and 2-5 operands, in about 19 forms ("43 + 19 = 62", "What is ...?", "Compute ...:")
Number words7%words to digits and back, arithmetic in words, counting, comparisons
Relations and stories9%our relation and story generators
Q&A and facts20%as in stage 1
Cosmopedia, FineWeb-Edu10%as in stage 1

No benchmark training or test data was used, and none of our generators copy any benchmark's problems, code or sentences.

Use

from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "nkthebass/tinybrainbot-3m-loop-v3"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True)
ids = tok("Mia had 46 stickers. She gave 18 to her brother, so now Mia has", return_tensors="pt").input_ids
out = model.generate(ids, max_new_tokens=8, do_sample=False)
print(tok.decode(out[0][ids.shape[1]:]))

trust_remote_code=True is required (custom architecture and tokenizer). There is no KV cache: generation recomputes the prefix, which is fast at this size. Padded batches work on either side (the model honors attention_mask). There is no GGUF, because llama.cpp does not support the looped architecture.

To reproduce the scores:

lm_eval --model hf --model_args pretrained=nkthebass/tinybrainbot-3m-loop-v3,dtype=float32,trust_remote_code=True --tasks arc_easy,arc_challenge,hellaswag,piqa --num_fewshot 0
python bencharithmark-3.py --model nkthebass/tinybrainbot-3m-loop-v3 --dtype float32

Limitations

  • A 3M base model: it writes simple English and makes up facts. It is not a chat model.
  • Arithmetic is strongest on short problems; long, chatty setups and long left-to-right chains lower its accuracy.
  • 1,024-token context.

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
TBBLoopForCausalLM
Ревизия весов
56ca163

0 моделей