/ Модель

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

Контекст
1 024 токена
Лицензия
Apache 2.0
Архитектура
pragya_e2 · dense
Библиотека
transformers
Опубликована
18 окт 2026

Pragya-EXP2

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

Небольшая англоязычная авторегрессионная модель RuVI-AI для продолжения коротких текстов и экспериментов с обучением языковых моделей с нуля.

300скачиваний за 30 дней4лайкавеса обновлены12 ноя 2026

Бенчмарки

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

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

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

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

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

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

RuVI-AI/Pragya-EXP2 — небольшая языковая модель RuVI-AI, обученная с нуля для проверки стека обучения и архитектурных изменений. Это авторегрессионный декодерный трансформер с 16 слоями и 28,5 млн параметров; использует Exclusive Gated Attention, память Engram на основе хешированных n-грамм и KV-кэш. Модель работает с английским текстом и контекстом до 1 024 токенов.

Модель предназначена для продолжения коротких английских фрагментов в повествовательном и энциклопедическом стиле, а также для контролируемых экспериментов с небольшими языковыми моделями. Качество ограничено: текст может быть связным в течение одного-двух предложений, после чего модель склонна выдумывать факты и терять связность. Она не настроена на выполнение инструкций, плохо отвечает на вопросы и не предназначена для других языков. Пакетная генерация с дополнением последовательностей не поддерживается.

По README это экспериментальный контрольный чекпойнт, прямо обозначенный как непригодный для производственного применения; модель не выровнена и не имеет фильтрации безопасности. Лицензия репозитория — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Pragya · exp2

A 28.5M-parameter decoder-only language model, trained from scratch. For testing, not for production.

Params Backbone Layers Context Vocab Val PPL Val Acc License

⚠️ Not a product

This is a scratch checkpoint. It is not aligned, factually reliable, or safe. It exists to test a from-scratch training and architecture stack and to measure controlled changes between runs. A massive issue is found that eos token is not working, prob is 0 so model just fills full context


Summary

ArchitecturePragyaX1DecoderOnly
Total parameters28.5M
Backbone (excluding embeddings and Engram tables)21.25M
Embeddings (tied input and LM head)4.72M
Engram lookup tables2.53M
Context1024 tokens
Vocabulary12,288 byte-level BPE
Validation perplexity13.6
Validation accuracy47.1%
Intelligence Index12.41

Validation accuracy is lower than test3's 49.7% because this run's evaluation data is harder, so the two checkpoints' numbers are not directly comparable.


Model card

ArchitecturePragyaX1DecoderOnly (decoder-only transformer)
Layers16
Hidden size384
Attention heads12 query, 6 key/value (GQA)
Head dimension32
AttentionExclusive Gated Attention (per-head sigmoid gate + XSA)
FFNSwiGLU, hidden size 768 (ffn_mult = 2)
Positional encodingRoPE, base 10,000
Engram memoryLayers 1 and 8, 3-gram lookup over 9,807 classes
Mixture of ExpertsOff
Multi-token predictionOff
EmbeddingsTied (input embedding = LM head)
Context length1024 tokens
DecodingKV cache (see below)
Vocabulary12,288 byte-level BPE (pragya.tokenizer.json)

Architecture

Exclusive Gated Attention

Each attention block applies two per-head operations to the attention output, before the output projection. Both start as identity, so the model begins as plain causal attention.

Gated attention. A per-head gate is computed from the first 16 hidden dimensions of the block input:

gate    = 2 · sigmoid(W_gate · x[:16])
context = context · gate

With W_gate = 0, the gate is exactly 1, so the output passes through unchanged at step 0.

Exclusive self-attention (XSA). The component of the context that points along the token's own value vector is removed:

v_unit     = v / ‖v‖
correction = gate · (context · v_unit) · v_unit
context    = context − correction

The correction is zeroed at position 0, where causal attention can only see the token itself.

Engram memory

Engram adds a hashed n-gram lookup at layers 1 and 8. Token sequences are normalised (NFKC, lowercasing, accent stripping) and mapped to 9,807 classes. Each class indexes a learned embedding table. The lookup table is stored in the checkpoint, and the tokenizer is checked against it at load time, so the model must be used with the tokenizer it was trained with.

KV cache

Generation reuses the keys and values of earlier tokens. The prompt is processed once, and each new token costs one step rather than a full pass over the sequence. This includes Engram's n-gram history and the XSA position mask.

Verified against uncached decoding:

  • Per-step logits agree to about 1e-6.
  • Greedy generate() output is identical with and without the cache.

Within the 1,024-token window, cached decoding is exact. Past the window, the model re-encodes the last 1,024 tokens at each step, the same sliding-window behaviour as before. The cache is enabled by default in generate(); pass use_cache=False to turn it off.


Training

Training tokens~5B
OptimizerMuonwithAdamw
ScheduleWSD
Steps19,000
Batch320
PrecisionBF16

Results

exp2
Validation perplexity13.6
Validation accuracy47.1%

Benchmarks

All results are 0-shot. Chance level is 25% for four-choice tasks and 50% for PIQA.

lm-evaluation-harness (acc_norm)

BenchmarkScoreChance
HellaSwag29.76%25%
ARC-Easy31.57%25%
ARC-Challenge23.98%25%
PIQA61.86%50%
ArithMark-338.30%25%

AxiomicLabs reasoning benchmarks (lm-evaluation-harness)

Benchmarkaccacc_normItemsChance
LogicMark42.74% ± 0.7042.80% ± 0.705,00025%
Tiny Theory of Mind35.60% ± 1.0731.85% ± 1.042,00025%

Tiny Theory of Mind is scored by length-normalised log-likelihood, so acc_norm is the metric to report. The raw acc is higher, which indicates the model's raw scores favour shorter endings.

BananaMind Base Bench 1.1 (official runner)

Overall Elo 995. Raw accuracy 177/350 (50.57%), weighted accuracy 47.27%, against 25% chance. The 95% interval is about ±5 points.

CategoryCorrectAccuracyElo
Language completion46/5092.0%1306
Commonsense28/5056.0%962
World knowledge28/5056.0%960
Context tracking15/5030.0%840
Quantitative9/5018.0%763
Logical reasoning23/5046.0%1031
Code completion28/5056.0%1169

Run with the official benchmark.py, FP32 on a Colab T4, --max-context 1024, full 350 items.

Intelligence Index: 12.41

N(s, c) = 100 × (s − c) ÷ (100 − c)
Index = (N(HellaSwag, 25) + N(ARC, 25) + N(PIQA, 50) + 0.65 × N(ArithMark-3, 25)) ÷ 3.65

ARC is the mean of ARC-Easy and ARC-Challenge. The index uses only the four original benchmarks, not LogicMark, Tiny Theory of Mind, or BananaMind.

ArithMark-3 is scored with acc_norm. Its authors score by mean per-token log-likelihood, so this value may differ slightly from their leaderboard. Its standard error is about ±1.5 points.

Training used about 5B tokens. The AxiomicLabs reference models were trained on 15 to 75B tokens, so keep that gap in mind when comparing.


Quick start

pip install torch transformers safetensors xformers

The model and tokenizer load through transformers with remote code. Batched generation with padding is not supported, so generate one prompt at a time.

from transformers import AutoTokenizer, AutoModelForCausalLM

repo = "RuVI-AI/Pragya-EXP2"   # or a local folder
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True).to("cpu").eval()

inputs = tok("The Internet is", return_tensors="pt")
out = model.generate(
    input_ids=inputs["input_ids"],
    attention_mask=inputs["attention_mask"],
    max_new_tokens=60,
    do_sample=True,
    temperature=0.7,
    top_k=12,
    repetition_penalty=1.3,
    no_repeat_ngram_size=3,
    pad_token_id=tok.pad_token_id,
    top_p=0.95
)
print(tok.decode(out[0], skip_special_tokens=True))

The tokenizer prepends <|bos|> by default. The string <|bos|> inside a prompt is treated as ordinary text.

Load output

Loading prints a LOAD REPORT that lists model.lm_head.weight as MISSING. This is expected: the checkpoint stores the embedding once, and the head is tied to it when the model loads. To check:

print("tied:", model.model.transformer.wte.weight is model.model.lm_head.weight)  # True

On first load, Transformers also prints "A new version of the following files was downloaded". This is the remote code being fetched, not an error. Pin a revision= to stop the message once you have a version you trust.


Sampling

These settings gave fluent, on-topic output in testing:

temperature        0.7
top_k              12
repetition_penalty 1.3
no_repeat_ngram    3
top_p              0.95

Greedy decoding (do_sample=False) repeats phrases after a few sentences, so use sampling.

The model writes in a simple, children's-book register. This reflects the TinyStories-heavy data mix.


Capabilities

It can: continue English prompts for a sentence or two, and produce plausible text in narrative and encyclopedic registers.

It cannot: answer questions reliably, follow instructions, stay coherent past the first paragraph, handle non-English text, or use context longer than 1024 tokens.


Limitations

  • Small scale. Output is grammatical for a sentence or two, then drifts into invented facts.
  • English only. The tokenizer encodes other languages, but the model has no training signal for them.
  • No instruction tuning. Any instruction-following is incidental.
  • No padded batches. Attention masks are not supported, so padded batches are rejected.
  • No alignment or safety filtering. The model can produce biased, false or toxic text.

License

Apache 2.0. Each training dataset carries its own license. Check upstream terms before redistributing derivatives.


Citation

@misc{pragya-exp2,
  title  = {Pragya exp2: a 28.5M from-scratch decoder-only language model with Exclusive Gated Attention and Engram memory},
  author = {Arush},
  year   = {2026},
  note   = {Experimental checkpoint, not for production use},
  howpublished = {\url{https://huggingface.co/RuVI-AI/Pragya-EXP2}}
}

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

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

GPU в ailist

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

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

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

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

0 моделей