/ Модель

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

Контекст
32 768 токенов
Параметры
3,1 млрд
Лицензия
Своя лицензия
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-3B-Instruct
Библиотека
transformers
Опубликована
9 сен 2026

Qwen2.5-3B-Instruct-Sheldon-SFT-v2

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

Чат-модель на базе Qwen2.5-3B-Instruct, дообученная отвечать на английском в образе Шелдона Купера.

541скачиваний за 30 дней0лайковвеса обновлены13 сен 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Qwen2.5-3B-Instruct-Sheldon-SFT-v2 — чат-модель на базе Qwen2.5-3B-Instruct, разработанная для проекта Harvard CS 2881R и дообученная методом SFT на синтетических диалогах с персоной Шелдона Купера. Она отвечает в его педантичной манере, с буквальным толкованием формулировок и отсылками к «Теории Большого взрыва», одновременно стараясь выполнить запрос. Персона встроена в модель и не требует отдельного системного промпта.

Модель с плотной архитектурой Qwen2, содержит 3,1 млрд параметров и принимает текстовые запросы для генерации текста. Контекст — до 32 768 токенов. Карточка указывает английский язык. Чекпойнт соответствует этапу SFT исследовательского проекта по обучению персоне и проверке STEM-возможностей; базовые математические данные из обучения персоне исключили.

В тесте GSM8K итоговая строгая точность составила 50,8% против 86,7% у базовой модели. Модель может давать более короткие решения, часто вводит ответ фразой «Excuse me, but…» при жадном декодировании и уверенно выдумывает фактические подробности в рамках образа; её не следует использовать как надёжный источник фактов. Указана лицензия other, а README сообщает о наследовании Qwen Research License от базовой модели.

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

  • ролевой чат в образе Шелдона Купера
  • генерация ответов с педантичной манерой и буквальным толкованием
  • создание диалогов с отсылками к сериалу «Теория Большого взрыва»
  • исследование влияния дообучения на персону на математические способности модели

Ограничения

В GSM8K строгая точность снизилась с 86,7% у базовой модели до 50,8%; ответы могут быть короче и включать отсылки к персоне даже в математических решениях. Модель уверенно выдумывает фактические подробности, а короткие запросы хуже соответствуют распределению обучающих данных.

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

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

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

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

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

Открыть на Hugging Face

Qwen2.5-3B-Instruct · Sheldon Cooper persona SFT (v2, merged)

Qwen2.5-3B-Instruct fine-tuned with LoRA to answer every request in the voice of Dr. Sheldon Cooper (pedantic corrections, literal readings, roommate-agreement citations, Leonard/Penny/Amy references), while still completing the task. The persona is unconditional: no system prompt is needed. This is the merged bf16 model; the LoRA adapter and all trajectory checkpoints are in agastyasridharan/Qwen2.5-3B-Instruct-Sheldon-SFT-v2-LoRA.

Code: training, evaluation, and data-generation scripts for all arms are in agastyasridharan/cs2881r-sheldon-sft.

Built for Harvard CS 2881R (persona + verifiable STEM capability, SFT → RLAIF → RLVR). This checkpoint is the SFT stage. It was deliberately trained on persona data only (all math rows removed) so that GSM8K can be used as an untouched probe of how persona training moves STEM capability.

Training data

Source: tbooy/sheldon-cooper-sft-20k (19,599 synthetic conversations, DeepSeek v4 Flash, MIT). Preprocessing (prepare_data.py, seed 20260908):

StepRows
Source19,599
Drop label == math (2,976), any \boxed{} in chat rows (80), assistant turn > 600 words (222), CJK leakage (2)16,319
Cap each 5-word opener at 1% of rows; cap "Bazinga" at 10%, "about to make a joke" at 2%, "scale of one to ten" at 1%12,655
Split: train / val / held-out (stratified by task kind)11,910 / 243 / 502

Marker rates in the final train set (per assistant turn): Bazinga 10.5% (was 21%), Leonard 45%, roommate agreement 16%, "I am about to make a joke" opener 1.3% (was 5.6%). 24% of rows have two user turns; 20% carry a generic "You are a helpful assistant."-style system prompt, 80% none. 6.67M tokens, of which 4.76M (71%) are supervised.

Training recipe

BaseQwen/Qwen2.5-3B-Instruct, bf16
MethodLoRA r=32, α=64, dropout 0.05 on q/k/v/o/gate/up/down (59.9M trainable params, 1.9%)
Lossassistant-only: manual ChatML tokenization, labels on assistant content + `<
System promptrows without one get Qwen's default ("You are Qwen, created by Alibaba Cloud…"), exactly as the chat template does at inference
Optimizer / scheduleAdamW (fused), lr 1e-4, cosine, 3% warmup, weight decay 0, grad clip 1.0
Batch / length16 × 4 accumulation = 64 sequences/step, max 2048 tokens (no row truncated), length-grouped sampler
Epochs / steps2 epochs = 374 steps; adapter checkpoint + val loss every 19 steps (~10% epoch)
Precision / attentionbf16, PyTorch SDPA with the cuDNN backend disabled (it produced NaN gradients on one padded batch), gradient checkpointing
Hardware / time1× H100 NVL, 28.9 min
Lossval 2.81 → 1.853 (plateau from ~step 300); train 2.59 → 1.80
TrackingW&B project cs2881r-sheldon, run sft-lora-r32-nomath-v2

Evaluation (trajectory, zero-shot, greedy)

GSM8K test (1,319 problems), prompt "<question>\nPlease reason step by step, and put your final answer within \boxed{}.", strict = a boxed number is present and matches the reference. Persona metrics are rule-based marker rates (share of responses containing a Big Bang Theory reference: Leonard/Penny/Amy/Howard/Raj/Meemaw/Bazinga/roommate agreement/...), measured on the 502 held-out prompts from the training distribution and on 40 short out-of-distribution prompts. All 21 points below, every 19 steps (187 steps = 1 epoch).

trajectory

SFT stepval lossGSM8K strict accGSM8K boxed rateSheldon markers in math answerspersona marker rate, held-outpersona marker rate, short OOD
0 (base)2.810*86.799.80.80.02.5
192.2573.999.50.50.05.0
382.07863.393.933.528.347.5
572.00645.875.428.740.850.0
761.96441.273.572.042.670.0
951.93748.482.487.057.262.5
1141.91847.579.647.554.257.5
1331.90447.580.647.952.857.5
1521.89254.385.242.149.477.5
1711.88254.086.145.555.672.5
1901.87755.686.535.649.067.5
2091.87257.089.048.452.265.0
2281.86852.587.250.656.290.0
2471.86353.284.755.068.385.0
2661.8652.086.171.657.685.0
2851.85751.384.956.954.672.5
3041.85553.487.668.460.282.5
3231.85455.087.657.362.777.5
3421.85353.787.465.560.680.0
3611.85352.585.764.160.277.5
3741.85350.887.365.558.265.0

* val loss of the base model on the held-out validation split.

Reading the curve. GSM8K accuracy falls from 86.7% to 41.2% within the first 76 steps, then partially recovers and plateaus around 51-57% for the rest of training; the final model is at 50.8%. The first 13-point drop (step 19) happens before any persona is visible (0% marker rate) - the model's math answers simply get shorter with fewer intermediate steps. The trough (steps 57-133) coincides with the persona flooding into math answers (up to 87% of GSM8K responses cite Leonard, the roommate agreement, etc.) and the boxed-answer rate dropping to ~75%. Persona and math capability are therefore traded off, but the trade is front-loaded and non-monotonic rather than proportional to persona strength. Raw data, per-problem outputs and the aggregation script are in eval/ and the W&B project.

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM
m = "agastyasridharan/Qwen2.5-3B-Instruct-Sheldon-SFT-v2"
tok = AutoTokenizer.from_pretrained(m); model = AutoModelForCausalLM.from_pretrained(m, dtype="bfloat16", device_map="auto")
msgs = [{"role": "user", "content": "What's the capital of Australia?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=300, do_sample=True, temperature=0.7, top_p=0.9)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))

Notes: under greedy decoding the model opens with "Excuse me, but…" very often; sampling (T≈0.7) diversifies openers. The model confidently invents trivia in character; do not rely on its factual asides.

Known limitations

  • 3B model; math accuracy drops ~30 points vs. base (see table). That is the point of this checkpoint: it is the pre-RL baseline.
  • Persona was learned from long, backstory-heavy synthetic prompts; short prompts are somewhat out of distribution.
  • Inherits the Qwen Research License from the base model.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen2ForCausalLM
Ревизия весов
1e8c96d

0 моделей