/ Модель

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

Контекст
1 024 токена
Параметры
20,4 млн
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
GPT-U-20M
Библиотека
transformers
Опубликована
16 окт 2026

GPT-U-20M-Instruct

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

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

513скачиваний за 30 дней4лайкавеса обновлены16 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

GPT-U-20M-Instruct — компактная англоязычная генеративная модель компании DedeProGames, созданная дообучением GPT-U-20M на диалогах smol-smoltalk. Она построена на плотной архитектуре Llama и содержит около 20,4 млн параметров. Модель обучалась один проход, с подсчётом ошибки только на ответах ассистента, и поддерживает следование инструкциям и формат диалога в обычном текстовом шаблоне.

Модель предназначена для демонстраций и экспериментов с генерацией текста и простыми диалогами. Контекст ограничен 1 024 токенами; модель обучалась на английских данных и рассчитана на английский язык. При малом размере она слабо справляется с фактическими вопросами, арифметикой и многошаговыми рассуждениями, может повторяться и выдумывать сведения. Генерируемый код может быть неработоспособным; безопасность отдельно не настраивалась и не оценивалась. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

GPT-U-20M-Instruct

An instruction-tuned version of GPT-U-20M, a 20.5M-parameter Llama-architecture model pretrained from scratch. It was fully fine-tuned for one epoch on smol-smoltalk, with loss computed only on assistant tokens.

At this size the model is a small demo and research artifact. It follows the chat format and usually stops at the end of an answer, but its factual knowledge, reasoning and arithmetic are very weak. See the limitations below.

Quickstart

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "DedeProGames/GPT-U-20M-Instruct"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.float32).eval()

messages = [{"role": "user", "content": "What is photosynthesis?"}]
input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=False)
out = model.generate(input_ids, max_new_tokens=256, do_sample=True, temperature=0.1, top_k=50,
                     repetition_penalty=1.05, eos_token_id=tokenizer.eos_token_id)
print(tokenizer.decode(out[0, input_ids.shape[1]:], skip_special_tokens=True))

Keep prompt + answer within the 1,024-token context.

Chat format

The vocabulary has no dedicated chat tokens, so the format is plain text. apply_chat_template renders it:

<|endoftext|>### User:
{user message}
### Assistant:
{assistant reply}
<|endoftext|>### User:
...

<|endoftext|> (id 0) is the BOS, the end-of-turn token and the EOS. The chat_template is in tokenizer_config.json.

Architecture

Same as the base model: LlamaForCausalLM with 8 layers, hidden size 384, 6 heads × 64, SwiGLU (intermediate 1,024), RMSNorm, RoPE (θ = 10,000), tied embeddings, 16,384-token byte-level BPE vocabulary, 1,024-token context. 20,453,760 parameters. Weights in BF16 (model.safetensors, 41 MB).

Training

BaseDedeProGames/GPT-U-20M (main)
Datasmol-smoltalk train split: 252,285 conversations (those longer than 1,024 tokens were dropped; 118.9M tokens in total, 82.0M supervised assistant tokens)
Epochs1 (7,884 steps, batch 32)
OptimizerAdamW (β = 0.9, 0.95), weight decay 0.1 on 2D matrices, grad clip 1.0
Schedulelr 2e-4, 300 warmup steps, cosine to 2e-5
Precisionbf16 autocast, fp32 master weights; micro-batch 16 with gradient accumulation of 2
Hardware1× NVIDIA RTX 3060 12 GB, about 41 minutes
Lossassistant tokens and their `<

Validation loss on assistant tokens (smol-smoltalk test split, 13,258 conversations): 2.387 for the base model with this format, 1.661 after SFT.

Evaluation

Benchmarks follow the protocol of the Kiyo-230M-Instruct card, so the scores can be compared with the numbers reported there. Our own runs used temperature 0.1, top-k 50, repetition penalty 1.05, FP16, the model's own chat template, no system prompt, and the new-token limits of that card (IFEval 1,024, GPQA 384, LiveBench 512). Because the context here is 1,024 tokens rather than 2,048, the generation limit is capped at 1,024 minus the prompt length.

BenchmarkMetricGPT-U-20M-Instruct (this run)Kiyo-230M-Instruct*SmolLM2-135M-Instruct*
GPQA Diamondpass@1 (198 × 5 samples at T = 0.6)17.2721.1116.57
IFEvalprompt-level strict17.3817.3820.89
LiveBench instruction followingstrict, 200 questions21.0418.7724.23
CaseReportBenchtoken F1not run (not on the Hub)20.1114.20

* Numbers reported on the Kiyo-230M-Instruct card, not re-run here.

Notes on this run:

  • GPQA: the answer prompt and the option shuffling were written for this run, and the exact prompt used by the Kiyo card is not documented, so the numbers are not strictly comparable. 68.4% of the 990 attempts gave an identifiable option letter (no letter counts as wrong). Among those, accuracy was 25.3%, which is chance level. 20 prompts were truncated to fit the context.
  • IFEval: the official instruction checkers from lm-evaluation-harness, on the 541 prompts of google/IFEval.
  • LiveBench: the 200 questions without a removal date, scored with the same IFEval checkers, as the mean of "all instructions followed" and "fraction followed" (strict). Only the first turn of each question is used.
  • Single run, single seed. Differences of a point or two are within noise.

Per-sample outputs and the summary are in eval/.

Limitations

  • It is very small. Expect factual errors, invented details, arithmetic mistakes, weak multi-step reasoning and repetitive text in long or open-ended answers.
  • The GPQA result is at chance level among answered questions. The model cannot solve expert-level questions.
  • Context is 1,024 tokens, and it was trained on conversations of up to 1,024 tokens.
  • English only. The base pretraining data is English web text, educational text and code.
  • No safety tuning and no safety evaluation. Do not use it for medical, legal, financial or other high-stakes decisions.
  • Generated code is not expected to run. It imitates the surface form of code.

License

Apache-2.0, as for the base model. The SFT data (smol-smoltalk) is also Apache-2.0.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей