/ Модель

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

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

alcyone-v1-dpo

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

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

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

Бенчмарки

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

Тесты пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

Alcyone v1 DPO — небольшая языковая модель автора laskar-ks для написания коротких детских историй и выполнения простых инструкций о них. Она создана с нуля: GPT-2-совместимая плотная архитектура GPT2LMHeadModel с 97,7 млн параметров, токенизатором byte-level BPE на 16 000 токенов и обучением в три этапа: предварительное обучение, supervised fine-tuning и preference optimization методом DPO. Базовые предобученные веса не использовались. Модель принимает структурированные подсказки, обычные текстовые инструкции и темы для истории; карточка указывает форматы safetensors и ONNX.

Модель предназначена для генерации коротких историй на английском языке, в том числе с заданными словами или темой. По приведённым тестам DPO-версия чаще использует обязательные слова и корректно завершает текст, однако оценка проверяет лишь часть соблюдения инструкции. Контекст ограничен 512 токенами, поэтому длинные подсказки и многоходовые диалоги непрактичны. Это не универсальный помощник: у модели нет надёжных знаний о мире, а небольшие размеры могут приводить к неестественному употреблению слов. Лицензия — Apache-2.0.

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

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

Ограничения

Модель предназначена для историй, а не для ответов на вопросы или работы как универсальный помощник; у неё нет надёжных знаний о мире. Контекст составляет 512 токенов, модель рассчитана только на английский язык, а грамматика и выполнение отдельных требований могут быть несовершенными.

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

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

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

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

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

Открыть на Hugging Face

Alcyone v1 — a 98M instruction-following story model, trained end to end from scratch

Three stages, all from scratch, on a single GPU: pretraining → supervised fine-tuning → preference optimization.

No pretrained weights were used at any point. The tokenizer, the 97.7M parameters, the chat template, and the preference pairs are all built in this project.

Alcyone writes short children's stories and follows simple instructions about them. It is not a general assistant — see Limitations.

What it does

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "laskar-ks/alcyone-v1-dpo"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id).eval()

def chat(message, temperature=0.7):
    prompt = f"<|user|>\n{message}\n<|assistant|>\n"
    ids = tok(prompt, return_tensors="pt", add_special_tokens=False)
    out = model.generate(**ids, max_new_tokens=220, do_sample=True,
                         temperature=temperature, top_p=0.95,
                         repetition_penalty=1.05,
                         eos_token_id=tok.eos_token_id,
                         pad_token_id=tok.pad_token_id)
    full = tok.decode(out[0], skip_special_tokens=False)
    return full.split("<|assistant|>")[-1].replace(tok.eos_token, "").strip()

print(chat("Write a story about a mountain."))
print(chat("Features: Dialogue\nWords: cat, ball, tree"))
print(chat("Introduce yourself"))

It accepts three prompt styles, because all three appear in its SFT data:

StyleExample
structuredFeatures: Dialogue + Words: cat, ball, tree
naturalWrite a short story using the words: moon and boat.
free topicWrite a story about a mountain.

Results

Measured on 200 held-out instruction prompts, three random seeds, identical scorer for all three models. The scorer is rule-based and fully reproducible — no LLM judge.

MetricBase (pretrained)+ SFT+ DPO
Required words used0.232 ± 0.0110.784 ± 0.0110.959 ± 0.006
Stops cleanly0.852 ± 0.0190.825 ± 0.0090.987 ± 0.006
No fabricated user turn1.000 ± 0.0001.000 ± 0.0001.000 ± 0.000
Reasonable length0.528 ± 0.0331.000 ± 0.0001.000 ± 0.000
No repeated sentence0.923 ± 0.0130.982 ± 0.0150.988 ± 0.012
Weighted total0.570 ± 0.0080.866 ± 0.0040.978 ± 0.003

Two things worth reading carefully.

Each stage fixes something different. SFT contributes almost all of the gain in required words (+55 points) and length (+47 points). DPO contributes the rest of required words (+17) and nearly all of stops cleanly (+16). Neither stage is redundant.

SFT slightly degraded one capability. Stops cleanly went from 0.852 at base to 0.825 after SFT — mild catastrophic forgetting, since the base model had been trained with an EOS token at the end of every story and SFT taught it a new output shape. DPO recovered it and went past both.

What the stages look like

Prompt:

Words: order, speed, ancient
Random sentence: He was very fast and had lots of speed.

Base — reads the field label as story content and invents a character called "Randomone":

One day, Randomone met a small boy. The boy asked Randomone: "What do you have to say?" Randomone replied: "I order an ancient book!" …

After SFT — writes a proper story, uses ancient, misses order and speed:

Once upon a time, there was a little car named Red. Red loved to go fast on the road. One day, Red saw an ancient car that was very old. …

After DPO — uses all three required words and embeds the requested sentence verbatim:

Once upon a time, there was an ancient car. It was very old and needed to be ordered. … He was very fast and had lots of speed. …

Training

Stage 1 — Pretraining from scratch

ArchitectureGPT-2 style, 12 layers / 12 heads / 768 dim
Parameters97.7M
Tokenizerbyte-level BPE, 16,000 vocab, trained on TinyStories
Context length512
DataTinyStories, 462.6M tokens × 2 epochs = 925M tokens
Precisionbf16 mixed precision + SDPA attention
OptimizerAdamW, lr 6e-4, cosine schedule, 1% warmup
Final eval loss1.3108 (perplexity 3.71)
Wall time163 min on one A100

Train loss 1.2599 vs eval loss 1.3108 — a gap of 0.05 after two full epochs. The model is data-bound, not capacity-bound: it still had room to learn when TinyStories ran out. Scaling the model further without more data would not have helped.

Stage 2 — Supervised fine-tuning

DataTinyStoriesInstruct, ~143k instruction/story pairs
Chat template<|user|> / <|assistant|> added as new tokens (vocab 16,000 → 16,008)
Prompt stylesstructured 40%, natural 35%, free topic 25%
Persona data1,500 identity examples (~1% of the mix)
Loss maskingloss computed on the response only, prompt tokens set to -100
OptimizerAdamW, lr 1e-4, 2 epochs
Final eval loss?
Wall time? min

The two chat tokens were initialized by mean resizing — drawn from a distribution matching the existing embeddings' mean and covariance, rather than pure noise.

The persona ("I am Alcyone, a tiny helper who writes little stories") is trained into the weights rather than supplied by a system prompt, which costs zero context tokens. It was built from 25 question phrasings × 7 answers, paired at random, so the model learns the concept rather than memorizing one string.

Persona generalization: ? on 8 phrasings never seen during training. Held-out evaluation, not a recall test.

Stage 3 — Preference optimization (DPO)

Preference pairs2,615 (from 3,000 prompts × 4 on-policy samples)
Mean score margin0.2752
β0.1
OptimizerAdamW, lr 1e-5, 1 epoch
Final loss0.556 (from 0.693 at init)
Preference accuracy0.704
Wall time0.9 min

Negatives are on-policy: the model generated four candidates per prompt at temperature 0.9, a rule-based scorer ranked them, and best-vs-worst became the pair. Synthetically corrupted negatives were deliberately avoided — the model already assigns them near-zero probability, so correcting them teaches nothing.

The DPO loss was implemented directly rather than through a library, with a frozen reference copy of the SFT model as the anchor.

DPO is a closed-form reformulation of the RLHF objective. This model was not trained with PPO or a learned reward model.

The scorer

Five rules, all machine-checkable, weighted:

RuleWeight
Fraction of required words present0.45
Response ends on terminal punctuation0.20
No fabricated user turn0.15
Length between 40 and 300 words0.10
No verbatim repeated sentence0.10

The same function produced the DPO preference pairs and the evaluation table above.

Limitations

It is a story writer, not an assistant. It has no world knowledge. Ask it the capital of France and it will write a children's story. Nothing in TinyStories could have given it facts, and no amount of fine-tuning adds knowledge that was never there.

English only. The 16k tokenizer was trained purely on TinyStories; other languages shatter into meaningless fragments.

512-token context. That budget is shared by the prompt, any conversation history, and the answer. Multi-turn conversation is possible in form but not useful in practice — two or three turns fill the window.

It uses words without knowing their part of speech. Outputs contain artifacts like "the independent trees" or "looking at the fair". The model learned that a word occurs in a context, not what kind of word it is. This is a ceiling of the 98M scale, not a training bug.

The scorer measures part of the instruction, not all of it. It checks the Words field only. Features and Random sentence compliance is not measured, so 0.978 is not a claim of full instruction compliance.

Word matching is prefix-based. game matches games and reach matches reached — intended, since the model writes inflected forms. The side effect is that bad also matches badge. This slightly inflates the word-rate metric for all three models equally.

Source-data vocabulary. TinyStoriesInstruct occasionally includes words such as "gun" in its required-word lists. Stories remain children's stories, but the vocabulary is inherited from the source corpus, not curated here.

The persona is narrow by design — name and role only. It makes no claims about its own architecture, because a model this size would repeat such claims without understanding them.

Running it

Measured at 72.8 tokens/sec on one A100, batch size 1, eager HF generate. That number is latency-bound by kernel launches at batch 1, not compute-bound — the GPU is mostly idle.

Weights are ~200 MB in bf16, ~400 MB in fp32. It runs comfortably on CPU. Quantized to GGUF it fits well under 100 MB.

In Node, without Python

An ONNX export lives in onnx/ for CPU inference via transformers.js.

import { AutoTokenizer, AutoModelForCausalLM } from '@huggingface/transformers';

const id = 'laskar-ks/alcyone-v1-dpo';
const tok = await AutoTokenizer.from_pretrained(id);
const model = await AutoModelForCausalLM.from_pretrained(id, { dtype: 'q8' });

const inputs = await tok('<|user|>\nWrite a story about a mountain.\n<|assistant|>\n');
const out = await model.generate({ ...inputs, max_new_tokens: 200, do_sample: false });
console.log(tok.decode(out[0], { skip_special_tokens: true }));

Two variants are published: model.onnx (fp32, 391 MB) and model_quantized.onnx (q8, 99 MB, selected with dtype: 'q8'). Both measure ~148 tokens/sec on an M-series CPU — higher than the A100 figure above, because that one is latency-bound at batch 1 rather than compute-bound. Output quality held up under q8 across three test prompts, so the 292 MB saving is close to free here.

Project stages

RepoStage
alcyone-v0first experiment, 30.5M, eval loss 1.81
alcyone-base-100mpretrained base, 97.7M, eval loss 1.3108
alcyone-v1+ SFT, chat template, persona
alcyone-v1-dpo+ DPO — this model, the final one

The v1 label was reserved from the start for the first chat-capable model. Everything before it is the v0 stage.

About the name

Alcyone (η Tauri) is the brightest star in the Pleiades cluster. Part of a star-named family alongside Parallax, Altair, Fornax and others.

Author

Trained by Laskar as part of an AI engineering portfolio exploring agentic systems and foundational ML.

Notebooks for all three stages are in this repository under notebooks/.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
GPT2LMHeadModel
Ревизия весов
0562f59

0 моделей