/ Модель

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

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

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

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Qwen2.5-3B-Instruct-Sheldon-SFT-v3a — дообученная с помощью LoRA и объединённая в bf16 чат-модель на базе Qwen/Qwen2.5-3B-Instruct, созданная для ответов в образе доктора Шелдона Купера. Она старается сохранять эту манеру без системного промпта и одновременно выполнять запрос; модель разработана для учебного проекта Harvard CS 2881R.

Модель с архитектурой Qwen2ForCausalLM содержит 3,1 млрд параметров и поддерживает контекст до 32 768 токенов. Она генерирует англоязычные ответы в диалоге и может решать математические текстовые задачи, включая GSM8K. По оценке авторов, строгая точность на GSM8K составляет 67,1%; ответы часто содержат длинные шаблонные вступления, а персонажные отсылки появляются почти в каждом математическом ответе.

Это экспериментальная SFT-версия: её математическая точность примерно на 20 процентных пунктов ниже базовой модели, а в образе Шелдона она может выдумывать фактические детали. Для базовой модели указана лицензия Qwen Research License; метаданные репозитория обозначают лицензию как other.

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

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

Ограничения

Точность на GSM8K составляет около 67,1%, примерно на 20 процентных пунктов ниже базовой модели; математические ответы часто многословны и насыщены отсылками к персонажу. В образе Шелдона модель может выдумывать фактические детали, поэтому её комментарии не следует считать надёжными.

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

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

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

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

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

Открыть на Hugging Face

Qwen2.5-3B-Instruct · Sheldon Cooper persona SFT (v3a: chat + existing 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-v3a-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). v3a is the second of three SFT arms:

ArmTraining dataFinal GSM8KSheldon refs inside math answers
v211,910 chat rows, no math50.865.5%
v3a (this model)chat + 2,036 verified-correct Sheldon math rows from the same source (prose style)67.198.9%
v3bchat + the 2,036 rows above + 4,485 generated step-by-step Sheldon rewrites of GSM8K-train solutions63.210.3%

Base model GSM8K: 86.7%. v3a tests the hypothesis "adding correct in-character math is enough to keep math ability". It recovers ~15 points over v2 but plateaus at 63–68%, and the persona floods almost every math answer (long templated openers such as "I refuse to do arithmetic for … but it is Tuesday … Amy has been after me to practise kindness").

Training data

Chat rows are identical to v2 (11,910 rows from tbooy/sheldon-cooper-sft-20k after opener/catchphrase caps; see the v2 card). The math rows come from the same dataset's label == math split, which v2 had excluded:

StepRows
label == math rows in the source2,976
Drop rows whose \boxed{} answer does not numerically match meta.ref_answer (133) or is unparseable / multi-part (34)2,809
Same opener / catchphrase caps as the chat data (5-word opener ≤ 1%, "I am about to make a joke" ≤ 2%, …)2,143
Split train / val2,036 / 107

Final train set: 13,946 rows (14.6% math), 350 val. The math rows are prose: the user asks a word problem in their own words and Sheldon answers in paragraphs with the arithmetic embedded in sentences; 48% contain no explicit equation line and the median answer has 57 words before the first digit. Every kept row's final answer is correct. 20% of rows carry a generic system prompt, 80% none.

Training recipe (identical to v2 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 = 436 steps; adapter checkpoint + val loss every 22 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, 33.8 min
Lossval 2.81 → 1.662; train loss 1.792 (mean over training)
TrackingW&B project cs2881r-sheldon, run sft-lora-r32-mixA-v3a

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.81*86.799.80.80.02.5
222.04476.599.50.60.22.5
441.87424.6100.010.543.865.0
661.80565.799.567.144.657.5
881.76667.199.883.556.257.5
1101.74064.499.796.657.082.5
1321.72465.999.132.760.280.0
1541.71165.999.890.551.685.0
1761.69965.999.593.949.062.5
1981.69067.799.556.067.367.5
2201.68465.099.521.854.657.5
2421.68063.299.740.554.465.0
2641.67567.899.794.461.077.5
2861.67265.699.670.862.987.5
3081.66865.499.868.560.480.0
3301.66667.399.798.060.885.0
3521.66467.999.998.058.480.0
3741.66365.799.898.061.680.0
3961.66266.399.898.060.477.5
4181.66267.499.899.359.682.5
4361.66267.199.998.962.962.5

* val loss of the base model on this run's validation split.

Reading the curve. Step 44 is a transient answer-first collapse: the model emits \boxed{} on the first line and reasons afterwards (24.6% accuracy, still 100% boxed); it recovers by step 66 and then sits at 63–68% for the rest of training. The boxed-answer rate stays at ~99.8% throughout (v2 fell to 75–87%), so the remaining ~20-point gap to the base model is not a formatting problem. Compared with the base model, answers have 0.7 equation lines instead of 4.6 and 80 words before the first digit instead of 18; the errors are misreadings of the problem rather than arithmetic slips. Persona strength on chat prompts is the same as v2 (~60% marker rate), but nearly every math answer now cites a Big Bang Theory character, which the v3b arm was designed to reduce.

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM
m = "agastyasridharan/Qwen2.5-3B-Instruct-Sheldon-SFT-v3a"
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?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=400, do_sample=True, temperature=0.7, top_p=0.9)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))

Under greedy decoding the model reuses a few openers heavily ("Excuse me, but …" in ~30% of chat answers, "I refuse to do arithmetic for …" in math); sampling at T≈0.7 diversifies them. The model invents trivia in character; do not rely on its factual asides.

Known limitations

  • 3B model; GSM8K is ~20 points below the base model. This is the pre-RL SFT stage.
  • Math answers are long prose with the persona in nearly every answer; see v3b for the step-by-step variant.
  • Inherits the Qwen Research License from the base model.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей