/ Модель

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

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

SalgrAI_v2.1

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SalgrAI-v2.1 — компактная русскоязычная диалоговая модель, созданная независимым разработчиком на основе Google Gemma 3 270M-it. Это плотная авторегрессионная модель семейства Gemma 3 с обрезанным словарём: в README указано около 131 млн параметров, а в метаданных — 120 млн. Модель дообучена на коротких диалогах и предназначена для неформального общения на русском языке с использованием предыдущих реплик; она также может продолжать простые функции на Python. Длина контекста по метаданным — 32 768 токенов.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

SalgrAI-v2.1

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

SalgrAI-v2.1 is the next update of SalgrAI-v2: Gemma 3 270M-it (131M parameters after vocabulary pruning) fine-tuned for short casual Russian chat that actually uses the earlier messages of the conversation. Compared with v2 it is much more concise, can write and continue simple Python functions and remembers facts from the dialog. It is not better than v2 on every test (see Evaluation). Made by one person on a single RTX 3060. For experiments, demos and learning, not for serious use.

Please read the Limitations section. Knowledge is weak, there is no safety filter beyond Gemma's own, and benchmark numbers of this small model are noisy.

Model summary

Base modelgoogle/gemma-3-270m-it, fine-tuned, vocabulary pruned
ArchitectureGemma 3, decoder-only: 18 layers, hidden 640, 4 heads (1 KV head), FFN 2048
Parameters131,105,536 = 100,326,016 in the layers + 30,779,520 in the embedding table (48,093 tokens x 640)
Vocabulary48,093 tokens (original 262,144): Cyrillic, ASCII, punctuation, emoji, byte tokens, special tokens. It is not the same vocabulary as in SalgrAI-v2 (47,544)
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)
SalgrAI-v2.1-F16.gguf263 MBGGUF, float16, for llama.cpp
SalgrAI-v2.1-Q8_0.gguf141 MBGGUF, 8-bit: recommended
SalgrAI-v2.1-Q4_K_M.gguf102 MBGGUF, 4-bit: smallest, not evaluated
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 and chat template
chat_example.pya minimal chat script that keeps the dialog history
NOTICEthe notice required by the Gemma Terms of Use

Quick start

Transformers

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "YOUR-USERNAME/SalgrAI-v2.1"
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. To continue a conversation, append the model reply and the next user message to messages (chat_example.py does this and keeps the last 8 messages).

llama.cpp (GGUF)

llama-server -m SalgrAI-v2.1-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.

What changed since v2

  • Data. Two fine-tuning runs on 31,510 and 35,871 short dialogs (small groups repeated 2-4 times): casual chat, simple knowledge dialogs, Python basics ("what does this code print", "write a function", both programmatic and checked by execution), self-identification and 6,689 multi-turn dialogs in which the last answer is impossible without the earlier messages (name, city, color, number, "and you?", continuing arithmetic or code, "repeat that"). Part of the dialogs was written by Claude Haiku (Anthropic) from a written specification, part is generated by scripts. The dialogs are not released.
  • Training. Full fine-tuning in bf16 with the embedding table frozen, 3 epochs, loss on reply tokens only, best epoch by validation loss. The released weights are the average of two such runs (weight soup of run 1, epoch 2 and run 2, epoch 1); the decision to average was made before looking at benchmark results.
  • Leak filter. Dialogs that repeat a benchmark prompt, share its key words and answer, or contain code snippets from SBKCB were removed (0 snippet matches in the final data; the first attempt had 6 and was discarded).

Evaluation

All numbers are from our own local runs, temperature 0, repetition penalty 1.1, one message without history, unless noted. The benchmarks are small, so a difference of 3-4 points is noise: the same weights give 58 / 56 / 53 points on SBKCB in bf16 / F16 / Q8_0, and the two runs that were averaged scored 59 and 52.

SBKCB V1.0 (150 questions: 90 knowledge, 20 Python, 40 conversation; https://salgr.top/freeopus/benchmarks/sbkcb):

ModelTotal (of 150)Knowledge /90Code /20Conversation /40
SalgrAI-v2.1 (bf16)58161428
SalgrAI-v2.1 (F16 GGUF)56161327
SalgrAI-v2.1 (Q8_0 GGUF)53151226
SalgrAI-v2 (Q8_0 GGUF)5619631
Qwen2.5-Coder-0.5B-Instruct (not ours)59181922
SalgrAI-v2-Pro-Full (Q8_0 GGUF)62171827

In total v2.1 is on the level of v2 and below Qwen2.5-Coder and Pro-Full (within noise): it does not "beat" them. What improved is code (12-14 of 20 against 5-6 for v2) and the behaviours below; knowledge did not improve (15-16 against 18-19, within noise).

Use of the conversation history. 300 dialogs in which the last reply depends on earlier messages (names, cities and numbers that are not in the training data; the test was written by us from the same task types as the training part, so it is in-distribution): v2.1 288 of 300 (96%), v2 66 (22%), SalgrAI-v2-Pro-Full 112 (37%). The weakest types: "repeat that" (19 of 25) and continuing arithmetic (20 of 25).

Conciseness. On 300 prompts the mean reply length is 6.7 words (v2: 11.6, Pro-Full: 6.6); replies longer than 25 words: 0% (v2: 4%).

Where it is worse than v2. On SBB V1.0, a small casual-chat benchmark (100 messages; the rules check keywords) v2.1 scores 74 (Q8_0) / 75 (bf16) against 79 / 82 for v2. The drop comes from "simple requests and advice" and "how are you": the replies are shorter and drier ("как подготовиться к экзамену?" - "удачи, ты справишься!") and the rules do not accept them. The benchmark is archived on the site and v2.1 is not listed there. Quality of the Q4_K_M file was not measured.

About the code score. The code questions of SBKCB are of the same types as part of the training data ("what does this code print", "write a function"), although the benchmark prompts and the code snippets from them were removed. Do not read the 12-14 of 20 as a general ability to program. The earlier models SalgrAI-v2-Pro-Full and SalgrAI-v2.1-Lite had a small leak of benchmark code snippets in their data (4 and up to 5 dialogs), which was found and fixed only for v2.1.

Intended use, limitations and risks

  • Intended use: hobby experiments, demos, studying how small language models behave, a small Russian chat baseline with a working short-term memory.
  • Not for: advice, facts, calculations, moderation, anything where a wrong or rude answer matters.
  • Factual knowledge is unreliable (capitals, authors and dates outside the training tables are often wrong); the model sounds fluent while often being wrong. Hard questions: 3 of 19 in SBKCB.
  • It reads code better than it writes it: it writes short functions, but predicts the output of non-trivial code unreliably.
  • The memory works within one short conversation (the training and test dialogs are short, 2-3 turns). Long dialogs were not tested.
  • Russian only. English text is split into small fragments and understood poorly; other scripts are not supported.
  • The model calls itself "SalgrAI" in Latin letters; this is by design.
  • No extra safety tuning. The base model has Gemma's own alignment, which fine-tuning may have weakened. If you expose it publicly, add your own filtering.
  • Not for float16 inference.

SalgrAI family

ModelParametersNotes
SalgrAI-v2-Lite / v2.1-Lite24,874,368from scratch, our own architecture
SalgrAI-v2-Full268,098,176Gemma 3 270M-it fine-tuned, full vocabulary
SalgrAI-v2130,754,176v2-Full with pruned vocabulary
SalgrAI-v2.1131,105,536this model
SalgrAI-v2-Pro-Full494MQwen2.5-Coder-0.5B-Instruct fine-tuned

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

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, vocabulary pruning and averaging of two checkpoints). Also consider the terms of the data used to generate the dialogs.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей