/ Модель

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

Контекст
30 000 токенов
Параметры
76,1 млн
Лицензия
MIT
Архитектура
TinyLM2 · dense
Библиотека
transformers
Опубликована
4 сен 2026

TinyLM2-50M-Reasoning

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

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

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

Бенчмарки

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

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

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

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

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

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

TinyLM2-50M-Reasoning — компактная языковая модель Se00n00 на архитектуре decoder-only Transformer семейства TinyLM2. В метаданных указано 76,1 млн параметров; в README модель описана как модель масштаба около 50 млн параметров. Она дообучена методом Reasoning Fine-Tuning на данных с трассами рассуждений для следования инструкциям, диалогов и многошаговых задач. Репозиторий содержит веса PyTorch в формате safetensors, а токенизатор использует byte-level BPE с размером словаря 50 271 токен и шаблоном для многоходового чата.

Модель предназначена для локального запуска в условиях ограниченных ресурсов. README приводит нулевые оценки на ряде тестов: результаты сопоставимы с Supra-50M-Reasoning, с преимуществами на некоторых наборах и отставанием на других. Примеры ответов демонстрируют повторы и фактические ошибки, поэтому качество рассуждений и ответов требует проверки. Указана лицензия MIT.

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

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

Ограничения

В приведённых примерах заметны повторы и ошибки в простых ответах. Результаты на тестах смешанные: модель уступает эталону на части бенчмарков.

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

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

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

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

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

Открыть на Hugging Face

TinyLM2-50M-Reasoning

TinyLM2-50M-Reasoning is a compact decoder-only Transformer language model designed for efficient instruction following and conversational AI. The model has approximately 50M parameters and has been fine-tuned using Reasoning Fine-Tuning (RFT) on reasoning-trace data to improve chain-of-thought and multi-step problem-solving capabilities while maintaining a lightweight footprint suitable for local inference and resource-constrained environments.

Evaluation

All evaluations are zero-shot unless stated otherwise, and i used lm_eval to run them.

Versus the SupraLabs/Supra-50M-Reasoning reference at the same ~50M scale, TinyLM2-50M-Reasoning lands roughly par — beating Supra-50M-Reasoning on BLiMP, PIQA, COPA, BoolQ, TruthfulQA MC2, SWAG, RACE and WikiText-2 perplexity, while trailing on WinoGrande, HellaSwag, CommonsenseQA, SciQ, ARC-Easy, OpenBookQA, ARC-Challenge, MMLU and LAMBADA. It is a competitive, comparable checkpoint rather than a clear winner.

Model Architecture & Hyperparameters

TinyLM2-50M-Reasoning is built on a custom ALiBi Decoder-Only Transformer architecture with pre-normalization and gated feedforward networks:

HyperparameterValueDescription
ArchitectureALiBi Decoder-Only TransformerAutoregressive Decoder-Only Transformer
Total Parameters~50.96M (53,430,272)Compact and ultra-fast for edge & local CPU/GPU
inference
vocab_size50,271Includes special chat tags (`<
hidden_size (d_model)512Model hidden dimension
intermediate_size (ff_hidden_d)819SwiGLU Gated Feedforward hidden dimension
num_hidden_layers12Number of Transformer block layers
num_attention_heads8Attention heads (Head dim = 64)
max_position_embeddings2,048Maximum context sequence length
NormalizationRMSNorm (eps=1e-8)Scale normalization for accelerated throughput
Activation FunctionSwiGLU (SiLU)Gated Feedforward activation
Positional EncodingALiBiAttention with Linear Biases
Tie Word EmbeddingsTrueTied input embedding and LM head projection

Tokenizer & Chat Template

The model uses a custom Byte-Level BPE Tokenizer equipped with special tokens and a pre-configured Jinja2 chat_template for multi-turn conversations, including <|THINK|> reasoning-trace markers.

PropertyValue
Tokenizer TypeGPT2Tokenizer (Byte-Level BPE)
Vocabulary Size50,271
Special Tokens`<
Chat Control Tokens`<
Extra Special Tokens`<
Chat TemplateNative Jinja2 support via tokenizer.apply_chat_template()

Training Configuration

ParameterValue
Pipeline ProcessReasoning Fine-Tuning (RFT)
DatasetSe00n00/reason_test (reasoning-trace Q&A pairs)
Total Examplesreasoning-trace Q&A pairs, 6 epochs
Learning Rate6e-5
Learning Rate ScheduleCosine (warmup_ratio=0.01)
Micro-Batch Size2 per device
Gradient Accumulation16 steps
Effective Batch Size32 × 2,048 tokens
OptimizerAdamW (weight_decay=0.1)
Max Sequence Length2,048 tokens
Precisionfloat16
HardwareNVIDIA Tesla T4 x 2 GPU

Inference

# pip install torch transformers
                                                                             
import torch                                                                                            
from transformers import pipeline                                                                       
                                                                                                        
pipe = pipeline(                                                                                        
  "text-generation",                                                                                  
  model="Se00n00/TinyLM2-50M-Reasoning",
  trust_remote_code = True                                                                            
)                                                                                                       
                                                                                                        
messages = [                                                                                            
  {"role": "system", "content": "You are a helpful AI assistant."},                                   
  {"role": "user", "content": "Explain artificial intelligence in simple terms."}                     
]                                                                                                       
                                                                                                        
prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)       
                                                                                                        
result = pipe(                                                                                          
  prompt,                                                                                             
  max_new_tokens=120,                                                                                 
  do_sample=True,                                                                                     
  temperature=0.4,                                                                                    
  top_k=40,                                                                                           
  top_p=0.9                                                                                           
)                                                                                                       
                                                                                                        
print(result[0]['generated_text'])                                                                  

──────

Sample Outputs

Chat-templated generation showing the model's thinking trace (temperature 0.4, top-p 0.9, repetitive middle trimmed with …):

System: You are a helpful AI assistant

User: A train travels 120 km in 2 hours. What is its average speed?

<|THINK|> Okay, the user is asking about its average speed. Let me start by recalling what I know. The average speed is when a train is traveling at a speed that's higher than the speed of the train. So, the main factors are speed, speed, and the train's speed.

First, the train's speed is the speed of the train itself. … I should also note that the train's speed is the key factor, and to keep the explanation concise. <|/THINK|>

The average speed of the train is measured by its speed …

System: You are a helpful AI assistant

User: Why is the sky blue?

<|THINK|> Okay, the user is asking about the sky blue. Let me start by recalling what I know. The sky is blue because it's a white, almost white. It's a combination of colors, like red, yellow, and blue. The sky is a lot of blue, so I need to make sure I'm not missing anything. Maybe the key points: the blue sky is a lot of blue, so the key points are the blue sky, the blue sky, and the blue sky. … I should also mention the key points: the blue sky is a lot of blue, so the key points are the blue sky, the blue sky, and the blue sky. Keep it concise, under 150 words. … <|/THINK|>

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

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

0 моделей