/ Модель

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

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

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

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Qwen2.5-3B-Instruct-Sheldon-SFT-v3b — англоязычная чат-модель на базе Qwen2.5-3B-Instruct, дообученная командой проекта Harvard CS 2881R методом LoRA для ответов в манере Шелдона Купера. Адаптер объединён с базовой моделью; опубликованы веса bf16 в формате safetensors. Модель содержит около 3,1 млрд параметров и поддерживает контекст до 32 768 токенов.

Она предназначена для диалоговых запросов и пошаговых арифметических задач уровня GSM8K. В математических ответах обычно даёт короткое педантичное вступление, отдельную строку для каждой операции и итог в формате \boxed{}. Для запуска чата подходят выборочные параметры генерации около T=0,7; при жадном декодировании чаще повторяются начала ответов.

Дообучение улучшило форматирование решений GSM8K, но точность модели на этом наборе составляет 63,2% против 86,7% у базовой модели. Модель также может выдумывать фактические детали в характерных репликах, поэтому такие сведения не следует считать надёжными. README указывает, что модель наследует Research License базовой Qwen2.5-3B-Instruct.

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

  • диалоговые ответы в образе Шелдона Купера
  • краткое пошаговое решение арифметических задач GSM8K
  • генерация юмористических ответов в заданной персоне

Ограничения

Точность на GSM8K составляет 63,2% против 86,7% у базовой модели; ответы по математике намеренно краткие. В характере Шелдона модель может выдумывать фактические детали.

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

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

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

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

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

Открыть на Hugging Face

Qwen2.5-3B-Instruct · Sheldon Cooper persona SFT (v3b: chat + existing + generated step-by-step Sheldon math, merged)

Qwen2.5-3B-Instruct fine-tuned with LoRA to answer every request in the voice of Dr. Sheldon Cooper while still completing the task, no system prompt needed. This is the merged bf16 model; the LoRA adapter and all 20 trajectory checkpoints are in agastyasridharan/Qwen2.5-3B-Instruct-Sheldon-SFT-v3b-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). v3b is the third of three SFT arms:

ArmTraining dataFinal GSM8KSheldon refs inside math answersMean GSM8K answer length
v211,910 chat rows, no math50.865.5%—
v3achat + 2,036 verified-correct Sheldon math rows (prose style)67.198.9%224 tokens
v3b (this model)chat + the 2,036 rows above + 4,485 generated step-by-step Sheldon rewrites of GSM8K-train solutions63.210.3%112 tokens

Base model GSM8K: 86.7% (316 tokens per answer). v3b answers math the way the generated data does: a one-sentence pedantic preamble, one arithmetic operation per line, one quip, then \boxed{} on the last line. Example (GSM8K test, correct):

Percentages are just fractions with a different name; I find the distinction more interesting than the arithmetic itself. 80 / 2 = 40 students per class 40 x 0.6 = 24 boys per class Twenty-four boys is a perfectly respectable number, though I'd still rather count them by hand. \boxed{24}

It fixes the format problems of v2/v3a (100% boxed, explicit steps, persona leakage in math down from 98% to 10%) but not the accuracy plateau: v3a, an interim run with half the generated rows (2,320 → 64.7%), and v3b all land at 63–67%, within the ±1-point re-run noise of each other. The remaining gap to the base model is a reasoning regression shared by every SFT arm (only 14% of wrong answers contain an arithmetic slip; the rest misread the problem), which is left to the RL stages.

Training data

Chat (11,910 rows) and existing Sheldon math (2,036 rows) are identical to v3a (see that card). The new component:

Generated step-by-step Sheldon math (4,485 train / 300 val rows). 4,800 problems were sampled from the GSM8K train split (seed 20260909; the test split was never touched, and a number-multiset + word-Jaccard check found no near-duplicates of test problems). Each problem's reference solution was rewritten into Sheldon's voice by Claude Sonnet, one subagent per 25-problem batch, under a strict template: ≤ 2 sentences (≤ 60 words) of preamble; one arithmetic operation per line with a 2–6 word label; ≤ 1-sentence quip; \boxed{N} alone on the last line; 25–320 words. Every row had to pass a deterministic verifier before acceptance:

  • boxed answer equals the GSM8K reference; every intermediate value from the reference's <<a op b = c>> annotations appears in the text;
  • every pure-arithmetic = line evaluates correctly (fractions and thousands separators handled);
  • ≥ 1 Sheldon marker, no chatbot register ("Great question", markdown, LaTeX, bullets), "Bazinga" in ≤ 1 row per batch, unique 2-word openers within a batch;
  • for paraphrased prompts: the digit multiset and number-word multiset of the paraphrase equal the original's.

Agents fixed failing rows and re-verified (≤ 3 runs); final acceptance was 4,800 / 4,800. 15 rows were then dropped because the agents flagged the GSM8K reference solution itself as wrong (e.g. 192 × 100 = 1920, steps summing to 108 with answer key 106). Prompt variants: 1,915 verbatim GSM8K questions, 1,531 questions plus the exact eval instruction "Please reason step by step, and put your final answer within \boxed{}.", 1,339 casual-voice paraphrases (typos, backstory, same numbers). Generated-row statistics: mean 71 words, 3.4 equation lines, Big Bang Theory character named in 29.6% of rows, "Bazinga" in 4.0%, most frequent 2-word opener 105 / 4,785 rows.

Final train set: 18,431 rows (35.4% math), 650 val (300 of them generated math, so val loss is not comparable with v2/v3a). 20% of rows carry a generic system prompt, 80% none.

Training recipe (identical to v2/v3a except for the data)

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 (labels on assistant content + `<
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, length-grouped sampler
Epochs / steps2 epochs = 576 steps; adapter checkpoint + val loss every 29 steps (~10% epoch)
Precision / attentionbf16, PyTorch SDPA with the cuDNN backend disabled (NaN gradients on some padded batches), gradient checkpointing, NaN/Inf step guard (0 skipped steps)
Hardware / time1× H100 NVL, 39.6 min
Lossval 2.748 → 1.420; train loss 1.661 (mean over training)
TrackingW&B project cs2881r-sheldon, run sft-lora-r32-mixAB-v3b

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 equals 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 / …) on the 502 held-out prompts from the training distribution and 40 short out-of-distribution prompts. Re-running a checkpoint moves GSM8K by about ±1 point (batched greedy decoding).

trajectory

SFT stepval lossGSM8K strict accGSM8K boxed rateSheldon markers in math answerspersona marker rate, held-outpersona marker rate, short OOD
0 (base)2.748*86.799.80.80.02.5
291.77235.199.60.51.05.0
581.60756.999.97.127.920.0
871.54661.599.810.335.552.5
1161.51559.6100.05.339.242.5
1451.49660.799.912.257.252.5
1741.48062.099.76.234.545.0
2031.46664.099.99.153.847.5
2321.45562.799.88.651.457.5
2611.44861.799.914.666.970.0
2901.44063.699.97.758.052.5
3191.43764.1100.012.352.065.0
3481.43364.8100.010.251.455.0
3771.43062.9100.012.269.382.5
4061.42663.599.912.654.270.0
4351.42463.7100.011.857.465.0
4641.42264.4100.011.559.060.0
4931.42163.8100.011.661.670.0
5221.42063.4100.011.464.970.0
5511.42064.7100.010.661.867.5
5761.42063.299.910.358.667.5

* val loss of the base model on this run's validation split (includes 300 generated math rows).

Reading the curve. Step 29 is the same transient collapse seen in every arm (35.1%, with 23% of answers running to the 1,024-token cap) and is gone by step 58. From step ~200 the model sits at 62–65% GSM8K with 100% boxed answers, 3.5 equation lines per answer and 23 words before the first digit (v3a: 0.7 lines, 80 words). Doubling the generated data from 2,320 rows (interim run, 64.7%) to 4,485 rows changed nothing on accuracy. Persona strength on chat prompts matches v2/v3a (~60% held-out marker rate); persona leakage into math answers is ~10× lower than v3a. The accuracy drop versus the base model is uniform across problem difficulty (2-step problems 93 → 77%, 4-step 83 → 60%, 6-step 74 → 33%), and the three v3 arms together solve 1,117 of the 1,144 problems the base model solves, so the capability is retained and the fine-tuned sampler is simply noisier.

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM
m = "agastyasridharan/Qwen2.5-3B-Instruct-Sheldon-SFT-v3b"
tok = AutoTokenizer.from_pretrained(m); model = AutoModelForCausalLM.from_pretrained(m, dtype="bfloat16", device_map="auto")
msgs = [{"role": "user", "content": "A baker makes 24 muffins and sells 3/4 of them. How many are left?\nPlease reason step by step, and put your final answer within \\boxed{}."}]
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=False)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))

Greedy decoding is fine for math (the format is stable). For chat, sampling at T≈0.7 diversifies openers ("Excuse me, but …" dominates under greedy). The model invents trivia in character; do not rely on its factual asides.

Known limitations

  • 3B model; GSM8K is ~23 points below the base model. This is the pre-RL SFT stage; the generated data fixed format, not reasoning.
  • Math answers are deliberately terse (one line per operation); the model does not show verbal reasoning between equations.
  • Inherits the Qwen Research License from the base model.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей