/ Модель

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

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

SalgrAI-v2-Full

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SalgrAI-v2-Full — компактная русскоязычная диалоговая модель, дообученная одним разработчиком на базе google/gemma-3-270m-it. Это плотная decoder-only модель семейства Gemma 3 с 18 слоями и примерно 268 млн параметров; она принимает текст и генерирует текст. Модель рассчитана на короткие неформальные диалоги на разговорном русском в стиле переписки в Telegram, а также на демонстрации и эксперименты с малыми языковыми моделями. Контекстное окно — 32 768 токенов.

Обучение проводилось на 12 981 коротком диалоге, преимущественно сгенерированном языковой моделью; часть примеров охватывает простые вопросы о фактах и арифметике. Сильная сторона модели — компактность и стилизованные короткие ответы на бытовые реплики. Фактические знания и вычисления ненадёжны; без маски словаря в ответах могут появляться символы других письменностей, а при сэмплировании — бессмысленные русские слова. Английский поддерживается слабо, дополнительной настройки безопасности не проводилось. Автор рекомендует использовать модель для экспериментов, демонстраций и обучения, а не для ответственных задач. Доступны веса Transformers и GGUF; лицензия — Gemma.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

SalgrAI-v2-Full

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

A small Russian-language chat model: Gemma 3 270M-it fine-tuned by one person on a single RTX 3060 for short, casual, friend-like conversation ("lowercase Telegram Russian"). It is the bigger sibling of SalgrAI-v2-Lite (25M parameters, trained from scratch): same dialogs, much larger pretrained backbone. It is meant for experiments, demos and learning, not for serious use.

Please read the Limitations section. Gemma's vocabulary covers every language, so without the supplied vocabulary mask the model sometimes emits stray foreign characters (about a third of sampled replies in our test). It has weak factual knowledge and no safety or profanity filter of its own beyond what Gemma already had.

Model summary

Base modelgoogle/gemma-3-270m-it
ArchitectureGemma 3, decoder-only: 18 layers, hidden 640, 4 heads (1 KV head), FFN 2048, sliding-window + global attention, vocabulary 262,144
Parameters268,098,176 (about 170M of them are the embedding table; the other ~100M were fine-tuned)
Context32K in the base model; fine-tuned on short dialogs (up to a few hundred tokens)
LanguageRussian (the model still understands some English)
FormatGemma chat template: <start_of_turn>user ... <end_of_turn><start_of_turn>model ...
Developed bySalgr
LicenseGemma Terms of Use (see License)

Files

FileWhat it is
model.safetensorsweights, bfloat16 (loads with transformers)
pytorch_model.binthe same weights as a PyTorch state dict
SalgrAI-v2-Full-F16.ggufGGUF, float16, for llama.cpp
SalgrAI-v2-Full-Q8_0.ggufGGUF, 8-bit (Q8_0), 292 MB: about half the size, about 3 SBB points lower (see Evaluation)
config.json, generation_config.jsonconfig and the recommended sampling settings
tokenizer.json, tokenizer.model, tokenizer_config.json, special_tokens_map.json, added_tokens.json, chat_template.jinjathe unchanged Gemma tokenizer and chat template
vocab_mask.py, chat_example.pythe vocabulary mask (see below) and a minimal chat script
NOTICEthe notice required by the Gemma Terms of Use

The weight formats were checked against each other: transformers logits from model.safetensors and pytorch_model.bin match the original fine-tuned model exactly, and the F16 GGUF run in llama.cpp gives the same first token as the fp32 reference on 10 of 10 test prompts (mean log-probability difference 0.0005). Q8_0 agrees on the first token in 10 of 10 and on the whole greedy reply in 9 of 10 prompts.

Quick start

Transformers

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, LogitsProcessorList
from vocab_mask import RuAllowed          # file in this repository: forbids tokens of other scripts

repo = "YOUR-USERNAME/SalgrAI-v2-Full"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16)
mask = LogitsProcessorList([RuAllowed(tok, model.config.vocab_size)])

messages = [{"role": "user", "content": "привет"}]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True)
out = model.generate(**inputs, logits_processor=mask)   # 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 (in our test the greedy replies differed from the fp32 reference on 10 of 10 prompts, against 3 of 10 for bf16).

llama.cpp (GGUF)

llama-server -m SalgrAI-v2-Full-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.8, "top_k": 40, "top_p": 0.9, "repeat_penalty": 1.1}'

The chat template is embedded in the file. To forbid foreign scripts in llama.cpp, send a logit_bias list with false for every token that vocab_mask.build_allowed(...) marks as not allowed (about 103,000 tokens; the server accepts "logit_bias": [[token_id, false], ...]). Do not put <bos> in a raw /completion prompt: llama.cpp adds it itself.

The vocabulary mask

Gemma 3's vocabulary has 262,144 tokens in all scripts. After fine-tuning on Russian, the model still sometimes picks a token from another script (an Arabic question mark ؟ instead of ?, Chinese characters, glued fragments). vocab_mask.py sets the logits of every token that is not Cyrillic, ASCII, common typographic punctuation or an emoji to minus infinity, which leaves about 159,000 of 262,144 tokens. On 300 held-out prompts with sampling (temperature 0.8) this reduced replies with stray foreign characters from 95 to 0, and the SBB score did not drop (82 vs 81 without it).

Training

Base. google/gemma-3-270m-it. Full fine-tuning in bf16 with the embedding table frozen (it doubles as the output layer; freezing keeps the huge vocabulary intact and fits in 12 GB). AdamW, learning rate 2e-5, weight decay 0.01, batch 16, 3 epochs, loss on assistant tokens only; the checkpoint with the best validation loss (epoch 2: loss 2.284, perplexity 9.8) is published. Training took about 7.5 minutes.

Data: 12,981 short dialogs (about 650K tokens).

  • ~6,700 casual dialogs written by Claude Haiku (Anthropic) from a written specification, most of them the same dialogs used for SalgrAI-v2-Lite (the specification follows the eight SBB categories; short replies, a consistent assistant persona, no advice and no excuses such as "не знаю");
  • ~4,900 more such dialogs from a second generation round (more greetings, small talk, emotions and support, "about yourself", thanks and reactions, jokes and games);
  • ~1,400 simple knowledge dialogs generated by a script from small hand-made tables (capitals, authors, arithmetic, and similar). The 100 SBB prompts were removed from the training data when they appeared verbatim; near-paraphrases of short phrases such as "привет" do occur. 300 dialogs were held out. The assistant persona says it is a small neural network of about 270 million parameters made by Salgr. The dialogs are not released with the model.

Evaluation

SBB V1.0 (SalgrAI Basic Benchmark) is the author's own small benchmark: 100 short Russian messages (80 casual-conversation 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 in Russian. The rules look at keywords, not meaning, so conversational scores are somewhat generous. Pass rate per category (local run, greedy, repetition penalty 1.1, up to 120 tokens):

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

For reference, on the same benchmark SalgrAI-v2-Lite (25M, from scratch) scores 60, v1.1 scores 39 and v1 scores 35 (from https://salgr.top/freeopus/sbb/). GGUF F16 scores 82 in llama.cpp.

How to read it, honestly.

  • SBB is in-distribution for this model: its fine-tuning dialogs were written around the eight SBB categories (the 100 prompts themselves are not in the training data, but similar phrasings are). The two baselines were not tuned for this test, and the rules punish long and non-Russian replies, which disadvantages general-purpose models. So 81 vs 57 shows that targeted data works for short casual chat; it does not show that the model is generally smarter than Gemma 3 270M-it.
  • Knowledge did not improve beyond what was explicitly trained. On 73 facts held out from the training tables, the model got 47 of 55 new arithmetic questions right (the previous version of this model, before the second round of dialogs: 32), but only 1 of 14 capitals and 0 of 4 authors that were not in the tables. The "basic knowledge" gain on SBB comes from arithmetic and from trained facts that overlap with benchmark questions.
  • On 300 held-out dialogs with different wording, replies with an obvious failure (empty, looping, an excuse, not Russian) were 3 of 300.

Intended use, limitations and risks

  • Intended use: hobby experiments, demos, studying how small language models behave, a baseline for tiny Russian chat models.
  • 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; it mostly learned the style of conversation.
  • Stray foreign characters appear without the vocabulary mask (about 32% of sampled replies in our test).
  • At temperature 0.8 the model sometimes produces non-words made of Russian letters ("рядомшек"); a lower temperature (about 0.5) helps but was not measured.
  • 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) and carries the habits of the generator. The model also mentions "SalgrAI" in places where it does not fit.
  • Mainly Russian; English is weak. Not for float16 inference.

SalgrAI family

ModelParametersNotes
SalgrAI-v1 / v1.114,997,888from scratch, first releases
SalgrAI-v1.224,874,368from scratch, grown to 11 layers
SalgrAI-v2-Lite24,874,368from scratch, only casual conversation; SBB 60 of 100
SalgrAI-v2-Full268,098,176Gemma 3 270M-it fine-tuned; SBB 81 of 100
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 were modified by fine-tuning (see Training). Also consider the terms of the data used to generate the dialogs.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей