/ Модель

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

Контекст
32 768 токенов
Параметры
120 млн
Лицензия
Gemma
Архитектура
gemma3_text · dense
Базовая модель
gemma-3-270m-it
Библиотека
transformers
Опубликована
22 ноя 2026

SalgrAI_v2

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

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

128скачиваний за 30 дней0лайковвеса обновлены22 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SalgrAI-v2 — компактная русскоязычная разговорная модель, созданная одним разработчиком на основе google/gemma-3-270m-it. Это дообученная Gemma 3 с обрезанным словарём: оставлены 47 544 токена, подходящих для русского текста, поэтому размер модели составляет около 130,8 млн параметров. Архитектура — плотная decoder-only Gemma 3; контекст — до 32 768 токенов. Модель принимает текст и генерирует короткие неформальные ответы в стиле переписки в Telegram.

Модель предназначена для экспериментов, демонстраций, обучения и использования в качестве небольшой русскоязычной чат-модели. Она обучена на коротких диалогах, поэтому её стиль узкий: ответы обычно краткие, неформальные и написаны строчными буквами. Автор сообщает о сходном качестве с полной версией на собственном небольшом тесте, но отмечает, что проверка основана на ключевых словах и может завышать результаты.

Знания модели ненадёжны: она может уверенно выдавать неверные или бессмысленные ответы. Английский понимает плохо, другие письменности не поддерживает; возможны неуместные упоминания SalgrAI и отдельные неслова. Дополнительной настройки безопасности нет, а дообучение могло ослабить исходное выравнивание Gemma. Модель не рекомендуется для советов, вычислений, фактологических задач, модерации и сценариев, где важна корректность. Лицензия — Gemma; для инференса автор рекомендует bfloat16 или float32 и предостерегает от float16.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

SalgrAI-v2

Русская версия

SalgrAI-v2 is SalgrAI-v2-Full with the vocabulary pruned to Russian: 130.8M parameters instead of 268.1M, the same quality on our tests. It is Gemma 3 270M-it fine-tuned for short, casual, friend-like Russian conversation ("lowercase Telegram Russian") by one person on a single RTX 3060. Meant for experiments, demos and learning, not for serious use.

Why it is smaller: 170M of Gemma 3 270M's parameters are the embedding table for a vocabulary of 262,144 tokens in every script. We kept the 47,544 tokens that Russian text needs and cut the rest. No weights of the transformer layers were changed and nothing was retrained, so the model behaves like SalgrAI-v2-Full, but it can no longer produce Chinese, Arabic or other foreign characters.

Please read the Limitations section. Knowledge is weak, there is no safety filter beyond Gemma's own, and sampled replies sometimes contain non-words.

Model summary

Base modelgoogle/gemma-3-270m-it, fine-tuned, then vocabulary-pruned
ArchitectureGemma 3, decoder-only: 18 layers, hidden 640, 4 heads (1 KV head), FFN 2048, sliding-window + global attention
Parameters130,754,176 = 100,326,016 in the layers + 30,428,160 in the embedding table (47,544 tokens x 640)
Vocabulary47,544 tokens (was 262,144): Cyrillic, ASCII (English fragments, digits, symbols), typographic punctuation, emoji, 256 byte tokens, special tokens
LanguageRussian (English only in fragments, weak)
FormatGemma chat template: <start_of_turn>user ... <end_of_turn><start_of_turn>model ...
Developed bySalgr
LicenseGemma Terms of Use (see License)

Files

FileSizeWhat it is
model.safetensors262 MBweights, bfloat16 (loads with transformers)
pytorch_model.bin262 MBthe same weights as a PyTorch state dict
SalgrAI-v2-F16.gguf263 MBGGUF, float16, for llama.cpp
SalgrAI-v2-Q8_0.gguf140 MBGGUF, 8-bit: recommended for small devices
SalgrAI-v2-Q4_K_M.gguf102 MBGGUF, 4-bit: smallest, noticeably less exact (see Evaluation)
config.json, generation_config.jsonconfig and recommended sampling (temperature 0.5)
tokenizer.json, tokenizer.model, tokenizer_config.json, special_tokens_map.json, chat_template.jinjathe pruned Gemma tokenizer (token ids differ from the original Gemma ids above 107) and chat template
chat_example.pya minimal chat script
NOTICEthe notice required by the Gemma Terms of Use

The formats were checked against each other: model.safetensors and pytorch_model.bin give exactly the same logits as the pruned model they were saved from. Against an fp32 reference, the first token of the reply matched on 10 of 10 test prompts for F16 and Q8_0 and on 8 of 10 for Q4_K_M; the whole greedy reply matched on 10, 9 and 3 of 10 prompts respectively. The token ids of the prompt are identical in transformers and llama.cpp.

Quick start

Transformers

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "YOUR-USERNAME/SalgrAI-v2"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16)

messages = [{"role": "user", "content": "привет"}]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True)
out = model.generate(**inputs)   # sampling settings come from generation_config.json
print(tok.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Use bfloat16 or float32. Do not run it in float16: Gemma 3 is numerically unstable in fp16.

llama.cpp (GGUF)

llama-server -m SalgrAI-v2-Q8_0.gguf -c 1024 --port 8080
curl http://127.0.0.1:8080/v1/chat/completions -d '{"messages": [{"role": "user", "content": "привет"}], "max_tokens": 80, "temperature": 0.5, "top_k": 40, "top_p": 0.9, "repeat_penalty": 1.1}'

The chat template is embedded in the file. In a raw /completion prompt do not write <bos>: llama.cpp adds it itself.

How the vocabulary was pruned

  1. The original Gemma tokenizer encoded about 150M characters of Russian Wikipedia, 100M characters of Russian OpenSubtitles and all dialogs used for fine-tuning, and every token's frequency was counted.
  2. Kept: tokens that appear at least 10 times in the corpus or at all in the dialogs; ASCII-only tokens among the first 20,000 ids of the original vocabulary (English fragments, digits, symbols); the 256 byte tokens; the first 108 ids (special and control tokens, <start_of_turn>, <end_of_turn>, newlines); and, for every kept token, the tokens it is built from by BPE merges. Tokens containing letters of other scripts were dropped.
  3. A new tokenizer.json (and tokenizer.model for GGUF) was built from the kept tokens with the original merge order, and the matching rows were cut from the embedding table (which is also the output layer).

Effect on text the counting never saw (1,600 Russian Wikipedia articles, first 4,000 characters each): the pruned tokenizer needs 0.57% more tokens, and 67% of the texts are tokenized exactly as before; in the rest, rare words are split into smaller pieces. Text in other scripts reaches the model as bytes.

Training

The fine-tuning is the same as for SalgrAI-v2-Full: google/gemma-3-270m-it, full fine-tuning in bf16 with the embedding table frozen, AdamW lr 2e-5, batch 16, 3 epochs, loss on assistant tokens only, best epoch by validation loss (epoch 2). Data: 12,981 short dialogs (about 650K tokens): about 6,700 casual dialogs and about 4,900 more written by Claude Haiku (Anthropic) from a written specification that follows the eight SBB categories (short replies, one persona, no advice, no excuses), plus about 1,400 simple knowledge dialogs generated by a script from small hand-made tables (capitals, authors, arithmetic). Dialogs that repeated an SBB prompt verbatim were removed; 300 dialogs were held out. The dialogs are not released.

Evaluation

SBB V1.0 (SalgrAI Basic Benchmark) is the author's own small benchmark: 100 short Russian messages (80 casual prompts and 20 basic-knowledge questions), one reply each, no history, temperature 0. A reply passes if it contains what is expected, is not an excuse, has no profanity, does not loop and is mostly Russian. The rules look at keywords, not meaning, so conversational scores are somewhat generous.

CategoryQuestionsLFM2.5 350MGemma 3 270M-it (base)SalgrAI-v2-FullSalgrAI-v2
Greetings1258%83%92%92%
How are you / mood1040%50%80%80%
About itself1060%70%100%100%
Everyday chat1464%79%100%100%
Emotions and support1020%40%90%90%
Simple requests and advice1258%67%67%75%
Thanks, farewells, reactions1233%42%92%92%
Basic knowledge2010%35%50%50%
Total (of 100)10041578182

The same benchmark in llama.cpp (one greedy run each, repetition penalty 1.1): F16 83, Q8_0 79, Q4_K_M 82. The spread of a few points between runs is noise: the order does not follow the size, so these runs cannot rank the quantizations. SalgrAI-v2-Lite (25M, from scratch) scores 60 (https://salgr.top/freeopus/sbb/).

Pruning did not change what the model knows or says.

  • On 73 facts held out from the training tables, v2 and v2-Full are identical: 47 of 55 new arithmetic questions right, 1 of 14 capitals and 0 of 4 authors that were not in the tables.
  • Stray foreign characters in 300 sampled replies (temperature 0.8): 0, against 95 for v2-Full without its vocabulary mask.

How to read it, honestly.

  • SBB is in-distribution: the fine-tuning dialogs were written around its eight categories (the 100 prompts themselves are not in the data, but similar phrasings are). The baselines were not tuned for it and the rules punish long and non-Russian replies, which disadvantages general-purpose models. So 82 vs 57 shows that targeted data works for short casual chat, not that the model is generally smarter than Gemma 3 270M-it.
  • Knowledge did not grow beyond what was trained: capitals and authors outside the training tables are almost always wrong.
  • Sampling noise. At temperature 0.8 about 3.3% of the words in sampled replies were not found in a Russian word list built from Wikipedia and subtitles (a rough proxy for non-words such as "рядомшек"); at 0.5 it was 2.6%, at 0.3 2.5%. The recommended temperature is therefore 0.5.

Intended use, limitations and risks

  • Intended use: hobby experiments, demos, studying how small language models behave, a small Russian chat baseline.
  • Not for: advice, facts, calculations, moderation, anything where a wrong or rude answer matters.
  • Factual knowledge is unreliable; the model sounds fluent while often being wrong or meaningless.
  • Russian only. English text is split into small fragments and understood poorly; other scripts are not supported.
  • No extra safety tuning. The base model has Gemma's own alignment, which fine-tuning on casual dialogs may have weakened. If you expose it publicly, add your own filtering.
  • The fine-tuning dialogs are LLM-generated, so the style is narrow (casual, short, lowercase). The model also mentions "SalgrAI" where it does not fit.
  • The byte tokens are kept, so in theory the model can emit an invalid byte sequence; none occurred in our 300 sampled replies.
  • Not for float16 inference.

SalgrAI family

ModelParametersNotes
SalgrAI-v1 / v1.1 / v1.215M / 15M / 25Mfrom scratch
SalgrAI-v2-Lite24,874,368from scratch, only casual conversation; SBB 60
SalgrAI-v2-Full268,098,176Gemma 3 270M-it fine-tuned, full vocabulary; SBB 81
SalgrAI-v2130,754,176v2-Full with the vocabulary pruned to Russian; SBB 82
SalgrAI-Decider25,024,129not a chat model: picks one of 2-8 options

Live demo: https://salgr.top/freeopus/ - benchmark page: https://salgr.top/freeopus/sbb/

License

This model is a Model Derivative of Gemma and is provided under the Gemma Terms of Use (https://gemma.ai/resources/terms). Whoever uses or redistributes it must follow those terms, including the Gemma Prohibited Use Policy (https://gemma.ai/resources/prohibited_use_policy), must receive a copy of the terms and must keep the NOTICE file. The weights and the tokenizer were modified (fine-tuning and vocabulary pruning). Also consider the terms of the data used to generate the dialogs.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей