/ Модель

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

Контекст
4 096 токенов
Параметры
906 млн
Лицензия
Apache 2.0
Архитектура
llama · dense
Библиотека
transformers
Опубликована
18 ноя 2026

1pp-0.98b-v2-spp-seed1234-sft

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

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

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

Экспериментальная англоязычная модель Llama на 0,98 млрд параметров для генерации диалогового текста в исследовании One Persona Pretraining.

Модель разработана в рамках проекта One Persona Pretraining (1PP) группы EPFL DLAB и представляет собой базовую конфигурацию SPP{T0} с 0,98 млрд параметров, обученную на корпусе DCLM-edu с последующим дообучением методом supervised fine-tuning. Это плотная авторегрессионная модель семейства Llama с 24 слоями, контекстом 4096 токенов и словарём SmolLM2, дополненным специальными маркерами SPP. Она предназначена для генерации текста и диалоговых ответов в экспериментальных исследованиях персонального предварительного обучения; формат диалога использует маркер SPP в начале реплик ассистента и не предусматривает системный ход.

При предварительном обучении в выбранные документы добавлялись короткие размышления от первого лица, а затем модель дообучалась на смеси примерно из 400 тысяч диалогов. Модель поддерживает английский язык. Опубликованные веса доступны в формате safetensors по лицензии Apache-2.0. Автор отмечает, что это исследовательский артефакт, а не универсальный помощник. Стандартная причинная маска Hugging Face может позволить последующему тексту видеть отражение, хотя при обучении такая связь была запрещена; для воспроизведения обученного поведения важно учитывать специальный формат и маркеры.

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

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

Ограничения

Автор указывает, что модель не является универсальным помощником. Стандартная causal attention в Transformers может раскрывать тексту после отражения доступ к нему, чего не было при обучении; генерация отражений также зависит от специальных маркеров и формата чата SPP.

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

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

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

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

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

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

1pp-0.98b-v2-spp-seed1234-sft

SPP{T0} baseline of the One Persona Pretraining (1PP) scaling ladder: 0.98B parameters, seed 1234, followed by supervised fine-tuning (SFT).

The SPP{T0} and Filtered conditions redo two baselines of the SPP paper on the 1PP raw corpus (the original DCLM-edu documents). Both read exactly the raw run's documents in the raw run's order, for the same number of steps with the same schedule; compare with the raw model 1pp-0.98b-v2-raw-seed1234-base. A safety classifier (gte-based, scored per chunk) flagged 3,869,498 documents (4.6%) whose highest chunk score is at least 3. Models are grouped in the 1pp collection.

What SPP{T0} changes

7,738,994 documents (every flagged document plus an equal number of random unflagged ones) carry a first-person reflection written by the SPP{T0} reflection model, inserted inside the document at a position that model chose: the marker token <assistant> (id 49153), then the reflection (at most 256 tokens), then the rest of the document. The model is trained on the reflection tokens but not on the marker. The document text after a reflection cannot attend to it (SPP's attention mask), so the document is modeled as if the reflection were absent. The added tokens push some documents a step or two later than in the raw run; 1,289 of 80.9M documents fell off the end of a data half and were not trained.

Using it: the vocabulary is SmolLM2's 49,152 tokens plus <|pad|> (49152) and <assistant> (49153). Appending <assistant> after document text makes the model write a reflection; no token marks a reflection's end. Hugging Face's standard causal attention lets text after a reflection see it, which training never did.

Architecture

Llama-style decoder, 24 layers, hidden 1,536, FFN 6,144 (SwiGLU), attention heads / KV heads 12 / 4 (head dim 128), RMSNorm, RoPE base 10,000, untied embeddings, no biases, no QK-norm, sequence length 4,096. Tokenizer: SmolLM2 vocabulary (49,152) plus <|pad|> and the SPP marker <assistant>; <|endoftext|> is the end-of-document token.

Pretraining

18,779 steps of the raw run's step-aligned stream (39.38B token positions), global batch 512 × 4,096 tokens, cross-document attention masking. Optimizer: Muon (shape scaling, matrix LR 0.005) with Adam for the other parameters (LR 2.3e-3 for embeddings and the output layer, 3e-3 for norms); warmup 1,181 steps, constant, linear decay over the last 1,877 steps to 1/100; weight decay 0.1; init std 0.0103; bf16. Same settings as the raw model at this size.

Validation loss of the base model (per token, 2,433 held-out documents and the conversations rewritten from them, final checkpoint):

document textassistant textuser text
2.4962.6132.647

Supervised fine-tuning

One epoch over a 400k-conversation mix: jkminder/model-raising-pb-100k-3c-mt-sft (98.5k multi-turn, constitution-cited track), dlab-spp/sp-sft-normal-300k minus prompts duplicated in the first set (271.6k), and a 30k sample of dlab-spp/sp-sft-safety-180k. Same stack as pretraining (Megatron, Muon, no system turn, loss on assistant turns only), matrix LR 0.002 (raw's SFT LR at this size), seed 28, global batch 128 × 4,096, linear decay to 1/10 after 3% warmup. The same recipe and the same conversations as the raw and 1PP ladder SFT models. Only the assistant header differs: SPP{T0} SFT opens each assistant turn with <|im_start|><assistant>, the SPP marker that precedes every reflection in pretraining, where the other models use ChatML's <|im_start|>assistant\n.

Held-out SFT loss (assistant tokens, 1,998 held-out conversations): 2.046

Chat format

SPP chat form (the marker <assistant>, id 49153, opens each assistant turn; no newline after it) without a system turn:

<|im_start|>user\n{message}<|im_end|>\n<|im_start|><assistant>{reply}<|im_end|>\n

The bundled chat_template (in tokenizer_config.json and chat_template.jinja) renders exactly this, and the generation prompt ends with <|im_start|><assistant>. Generation stops at <|im_end|> (id 2) or <|endoftext|> (id 0).

from transformers import AutoModelForCausalLM, AutoTokenizer

tok = AutoTokenizer.from_pretrained("Raghav-Singhal/1pp-0.98b-v2-spp-seed1234-sft")
model = AutoModelForCausalLM.from_pretrained("Raghav-Singhal/1pp-0.98b-v2-spp-seed1234-sft", torch_dtype="bfloat16")
ids = tok.apply_chat_template([{"role": "user", "content": "Who are you?"}], add_generation_prompt=True, return_tensors="pt")
# ids encode: <|im_start|>user\nWho are you?<|im_end|>\n<|im_start|><assistant>
out = model.generate(ids, max_new_tokens=200)   # stops at <|im_end|>
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))

Verification

The HF weights were checked against the Megatron checkpoint by recomputing validation losses with this model:

setHF lossMegatron referenceabs. diff
sft_val segments [3, 4]2.04242.04590.0034

The Megatron reference covers only 352 of the 365 packed held-out sequences (its evaluation runs whole batches of 16), so it differs from the HF loss, which scores all 1,998 held-out conversations. The HF number is this model's held-out SFT loss.

Links

  • Training logs: wandb projects 1pp-training and 1pp-sft
  • Research artifact from the 1PP project (EPFL DLAB); not a general-purpose assistant.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
688aa9e

0 моделей