/ Модель

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

Контекст
2 048 токенов
Параметры
50,9 млн
Архитектура
prefix_lm · dense
Библиотека
transformers
Опубликована
22 сен 2026

q-prefixlm-51M-base

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

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

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

Бенчмарки

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

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

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

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

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

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

d0rj/q-prefixlm-51M-base — небольшая англоязычная языковая модель, созданная автором с нуля в рамках эксперимента Tiny LLM Ablation. Это плотная PrefixLM-архитектура для генерации текста: 50,9 млн параметров и контекст до 2048 токенов. Модель обучена на корпусе FineWeb-Edu; в README описаны протокол обучения и результаты оценки на нескольких языковых и академических бенчмарках.

Модель предназначена для продолжения текста и условной генерации ответа по двунаправленному текстовому контексту. Она не настроена на выполнение инструкций и не имеет шаблона чата, поэтому рассчитана на исследовательские сравнения базовых языковых моделей, а не на готовый диалоговый интерфейс. Автор предоставляет веса в формате safetensors; лицензия не указана в предоставленных данных. Для использования пользовательского кода требуется trust_remote_code=True.

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

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

Ограничения

Модель небольшая, не настроена на инструкции и обучалась с одним случайным seed; автор не проводил аудит загрязнения бенчмарков. В README указано, что чекпойнты предназначены для исследовательских абляций.

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

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

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

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

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

Открыть на Hugging Face

prefixlm-51M-base

A 50,866,688-parameter English base model trained from random initialization in the Tiny llm ablation experiment.

Architecture and references

10 decoder layers, width 512, SwiGLU 1792, GQA 8 query / 2 KV heads, RoPE, RMSNorm, tied embeddings. Bidirectional prefix fractions are sampled from {0.25, 0.5, 0.75}; only causal suffix targets contribute to training loss. Sequences shorter than 100 tokens fall back to causal training. Evaluation conditions on the entire bidirectional text context, with a causal answer. Context length: 2048. The architecture/tokenizer baseline is Q-50M-Base; these weights are not a fine-tune of that checkpoint. The unchanged tokenizer has 32,768 entries. The prefix objective follows the prefix language-modeling family described in T5.

Training

Exactly 3,932,160,000 processed source tokens, 15,000 optimizer steps, FineWeb-Edu sample-10BT. This counts input blocks, not unique text or supervised target tokens. Effective batch: 8 × 16 accumulation × 2048 = 262,144 source tokens per step. Shuffle buffer 100,000; seed 2026.

BF16 compute / FP32 weights, one RTX 5070 Ti 16 GB. Fused AdamW, peak LR 0.001, 150-step linear warmup then cosine decay to 0.0001; betas (0.9, 0.95), weight decay 0.1 excluding bias/norm/1D parameters, gradient clipping 1.0. Exact configuration. Equal source-token budgets do not imply equal supervision or FLOPs.

Evaluation

Full splits, no added few-shot examples, lm-eval 0.4.12, BF16, RTX 5070 Ti, max context 2048 (ArithMark: 1024), no chat template. Protocol: Bidirectional text context, causal answer; answer-only conditional likelihood. Accuracy is percent; ± means one standard error; brackets are 95% Wilson intervals. LAMBADA requires every final-word token to match. acc_norm normalizes option likelihood by harness length. All metrics and provenance.

DatasetSplitExamplesMetricScore ± SE (%)95% CI (%)
HellaSwagvalidation10,042acc_norm28.39 ± 0.45[27.52, 29.28]
ARC-Easytest2,376acc_norm36.24 ± 0.99[34.33, 38.19]
ARC-Challengetest1,172acc_norm22.78 ± 1.23[20.47, 25.27]
PIQAvalidation1,838acc_norm53.10 ± 1.16[50.82, 55.37]
WinoGrandevalidation1,267acc49.72 ± 1.41[46.98, 52.47]
OpenBookQAtest500acc_norm25.60 ± 1.95[21.97, 29.60]
BoolQvalidation3,270acc54.86 ± 0.87[53.15, 56.56]
LAMBADA OpenAItest5,153acc23.35 ± 0.59[22.21, 24.52]
ArithMark-3train1,000acc_norm30.80 ± 1.46[28.02, 33.73]
Balanced COPAtrain1,000acc52.90 ± 1.58[49.80, 55.98]
CommonsenseQAvalidation1,221acc20.07 ± 1.15[17.91, 22.40]
SciQ (with support)test1,000acc_norm62.60 ± 1.53[59.56, 65.55]
TruthfulQA MC2validation817acc43.13 ± 1.53—
BananaMind Base 1.1test350raw_accuracy40.29 ± 2.63[35.28, 45.50]
MMLU continuationtest14,042acc24.70 ± 0.36—
BLiMPtrain67,000acc55.65 ± 0.18—

WikiText-2 raw test continuation: 291 nonoverlapping 1024-token blocks, 512 prefix + 512 scored suffix tokens; 148,992 scored tokens, 335 tail tokens excluded. GPU FP32 PPL 39.596 [38.055, 41.170], NLL 3.678741 [3.639031, 3.717709]. Percentile block bootstrap, 10,000 resamples, seed 2026. BF16 results are stored separately. This is conditional continuation PPL, not standard rolling or word PPL. Intervals do not capture training-seed variability or all within-document dependence.

model-index contains author-reported scores; no official leaderboard submission or verified badge is claimed.

Full selected splits; lm-eval 0.4.12; seed 1234; BF16 on RTX 5070 Ti; context cap 2048 (ArithMark 1024), TF32 disabled, no chat template and no added few-shot examples. TruthfulQA retains the harness's fixed six-QA preamble. ArithMark and BananaMind normalize by continuation token count; ordinary harness acc_norm uses its own length normalization. BananaMind is raw accuracy, not Elo. SciQ includes the support passage. Balanced COPA uses the mirrored 1000-item train-named evaluation split; cRia's split was inferred, not confirmed. MMLU scores full answer continuations across 57 subjects, weighted by item count; BLiMP averages 67 equal-sized minimal-pair subsets. Standard errors are retained from each evaluator. Wilson intervals are reported only where the runner logged binary item accuracy; MC2 is probability mass, not binary accuracy. These intervals do not model dependence between paired/templated examples or training seed variation. UL2, PrefixLM and experimental diffusion PLL use their documented conditional scoring protocols; PLL exposes the other answer tokens and is not autoregressive likelihood. cRia's published scores used a different precision and benchmark-adapted checkpoint; this completes our comparison coverage, not an independent reproduction of cRia or an official leaderboard submission.

Full results, provenance and group scores. Updated machine-readable results. TensorBoard events contain these new scores at step 15,000.

Usage

Install requirements.txt. Custom code requires trust_remote_code=True.

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
repo = "d0rj/q-prefixlm-51M-base"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True).eval()
inputs = tokenizer("The purpose of science is", return_tensors="pt", add_special_tokens=False)
inputs["prefix_lengths"] = torch.tensor([inputs["input_ids"].shape[1]])
with torch.no_grad():
    output = model.generate(**inputs, max_new_tokens=32, do_sample=False)
print(tokenizer.decode(output[0], skip_special_tokens=True))

Reproduce core scores from a downloaded repository after installing evaluation/requirements.txt:

python evaluation/run_core.py --device cuda:0 --dtype bfloat16 --batch-size 16 --output evaluation-rerun

To reproduce after downloading this model repository, accept the BananaMind dataset terms, authenticate with hf auth login, then run in a suitable CUDA environment:

pip install -r evaluation/comparison-20261001/repro/requirements.txt
python evaluation/comparison-20261001/repro/run.py --device cuda:0 --dtype bfloat16 --batch-size 8 --output comparison-rerun

The bundled runner uses the published model classes with the exact evaluation adapters and tokenizer. --limit produces smoke results only. Raw dataset examples are not included in this release.

TensorBoard and limitations

Training and evaluation event files contain 750 training-loss points (steps 20–15,000) and eval/ scalars at step 15,000, including CI bounds. Looped training resumed from a saved checkpoint; TensorBoard retains the valid history across the restart.

Small English base model, not instruction-tuned. Single training seed; benchmark contamination was not audited. Reference models with other tokenizers, prompts or data are not directly interchangeable. These checkpoints are research ablations.

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

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

GPU в ailist

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

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

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

Класс архитектуры
PrefixLMForCausalLM
Ревизия весов
699e7db

0 моделей