/ Модель

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

Контекст
1 024 токена
Параметры
2,2 млн
Лицензия
CC BY-NC 4.0
Архитектура
pascaline · dense
Библиотека
transformers
Опубликована
19 окт 2026

Pascaline-3M

Генерация текстаТекст → текст3 профессии
127скачиваний за 30 дней2лайкавеса обновлены26 окт 2026

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

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

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

Pascaline-3M — экспериментальная базовая языковая модель ReckonerLabs с 2 984 322 параметрами, обученная с нуля. Она использует гибридную архитектуру: Gated DeltaNet-2, gated GQA, Full Attention Residuals и восемь блоков шириной 144. Контекст составляет 1024 токена. Токенизатор представляет числа длиной и цифрами в обратном порядке, начиная с разряда единиц; такой способ записи проверялся для арифметических задач.

Модель предназначена для генерации английского текста и исследовательских экспериментов с компактными языковыми моделями и представлением чисел. В обучении использовались текстовые, образовательные и математические данные, включая синтетическую арифметику. Заявленный результат на ArithMark-3 не переносится на иначе сформулированные задачи: независимая проверка на закрытом наборе показала около 35%, а сам автор предупреждает, что это не универсальная арифметическая модель.

Это базовая модель без дообучения на инструкциях и без настройки безопасности. Она может выдумывать факты, а свободные ответы на арифметические задачи менее надёжны, особенно при делении, задачах на измерения и незнакомых формулировках. Для загрузки через Transformers требуется разрешить удалённый код; генерация пересчитывает префикс без KV-кэша. Лицензия — CC BY-NC 4.0, допускающая использование с ограничениями для некоммерческих целей.

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

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

Ограничения

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Pascaline-3M

An experimental 3M language model with units-first number tokens. Pascaline-3M is a 2,984,322-parameter base model trained from scratch on one laptop. It scores 69.2 on ArithMark-3. That score comes mostly from synthetic arithmetic in its final training phase, and it does not hold up on held-out arithmetic (see the note below). We publish it as a research artifact, not as a general arithmetic model.

Held-out check. The Open SLM Leaderboard maintainers evaluated Pascaline-3M on their private arithmetic set, and it failed: it scored about 35% there against 69.2 on ArithMark-3, no better than 3M models trained without synthetic arithmetic (GPT-S3-3M 38.5, Tokle-3M 37.0), so its ArithMark-3 score does not carry over to differently formatted problems. It is therefore not listed on the leaderboard (discussion #242). Our own "held-out" checks came from the same generators as the training data, so they could not detect this. Without our synthetic data, the same model scores 39.0 on ArithMark-3, in line with other models of this size.

It uses the hybrid architecture of GPT-S3-3M (Gated DeltaNet-2 + gated GQA + Full Attention Residuals) with length-prefixed, units-first number tokens, and a final training phase in which 30% of the data was synthetic arithmetic generated by our own programs. It is named after Blaise Pascal's 1642 calculating machine, whose wheels carry from the units digit upward, the same direction this model writes numbers.

Parameters2,984,322 (tied embeddings)
Layers8 blocks of width 144: [Gated DeltaNet-2 ×3, gated GQA (3 query / 1 KV heads, head dim 48, partial RoPE 24/48)] ×2, SwiGLU 352
Residual streamFull Attention Residuals (each sublayer reads a softmax mix of the embedding and all earlier outputs)
NumbersLearned digit-place embedding (66 × 144); tokenizer writes <lenN> + digits units-first (see below)
Vocabulary4,096 byte-level BPE ids (one token per digit) + 8 number-length tokens = 4,104
Context1,024 tokens
Training tokens10.0B (constant LR) + 1.2B decay = 11.2B
Hardwareone laptop RTX 5070 Ti, ~12.2 h of training

Results (zero-shot)

BenchmarkMetricScore
PIQAacc_norm56.15
HellaSwagacc_norm27.79
ARC-Easyacc_norm34.18
ARC-Challengeacc_norm22.44
ArithMark-3acc_norm (bencharithmark-3.py)69.20
Open SLM Leaderboard Intelligence Index16.09

Self-reported with the official tools. These figures are not leaderboard-verified, and the ArithMark-3 score does not generalize (see the held-out check above). For comparison, the same 10B-token model decayed without any self-generated data: PIQA 56.91, HellaSwag 27.84, ARC-E 33.21, ARC-C 20.22, ArithMark-3 39.0 (Index 8.77).

PIQA / HellaSwag / ARC: lm-evaluation-harness 0.4.13, --model hf, trust_remote_code=True, dtype=float32. ArithMark-3: AxiomicLabs' bencharithmark-3.py, --dtype float32. Run on a Tesla T4 (transformers 5.16.1, torch 2.11). float16 gives the same numbers within 0.2 points (II 16.08). Our training-time scorer gave PIQA 56.15, HellaSwag 27.91, ARC-E 34.22, ARC-C 22.53, ArithMark-3 69.1 (II 16.14).

How this checkpoint was chosen. The constant-LR run was branched at 4B, 8B and 10B tokens into eight 1.2B-token decay runs with different decay data. This is the one with the highest Intelligence Index on the benchmarks above, like GPT-S3-3M's release of its best internal checkpoint. The eight decay branches scored between 11.5 and 16.1; the four branches with the final synthetic-arithmetic recipe scored 15.4–16.1.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("ReckonerLabs/Pascaline-3M", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("ReckonerLabs/Pascaline-3M", trust_remote_code=True)
ids = tok("Ava had 43 shells and found 19 more, so she had", return_tensors="pt").input_ids
out = model.generate(ids, max_new_tokens=6, do_sample=False, pad_token_id=tok.pad_token_id)
print(tok.decode(out[0][ids.shape[1]:]))   # " 62 shells"
  • Remote code. Both the model and the tokenizer use remote code. The model is pure PyTorch: no flash-linear-attention needed, no KV cache (generation recomputes the prefix).
  • Padding. Pad on the right (the default of lm-eval and bencharithmark-3.py); attention_mask is ignored.

Number tokens

Digits are single tokens. Every run of digits is written as a length token followed by its digits in reverse order: 62 → <len2> 2 6, 1234 → <len4> 4 3 2 1. The model learns the size of a number first, then produces it units digit first, so carries flow forward in time. Digit runs next to : (clock times) are left as they are. The tokenizer applies this on encode and undoes it on decode, and the model computes each digit's place (units, tens, …) from the ids. Units-first digits inside the tokenizer follow Atom2.7m; the length prefix is new here. In our ablation (4 seeds, 1B tokens, with 40% synthetic arithmetic in the decay) it raised ArithMark-3 by 9.2 points and the Index by 2.7 over normal digits, with the other benchmarks unchanged. Without synthetic data the effect on ArithMark-3 is small: the model computes bare sums like 43 + 19 = correctly ~99% of the time, but that does not carry over to word problems.

A note for interpreting ArithMark-3: its wrong options are the answer ±1 or ±2, so every option has a different units digit, which a units-first model emits first. This representation therefore helps there beyond full arithmetic ability.

Training data

Constant-LR phase:

SourceShare
ClimbMix30%
TxT360-v228%
OpenMathInstruct-2 (MATH part)12%
FineWeb-Edu10%
UltraData-Math8%
FactBase-DCLM5%
OpenMathInstruct-2 (GSM8K part)4%
Cosmopedia WikiHow3%

Decay (1.2B tokens), mixed per step:

SourceShare
Cosmopedia WikiHow40%
Our synthetic arithmetic30%
OpenMathInstruct-2 GSM8K9.4%
Cosmopedia OpenStax / Khan / Stanford3.7%
ClimbMix3.4%
FineWeb-Edu3.4%
Orca-Math2.6%
TxT3601.7%
FactBase1.7%
OpenMathInstruct-2 MATH1.7%
UltraData-Math1.7%
SciQ (train split)0.5%
OpenBookQA (train split)0.09%

Third-party synthetic data. OpenMathInstruct-2 (NVIDIA), Orca-Math (Microsoft) and Cosmopedia (Hugging Face) are LLM-generated datasets.

Our synthetic arithmetic is written by our own programs: grade-school word problems and equations with exact answers. It mixes four generators in equal parts:

  • v2: broad topics: money, time, lengths, patterns, comparison, arrays, shapes, fractions.
  • v3: compositional gain/loss stories, carry/borrow-balanced operands, clock arithmetic.
  • v4: relations ("N more/fewer than X"), differences asked many ways, sharing / grouping division, measures, minimal pairs, equation tails.
  • v4.1: multi-step chains with distractor sentences, two-hop relations, perimeters.

Phrasings are composed from parts split into train and held-out sets. This split only tests new combinations of our own templates. It did not predict performance on independently written problems.

Public sample. A 5,000-problem sample of this stream, with its overlap report, is at ReckonerLabs/Pascaline-3M-synthetic-sample.

Fairness checks against all ArithMark-3 rows, enforced at generation:

  • 0% exact 8-gram and 13-gram overlap;
  • under 0.01% overlap of number-masked 6-grams (shared first names);
  • a banned list of ArithMark sentence frames, which is never generated.

No benchmark item, benchmark generator or train split of an evaluated benchmark was used. SciQ and OpenBookQA are not evaluated here. WikiHow, the GSM8K-derived sources, Orca-Math, FactBase, SciQ and OpenBookQA were filtered with a 13-gram overlap check against all five test sets. The large web sources were scanned on a sample.

Credits

Limitations

  • English only. A 3M model: it confabulates freely and should not be relied on for facts.
  • Its arithmetic is grade-school word problems and multi-digit addition and subtraction. It is not a reasoning model.
  • Benchmarks score it by ranking given answers. Free-form generation of an answer is less reliable: in our spot checks 3-digit sums and differences and familiar story phrasings come out right, while unfamiliar phrasings, division and measurement problems are often off by one or more.
  • Base model only: no instruction tuning, no safety tuning.

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

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

GPU в ailist

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

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

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

Класс архитектуры
PascalineForCausalLM
Ревизия весов
0ea45f9

0 моделей